Skip to content

elaspic/elaspic-webserver

Repository files navigation

ELASPIC Webserver

pipeline status coverage report

Development

  1. Build an elaspic-webserver conda package.

    conda build .gitlab/conda
  2. 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
  3. (Optional) Install source package in development mode.

    conda activate elaspic-webserver
    pip install -e .
  4. Start the development server.

    conda activate elaspic-webserver
    manage.py runserver

Deployment

  1. 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/
  2. 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
  3. (Optional) Use docker-compose to deploy the built Docker image together with its dependencies.