diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..09974f6 --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..8ffbf8d --- /dev/null +++ b/docker-compose.yaml @@ -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" diff --git a/requirements.txt b/requirements.txt index 3868fb1..ccc3837 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,2 @@ +requests pillow