Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
docker: update postgres port documentation and package files
Browse files Browse the repository at this point in the history
  • Loading branch information
reemuru committed Oct 17, 2022
1 parent 560552e commit 96b8b38
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 15 deletions.
4 changes: 2 additions & 2 deletions analitiko/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ docker pull postgres && docker pull hiahatf/analitiko
2. Start the PostgreSQL image

```bash
docker run --rm -P -p <DEVICE_IP>:5432:<PGDB_PORT> -e POSTGRES_PASSWORD="<PASSWORD>" --name pg postgres:latest
docker run --rm -P -p <DEVICE_IP>:<PGDB_PORT>:5432 -e POSTGRES_PASSWORD="<PASSWORD>" --name pg postgres:latest
```

3. Start Analitiko image
Expand Down Expand Up @@ -57,7 +57,7 @@ sudo cat /var/lib/tor/shiny/hostname

```bash
docker volume create postgres-vol
docker run --rm -P -p <DEVICE_IP>:<PGDB_PORT:PGDB_PORT> \
docker run --rm -P -p <DEVICE_IP>:<PGDB_PORT:5432> \
-v postgres-vol:/var/lib/postgresql/data \
-e POSTGRES_PASSWORD="<PASSWORD>" --name pg postgres:latest
```
Expand Down
2 changes: 1 addition & 1 deletion analitiko/scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ cd /infosec/analitiko && pm2 start /infosec/analitiko/dist/analitiko.js \
pm2 stop all && pm2 start 0 && pm2 list && pm2 describe 0 && pm2 logs analitiko &
echo "Deploying $MODEL_PATH..."
sleep 120
cd $MODEL_PATH && Rscript packages.R && Rscript app.R
cd $MODEL_PATH && Rscript app.R
2 changes: 1 addition & 1 deletion analitiko/scripts/sync-analitiko.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ cd /infosec/analitiko && pm2 start /infosec/analitiko/dist/analitiko.js \
pm2 stop all && pm2 start 0 && pm2 list && pm2 describe 0 && pm2 logs analitiko &
echo "Deploying $MODEL_PATH..."
sleep 120
cd $MODEL_PATH && Rscript packages.R && Rscript app.R
cd $MODEL_PATH && Rscript app.R
6 changes: 0 additions & 6 deletions analitiko/scripts/xmr-fee-kmeans/packages.R

This file was deleted.

5 changes: 0 additions & 5 deletions analitiko/scripts/xmr-ring-output-network-graph/packages.R

This file was deleted.

0 comments on commit 96b8b38

Please sign in to comment.