Commit c6c2fbdb authored by Jose Borreguero's avatar Jose Borreguero
Browse files

remove docker config


Signed-off-by: default avatarJose Borreguero <borreguero@gmail.com>
parent a1175be6
......@@ -125,3 +125,7 @@ dump.rdb
#
Pipfile
Pipfile.lock
# Docker
docker-compose.yml
Dockerfile
# latest miniconda3 image
FROM continuumio/miniconda3
ENV PYTHONUNBUFFERED 1
ENV CFLAGS "-std=c++11"
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
ENV LC_COLLATE C
ENV LC_CTYPE en_US.UTF-8
# This line will throw error if using an old miniconda3 image.
# To correct, one must build a miniconda3 image while piling all apt-get statements together into one
# https://hub.docker.com/r/continuumio/miniconda3/dockerfile
RUN apt-get update && apt-get install -y emacs iputils-ping less make mlocate net-tools openssh-client openssh-server vim
RUN conda install --name base -c conda-forge mamba
RUN mamba env update --name base --file conda.environment/environment-dev.yml
# Will start conda environment when $HOME/.bashrc is invoked
# Critical to prepend .bashrc, otherwise the conda environment
# will not be activated when executing commands via remote SSH
RUN echo "$(echo "conda activate base"; cat /etc/skel/.bashrc)" > /etc/skel/.bashrc
RUN echo "$(echo "source /etc/profile.d/conda.sh"; cat /etc/skel/.bashrc)" > /etc/skel/.bashrc
RUN echo "$(echo "# Activate Conda Environment base"; cat /etc/skel/.bashrc)" > /etc/skel/.bashrc
#use for local development
version: '3'
services:
djrems:
restart: always
image: djrems
container_name: service_djrems
hostname: djrems
expose:
- "22"
env_file:
- .env
volumes:
- ./docker-entrypoint.sh:/usr/bin/docker-entrypoint.sh
- artifacts:/opt/django_remote_submission/artifacts
- type: bind
source: ./
target: /opt/django_remote_submission
command: /usr/bin/docker-entrypoint.sh
volumes:
artifacts:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment