prepared to run un Docker image with docker-compose tuned for CCP

This commit is contained in:
dcore94 2022-12-02 17:39:55 +01:00
parent e173535515
commit 47246970c0
3 changed files with 23 additions and 0 deletions

5
Dockerfile Normal file
View File

@ -0,0 +1,5 @@
FROM python:3
WORKDIR /usr/src/app
COPY __main__.py requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
CMD ["python3", ".", ">", "output.log"]

17
docker-compose.yaml Normal file
View File

@ -0,0 +1,17 @@
version: '3.6'
services:
method:
image: "nubisware/geoindex.example:latest"
command: >
sh -c "
python . `printenv ccptaskid` 3 > /output
"
deploy:
mode: replicated
replicas: 3
restart_policy:
condition: none
env_file: ccpenv
logging:
driver: "journald"

View File

@ -1 +1,2 @@
requests
pillow