Loading docker-compose.yml +3 −3 Original line number Diff line number Diff line Loading @@ -54,9 +54,9 @@ services: stdin_open: true tty: true command: ["./wait-for-it.sh", "rabbitmq:5672", "--", "python3", "transfer_service.py"] test_client: build: ./test_client container_name: test_client client: build: ./client container_name: client networks: - backend_net stdin_open: true Loading test_client/Dockerfile +8 −7 Original line number Diff line number Diff line Loading @@ -2,18 +2,19 @@ FROM python:3 # Install psql client to be able to connect manually to the file_catalog container RUN apt-get -y update && apt-get -y install postgresql-client # Install also redis-tools to be able to access the redis container via redis-cli RUN apt-get -y update && apt-get -y install postgresql-client && apt-get install redis-tools # Create a new user called test_client, create the home directory and set the default shell RUN useradd -m -s /bin/bash test_client # Create a new user called 'client', create the home directory and set the default shell RUN useradd -m -s /bin/bash client # Run commands as test_client user USER test_client # Run commands as 'client' user USER client # Set up a workdir for the container WORKDIR /home/test_client/ WORKDIR /home/client/ # Copy the source code of the test client app # Copy the source code of all client apps COPY *.py ./ # Install python dependencies Loading Loading
docker-compose.yml +3 −3 Original line number Diff line number Diff line Loading @@ -54,9 +54,9 @@ services: stdin_open: true tty: true command: ["./wait-for-it.sh", "rabbitmq:5672", "--", "python3", "transfer_service.py"] test_client: build: ./test_client container_name: test_client client: build: ./client container_name: client networks: - backend_net stdin_open: true Loading
test_client/Dockerfile +8 −7 Original line number Diff line number Diff line Loading @@ -2,18 +2,19 @@ FROM python:3 # Install psql client to be able to connect manually to the file_catalog container RUN apt-get -y update && apt-get -y install postgresql-client # Install also redis-tools to be able to access the redis container via redis-cli RUN apt-get -y update && apt-get -y install postgresql-client && apt-get install redis-tools # Create a new user called test_client, create the home directory and set the default shell RUN useradd -m -s /bin/bash test_client # Create a new user called 'client', create the home directory and set the default shell RUN useradd -m -s /bin/bash client # Run commands as test_client user USER test_client # Run commands as 'client' user USER client # Set up a workdir for the container WORKDIR /home/test_client/ WORKDIR /home/client/ # Copy the source code of the test client app # Copy the source code of all client apps COPY *.py ./ # Install python dependencies Loading