-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker_run.sh
17 lines (9 loc) · 1.18 KB
/
docker_run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
copy files to docker:
scp -i /home/drakis/Documents/cesnet/ssh_keys/galaxy_visualisation /home/drakis/Documents/cesnet/galaxy_visualization/django_server_files/db.sqlite3 [email protected]:/data/db.sqlite3 # musí se nejprv dát do ~ a pak až se sudem
scp -i /home/drakis/Documents/cesnet/ssh_keys/galaxy_visualisation /home/drakis/Documents/cesnet/galaxy_visualization/django_server_files/debug.log [email protected]:~/debug.log
scp -i /home/drakis/Documents/cesnet/ssh_keys/galaxy_visualisation /home/drakis/Documents/cesnet/galaxy_visualization/django_server_files/.env [email protected]:~/.env
scp -i /home/drakis/Documents/cesnet/ssh_keys/galaxy_visualisation /home/drakis/Documents/cesnet/galaxy_visualization/django_server_files/dj_leaflet/settings.py [email protected]:~/settings.py
# ještě na serveru
touch ~/cron.log
docker run:
docker run --name gjr -p 8000:8000 -v /data/db.sqlite3:/app/django_server_files/db.sqlite3 -v /home/debian/debug.log:/app/django_server_files/debug.log -v /home/debian/.env:/app/django_server_files/.env -v /home/debian/settings.py:/app/django_server_files/dj_leaflet/settings.py -v /home/debian/cron.log:/var/log/cron.log -d cerit.io/tomasvondrak/gjr:latest