Skip to content

Instantly share code, notes, and snippets.

@janfreyberg
Created July 17, 2019 08:36
Show Gist options
  • Save janfreyberg/a959244c3a523e118fd40c839ee1798d to your computer and use it in GitHub Desktop.
Save janfreyberg/a959244c3a523e118fd40c839ee1798d to your computer and use it in GitHub Desktop.
Pydata superintendent talk
# Use postgres/example user/password credentials
version: '3.1'
services:
db:
image: postgres
restart: always
environment:
POSTGRES_USER: superintendent
POSTGRES_PASSWORD: superintendent
POSTGRES_DB: labelling
volumes:
- ./postgres-data:/var/lib/postgresql/data
ports:
- 5432:5432
adminer:
image: adminer
restart: always
ports:
- 8080:8080
notebook:
image: voila
restart: always
volumes:
- ./voila-interface.ipynb:/home/anaconda/app/app.ipynb
ports:
- 8866:8866
orchestrator:
image: voila
restart: always
entrypoint: /opt/conda/bin/python orchestrate.py
volumes:
- ./orchestrate.py:/home/anaconda/app/orchestrate.py
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
FROM continuumio/miniconda3:4.6.14-alpine
RUN /opt/conda/bin/pip install --upgrade pip
RUN mkdir /home/anaconda/app
WORKDIR /home/anaconda/app
COPY docker-requirements.txt docker-requirements.txt
RUN /opt/conda/bin/pip install -r docker-requirements.txt
# install superintendent from pypi
COPY . .
RUN /opt/conda/bin/pip install --user .
# RUN /opt/conda/bin/pip install superintendent
ONBUILD COPY . .
ONBUILD RUN if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
ENTRYPOINT ["/opt/conda/bin/voila"]
CMD ["app.ipynb"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment