-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdocker-instructions.txt
45 lines (33 loc) · 1.24 KB
/
docker-instructions.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# From a base rocky image
dnf install docker git podman-compose
# May need to use an ssh git address if you plan to commit to the repo
git clone https://github.com/TACC/hpcperfstats.git
cd hpcperfstats
git checkout master
# Create .env.dev file, contents:
DEBUG=1
SECRET_KEY=foo
# end contents
# In service-conf, nginx.conf needs to be chosen, to make things easier for development, use the nossl config, if its production use the ssl version, you can copy the nginx-nossl.conf to nginx.conf and build:
cp services-conf/nginx-nossl.conf services-conf/nginx.conf
NOTE:
- Please change all the paths in the docker-compose.yml file to your paths.
- Please change the hpcperfstats.ini file contents to your configurations
# Create paths for data and log directories:
sudo mkdir -p /home/sg99/s3-stats/hpcperfstats_data
sudo mkdir -p /home/sg99/s3-stats/hpcperfstats_log
# Build:
sudo docker compose up --build -d
# To see the startup
sudo docker compose logs
#you should be able to get to the website at this point, will error if no data
#
#
# USEFUL COMMANDS
#
# ACCESS the DB
# docker exec -it hpcperfstats_db_1 psql -h localhost -U hpcperfstats
#
# ACCESS the Pipeline (where data is stored)
# docker exec -it hpcperfstats_pipeline_1 su hpcperfstats
#