Docker and git are required.
-
clone the repo
git clone git@github.com:LANL-Bioinformatics/phame-api.git -
create a .postegres file within the cloned directory
phame-api/.envs/.local/.postgres, and add following lines to it.# PostgreSQL # ---------- POSTGRES_HOST=postgres POSTGRES_PORT=5432 POSTGRES_DB=phame_api01 POSTGRES_USER=<username> POSTGRES_PASSWORD=<password> -
cd to the project root directory
phame-apicd phame-api -
Create docker containers.
docker-compose -f docker-compose-local.yml build -
start docker
docker-compose -f docker-compose-local.yml up -d -
initialize the database.
docker-compose -f docker-compose-local.yml run --rm web /bin/bash -c "python -c 'import database; database.init_db()'"
If all went well, you can go to localhost to see the phame webpage.
The user input files can require a lot of storage space. Use these instructions if you want to store the users' data on a data volume that is different from the main volume where the Docker container is created.
Docker and git are required.
-
clone the repo
git clone git@github.com:LANL-Bioinformatics/phame-api.git -
create a .postegres file within the cloned directory
phame-api/.envs/.local/.postgres, and add following lines to it.# PostgreSQL # ---------- POSTGRES_HOST=postgres POSTGRES_PORT=5432 POSTGRES_DB=phame_api01 POSTGRES_USER=<username> POSTGRES_PASSWORD=<password> -
cd to the project root directory
phame-apicd phame-api -
Update paths in
docker-compose-production.ymlto the volume where you want to store the users' upload files for thephameandwebcontainers. For example:/vol_d/api/uploads:/api/static/uploadsif you want to store the upload files on/vol_dphame: volumes: - phame_data:/phame_api/media - /path/to/api/uploads:/api/static/uploads web: volumes: - phame_data:/phame_api/media -/path/to/api/uploads:/api/static/uploads -
Create docker containers.
docker-compose -f docker-compose-production.yml build -
start docker
docker-compose -f docker-compose-production.yml up -d
Browse to localhost:5555 to see the Flower Dashboard. Here you can see the status of the celery workers and their tasks.
You can look at projects run by other users if you create an admin account and login to that account. Click on the
admin user icon in the upper right corner and select the username for the projects you would like to view.