Skip to content

Commit 0f75e43

Browse files
author
Walt Shands
committed
OMerge branch 'release/1.0.6'
2 parents 1ba5316 + fff28e3 commit 0f75e43

File tree

5 files changed

+54
-7
lines changed

5 files changed

+54
-7
lines changed

action/action_compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '2'
22

33
services:
44
dcc-action:
5-
image: quay.io/ucsc_cgl/action-service:1.0.11
5+
image: quay.io/ucsc_cgl/action-service:1.0.12
66
container_name: "action-service"
77
environment:
88
STORAGE_ACCESS_TOKEN: "${storage_access_token}"
@@ -19,7 +19,7 @@ services:
1919
DOCKSTORE_TOKEN: "${dockstore_token}"
2020
volumes:
2121
- ~/dcc-action-service/logs:/home/ubuntu/logs
22-
- ~/dcc-action-service/extra:/home/ubuntu/luigi_decider_runs/extra
22+
- ~/dcc-action-service/pipeline_deciders:/home/ubuntu/pipeline_deciders
2323
restart: always
2424
ports:
2525
- "8082"

boardwalk/dev.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ services:
105105
L_POSTGRES_PASSWORD: "${login_password}"
106106
L_POSTGRES_DB: "${login_db}"
107107
SECRET_KEY: "${secret_key}"
108+
LOG_IN_TOKEN: "${login_token}"
109+
SERVER_NAME: "${dcc_dashboard_host}"
108110
DCC_CORE_CLIENT_VERSION: "${core_client_version}"
109111
ES_SERVICE: "${es_service}"
110112
BD_POSTGRES_USER: "${login_user}"

boardwalk/prod.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '2'
22

33
services:
44
dcc-metadata-indexer:
5-
image: quay.io/ucsc_cgl/metadata-indexer:2.0.9
5+
image: quay.io/ucsc_cgl/metadata-indexer:2.0.10
66
#build: dcc-metadata-indexer/v2
77
environment:
88
USER_GROUP: "${user_group}"
@@ -56,7 +56,7 @@ services:
5656
FLASK_APP: "/app/mapi.py"
5757
DCC_DASHBOARD_HOST: "${dcc_dashboard_host}"
5858
SECRET_KEY: "${secret_key}"
59-
image: quay.io/ucsc_cgl/dashboard-service:1.0.7
59+
image: quay.io/ucsc_cgl/dashboard-service:1.0.8
6060
volumes:
6161
- ~/dcc-dashboard-service/logs:/app/log
6262
#build: dcc-dashboard-service
@@ -77,7 +77,7 @@ services:
7777
- login-db
7878
restart: always
7979
dcc-dashboard:
80-
image: quay.io/ucsc_cgl/dashboard:1.0.8
80+
image: quay.io/ucsc_cgl/dashboard:1.0.9
8181
#build: dcc-dashboard
8282
ports:
8383
- "80"
@@ -105,6 +105,8 @@ services:
105105
L_POSTGRES_PASSWORD: "${login_password}"
106106
L_POSTGRES_DB: "${login_db}"
107107
SECRET_KEY: "${secret_key}"
108+
LOG_IN_TOKEN: "${login_token}"
109+
SERVER_NAME: "${dcc_dashboard_host}"
108110
DCC_CORE_CLIENT_VERSION: "${core_client_version}"
109111
ES_SERVICE: "${es_service}"
110112
BD_POSTGRES_USER: "${login_user}"

install_bootstrap

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,12 @@ else
166166
echo "esnet docker network already exists"
167167
fi
168168

169-
169+
#add the command to
170+
#start the UCSC Computational Genomics Platform (CGP) container that sets up the
171+
#Nginx config template with the uuids for each of the containers in the CGP
172+
#at boot time
173+
echo "Attempting to add docker start core-config-gen to rc.local"
174+
sudo ./put_core_start_cmd_in_rc.sh
170175

171176
# RUN THE CONSONANCE INSTALLER
172177
run_consonance_launcher=''
@@ -901,9 +906,12 @@ while [[ "${run_boardwalk^^}" != 'Y' && "${run_boardwalk^^}" != 'N' ]] ; do
901906
login_password="$(generate_password)"
902907
echo "generating SECRET_KEY for login"
903908
secret_key="$(generate_password)"
909+
910+
echo "generating LOG_IN_TOKEN for boardwalk check session"
911+
login_token="$(generate_password)"
904912

905913
#TODO: The script should snoop the .env file and check if it has a password assigned already and use that. Otherwise, generate a random password.
906-
core_client_version='1.1.1'
914+
core_client_version='1.1.2'
907915
# Now write a config for this file.
908916
[[ -f boardwalk_launcher_config/boardwalk.config ]] || mkdir -p boardwalk_launcher_config
909917

@@ -942,6 +950,8 @@ while [[ "${run_boardwalk^^}" != 'Y' && "${run_boardwalk^^}" != 'N' ]] ; do
942950
"LOGIN_POSTGRES_DB":"${login_db}",
943951
"LOGIN_POSTGRES_PASSWORD":"${login_password}",
944952
"SECRET_KEY":"${secret_key}",
953+
"LOG_IN_TOKEN":"${login_token}",
954+
"SERVER_NAME":"${dcc_dashboard_host}",
945955
"DCC_CORE_CLIENT_VERSION":"${core_client_version}"
946956
}
947957
CONFIG

put_core_start_cmd_in_rc.sh

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#! /bin/bash
2+
3+
set -o errexit
4+
set -o pipefail
5+
set -o nounset
6+
# set -o xtrace
7+
8+
if [ -e /etc/rc.local ]
9+
then
10+
#add the command to
11+
#start the UCSC Computational Genomics Platform (CGP) container that sets up the
12+
#Nginx config template with the uuids for each of the containers in the CGP
13+
#at boot time
14+
#See dcc-ops/common/base.yml for more details
15+
if ! grep -Fxq "sudo docker start core-config-gen" /etc/rc.local
16+
then
17+
sed -i -e '$i \
18+
#start the UCSC Computational Genomics Platform (CGP) container that sets up the\
19+
#Nginx config template with the uuids for each of the containers in the CGP\
20+
#See dcc-ops/common/base.yml for more details\
21+
sudo docker start core-config-gen\n'\
22+
/etc/rc.local
23+
24+
echo "Added docker start core-config-gen command to /etc/rc.local"
25+
else
26+
echo "Found docker start core-config-gen or similar command in /etc/rc.local \
27+
so it was not added"
28+
fi
29+
else
30+
echo "WARNING: No /etc/rc.local file exists; the command 'sudo docker start \
31+
core-config-gen' should be manually run after booting up"
32+
fi
33+

0 commit comments

Comments
 (0)