-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tests): EOFError in integration tests for FTP and SFTP resources
- Loading branch information
1 parent
486041a
commit 6fc3e74
Showing
4 changed files
with
52 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM stilliard/pure-ftpd:hardened | ||
|
||
COPY ./docker/data /home/shillelagh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Use the official Postgres image as a base | ||
FROM postgres:13 | ||
|
||
WORKDIR /code | ||
COPY . /code | ||
|
||
# Use root for package installation | ||
USER root | ||
|
||
# Install system dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
build-essential \ | ||
git \ | ||
postgresql-server-dev-13 \ | ||
python3 \ | ||
python3-dev \ | ||
python3-pip \ | ||
python3-venv \ | ||
wget | ||
|
||
# Download, build, and install multicorn2 | ||
RUN wget https://github.com/pgsql-io/multicorn2/archive/refs/tags/v2.5.tar.gz && \ | ||
tar -xvf v2.5.tar.gz && \ | ||
cd multicorn2-2.5 && \ | ||
make && \ | ||
make install | ||
|
||
|
||
# Create a virtual environment and install dependencies | ||
RUN python3 -m venv /code/venv && \ | ||
/code/venv/bin/pip install --upgrade pip && \ | ||
/code/venv/bin/pip install -e '.[all]' && \ | ||
/code/venv/bin/pip install 'multicorn @ git+https://github.com/pgsql-io/[email protected]' | ||
|
||
# Set environment variable for PostgreSQL to use the virtual environment | ||
ENV PATH="/code/venv/bin:$PATH" | ||
|
||
# Switch back to the default postgres user | ||
USER postgres |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM atmoz/sftp | ||
|
||
COPY ./docker/data /home/shillelagh |