-
Build an
elaspic-webserver
conda package.conda build .gitlab/conda
-
Create an
elaspic-webserver
conda environment using the built package (this will automatically install all dependencies).conda create -n elaspic-webserver --use-local elaspic-webserver
-
(Optional) Install source package in development mode.
conda activate elaspic-webserver pip install -e .
-
Start the development server.
conda activate elaspic-webserver manage.py runserver
-
Build a Docker image.
export CONDA_BLD_ARCHIVE_URL="https://gitlab.com/api/v4/projects/3259401/jobs/artifacts/master/download?job=build" docker build --build-arg CONDA_BLD_ARCHIVE_URL .gitlab/docker/
-
Run the built Docker image.
docker run --tty --env-file .env --env HOST_USER_ID=9284 \ --env=GUNICORN_CMD_ARGS="--bind 0.0.0.0:8080 --workers 3" \ --volume /home/kimlab1/database_data/elaspic:/home/kimlab1/database_data/elaspic:rw \ registry.gitlab.com/elaspic/elaspic-webserver:latest
-
(Optional) Use docker-compose to deploy the built Docker image together with its dependencies.