Skip to content

GAMMA-FLASH/gammaflash-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gammaflash-env

gammaflash-env

Install and run the environment

  1. Install python3 (current supported version 3.8.8)

  2. Create the environment

python3 -m venv /path/to/new/virtual/environment
  1. Install requirements
pip install -r venv/requirements.txt
  1. Run the activate script
source /path/to/new/virtual/environment/bin/activate

============= Docker image

docker system prune


On MAC platform docker build --platform linux/amd64 -t gammaflash:1.5.0 -f ./Dockerfile.amd . docker build --platform linux/arm64 -t gammaflash:1.6.0 -f ./Dockerfile.arm .

On Linux platform docker build -t gammaflash:1.5.0 -f ./Dockerfile.amd .


docker build -t gammaflash:1.2.0 .

./bootstrap.sh gammaflash:1.2.0 agileobs

docker run -it -d -v /home/agileobs/gammaflash/:/home/usergamma/workspace -v /data02/:/data02/ -p 8001:8001 --name gf gammaflash:1.2.0_agileobs /bin/bash

docker exec -it gf /bin/bash cd . entrypoint.sh

nohup jupyter-lab --ip="*" --port 8001 --no-browser --autoreload --NotebookApp.token='gf2023#' --notebook-dir=/home/usergamma/workspace --allow-root > jupyterlab_start.log 2>&1 &

============= Influxdb image

docker run -d --name influxdb -p 8086:8086 -v /Users/bulgarelli/dbms/gammaflash/influxdb:/var/lib/influxdb2 influxdb

You should add the userid also

docker run -u 1001:1001 -d --name influxdb -p 8086:8086 -v /Users/bulgarelli/dbms/gammaflash/influxdb:/var/lib/influxdb2 influxdb

Username = gammaflash Org = GAMMA-FLASH Bucket = RP-COUNTS BucketHk = HK