Skip to content

Commit 6f68328

Browse files
authored
updates (#245)
1 parent e3b0aa3 commit 6f68328

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

DEV-README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ There are 3 different sets of metric logs being sent to logstash's elasticsearch
1111

1212
## Apache HTTP Logs
1313

14-
Currently, install\_bootstrap and docker-compose handles all necessary configuration
14+
Currently, install\_bootstrap and docker compose handles all necessary configuration
1515

1616
<!-- Long term, will likely move to AWS RDS, making postgres setup simpler
1717
## Postgres

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ Note that database migration is run once during the startup process and is contr
3535

3636
## Logging Usage
3737

38-
If using with logstash in a container (for development), use `-f docker-compose.yml -f docker-compose.dev.yml` flags after each `docker-compose` command to merge docker-compose files (e.g. `docker-compose -f docker-compse.yml -f docker-compose.dev.yml build`)
38+
If using with logstash in a container (for development), use `-f docker-compose.yml -f docker-compose.dev.yml` flags after each `docker compose` command to merge docker-compose files (e.g. `docker compose -f docker-compse.yml -f docker-compose.dev.yml build`)
3939

4040
For example to deploy just logging
4141

4242
```
43-
docker-compose -f docker-compose.dev.yml build
44-
nohup docker-compose -f docker-compose.dev.yml up --force-recreate --remove-orphans >/dev/null 2>&1 &
45-
docker-compose -f docker-compose.dev.yml down
46-
docker-compose -f docker-compose.dev.yml kill
43+
docker compose -f docker-compose.dev.yml build
44+
nohup docker compose -f docker-compose.dev.yml up --force-recreate --remove-orphans >/dev/null 2>&1 &
45+
docker compose -f docker-compose.dev.yml down
46+
docker compose -f docker-compose.dev.yml kill
4747
```
4848

4949
### Kibana Dashboard Setup ###
@@ -65,7 +65,7 @@ If you believe the scan is a false-positive, add the line glob to .gitallowed.
6565

6666
## Handy docker-compose commands:
6767
1. `install_bootstrap --script` will template and build everything using your previous answers (useful for quick iteration)
68-
2. `docker-compose down` will bring all containers down safely
69-
3. `nohup docker-compose up --force-recreate --remove-orphans >/dev/null 2>&1 &` will re-create all containers known to docker-compose and delete those volumes that no longer are associated with running containers
68+
2. `docker compose down` will bring all containers down safely
69+
3. `nohup docker compose up --force-recreate --remove-orphans >/dev/null 2>&1 &` will re-create all containers known to docker-compose and delete those volumes that no longer are associated with running containers
7070
4. `docker system prune` for cleaning out old containers and images
71-
5. To watch the logs `docker-compose logs --follow` while debugging
71+
5. To watch the logs `docker compose logs --follow` while debugging

scripts/restart.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ set -o nounset
77
# Restarts stack by running commands from /home/ubuntu/compose_setup
88

99
cd /home/ubuntu/compose_setup
10-
docker-compose down
11-
nohup docker-compose up --force-recreate --remove-orphans >/dev/null 2>&1 &
10+
docker compose down
11+
nohup docker compose up --force-recreate --remove-orphans >/dev/null 2>&1 &

templates/postgres_backup.sh.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ s3_url_config_backup='s3://oicr.backups.dockstore/{{ DOMAIN_NAME }}/config/'`dat
88
temp_dir=`mktemp -d`
99
output_file=ds-webservice_{{ DOMAIN_NAME }}_`date +%Y-%m-%dT%H-%M-%S%z`.sql
1010

11-
/usr/local/bin/docker-compose exec -T --user postgres postgres pg_dump --no-owner > $temp_dir/$output_file
11+
/usr/local/bin/docker compose exec -T --user postgres postgres pg_dump --no-owner > $temp_dir/$output_file
1212

1313
aws s3 --region us-east-1 cp $temp_dir/$output_file $s3_url_db_backup/
1414
aws s3 --region us-east-1 cp /home/ubuntu/compose_setup/dockstore_launcher_config/compose.config $s3_url_config_backup/

0 commit comments

Comments
 (0)