prepared to run un Docker image with docker-compose tuned for CCP
This commit is contained in:
parent
e173535515
commit
47246970c0
|
@ -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"]
|
|
@ -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"
|
|
@ -1 +1,2 @@
|
||||||
|
requests
|
||||||
pillow
|
pillow
|
||||||
|
|
Loading…
Reference in New Issue