Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release #146

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
811f769
[ALS-6100] All-in-one: Move PSAMA to its own Docker (#125)
Gcolon021 Jun 7, 2024
bb18eb8
Update .env variables names and values (#128)
Gcolon021 Jul 12, 2024
112eecb
[ALS-0000] removing docker config dir bugs
Jul 12, 2024
8d4476b
Add Jenkins jobs for PIC-SURE Auth Micro-App (#130)
Gcolon021 Jul 12, 2024
44053e0
+ set DOCKER_CONFIG_DIR environment variable
indraniel Jul 24, 2024
3dcaade
Export -f doesn't work on all systems
Jul 25, 2024
5c1d3a8
[ALS-6725] Dictionary Devops
Aug 5, 2024
a636af6
[ALS-6725] Dictionary Start / Stop + .env
Aug 6, 2024
b140991
[ALS-6923] Add visualization resource creation jenkins job (#137)
srpiatt Aug 12, 2024
6349aa8
[CHORE] Clean up start jenkins script
Aug 10, 2024
1f79a3a
[ALS-6725] Add edit .env job
Aug 12, 2024
772b6af
[ALS-6725] Create weighting utility
Aug 13, 2024
7b35d93
[CHORE] Unbreak start picsure
Aug 14, 2024
d42f41a
Add defaults to build hashes in all places.
Aug 16, 2024
a7c1507
V2.5.0 changes (#144)
nixj14 Aug 20, 2024
300bd7b
[ALS-7065] All-In-One PSAMA initial configuration environment file (#…
Gcolon021 Aug 22, 2024
99dee40
Rename job in Jenkins pipeline configuration (#148)
Gcolon021 Sep 17, 2024
7fea8b2
[ALS-6921] Open Access Configuration Changes (#149)
Gcolon021 Sep 18, 2024
f3cd1b0
[ALS-7703] Patches for GIC release
Oct 28, 2024
c2fb431
[ALS-7536] Pull configurations out of versioned files and into DOCKER…
Nov 20, 2024
6742f34
[ALS-6867] Replace Frontend (#151)
JamesPeck Nov 21, 2024
77f9c0b
[ALS-7538] Remove Microservice jobs, create bespoke jobs for uploader
Nov 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
.project
*.iml
initial-configuration/mysql-docker/.env
pass.tmp
initial-configuration/pass.tmp
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ Once you have logged into Jenkins and have set up your admin account, you need t
system variables:

- `DOCKER_CONFIG_DIR`: `/path/to/config/dir` This is the path you passed to `install-dependencies-docker`
- `MYSQL_CONFIG_DIR`: `/path/to/mysql/cnf/dir` This is the path you passed to `install-dependencies-docker`
- `MYSQL_NETWORK`: `picsure` If you plan to switch to a remote database, this needs to be changed back to `host`

6. Run the Initial Configuration Pipeline job.
Expand All @@ -149,9 +150,7 @@ system variables:

- `EMAIL`: This is the Google account that will be the initial admin user.

- `PROJECT_SPECIFIC_OVERRIDE_REPOSITORY`: This is the repo that contains the project specific overrides for your
project. If you just want the default PIC-SURE behavior use this
repo : https://github.com/hms-dbmi/baseline-pic-sure
- `MIGRATION_NAME`: This is the name of the migration that will be run. If you just want the default PIC-SURE behavior use `Baseline` from the repo: https://github.com/hms-dbmi/pic-sure-migrations or fork it and add your migration. If you are a GIC Institution, use `GIC-Institution`.

- `RELEASE_CONTROL_REPOSITORY`: This is the repo that contains the build-spec.json file for your project. This file
controls what code is built and deployed. If you just want the default PIC-SURE behavior use this
Expand Down
1 change: 1 addition & 0 deletions initial-configuration/config/hpds/hpds.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CATALINA_OPTS=-XX:+UseParallelGC -XX:SurvivorRatio=250 -Xms1g -Xmx16g -DCACHE_SIZE=1500 -DSMALL_TASK_THREADS=1 -DLARGE_TASK_THREADS=1 -DSMALL_JOB_LIMIT=100 -DID_BATCH_SIZE=2000 -DALL_IDS_CONCEPT=NONE -DID_CUBE_NAME=NONE -Denable_file_sharing=true
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Listen 0.0.0.0:80
</LocationMatch>

RewriteRule ^/picsure/(.*)$ "http://wildfly:8080/pic-sure-api-2/PICSURE/$1" [P]
RewriteRule ^/psama/(.*)$ "http://wildfly:8080/pic-sure-auth-services/auth/$1" [P]
RewriteRule ^/psama/(.*)$ "http://psama:8090/auth/$1" [P]

RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-d
Expand Down
64 changes: 35 additions & 29 deletions initial-configuration/config/httpd/httpd-vhosts.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@ AddType application/x-pkcs7-crl .crl
SSLCipherSuite ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:AES128-GCM-SHA256:AES128-SHA256:AES256-GCM-SHA384:AES256-SHA256
SSLProxyCipherSuite ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:AES128-GCM-SHA256:AES128-SHA256:AES256-GCM-SHA384:AES256-SHA256


SSLHonorCipherOrder on

SSLProtocol all -TLSv1.2
SSLProxyProtocol all -TLSv1.2
SSLProtocol all -SSLv3 -TLSv1 -TLSv1.1 -TLSv1.2
SSLHonorCipherOrder off
SSLSessionTickets off
SSLPassPhraseDialog builtin

SSLUseStapling On
SSLSessionCache "shmcb:${HTTPD_PREFIX}/logs/ssl_scache(512000)"
SSLSessionCacheTimeout 300

Expand All @@ -35,19 +34,30 @@ ServerTokens Prod
ServerName localhost
RewriteEngine On
ProxyPreserveHost On
#Dont allow httpd debug methods
RewriteCond %%{REQUEST_METHOD} ^TRACK
RewriteRule .* - [F]
RewriteCond %%{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]

RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^(?:)?(.+)$ [NC]
RewriteRule ^ https://%{SERVER_NAME}/picsureui/ [L,NE,R=301]
RewriteRule ^ https://%{SERVER_NAME}/$1 [L,NE,R=301]
</VirtualHost>

<VirtualHost _default_:443>
ServerName %{SERVER_NAME}
ProxyTimeout 300
SSLEngine on
SSLProxyEngine on

SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off

# enable HTTP/2, if available
Protocols h2 http/1.1

SSLCertificateFile "${HTTPD_PREFIX}/cert/server.crt"
SSLCertificateKeyFile "${HTTPD_PREFIX}/cert/server.key"
SSLCertificateChainFile "${HTTPD_PREFIX}/cert/server.chain"
Expand Down Expand Up @@ -77,42 +87,38 @@ ServerTokens Prod
RewriteEngine On
ProxyPreserveHost On

<Location /jupyterhub>
ProxyPass http://jupyterhub:8000/jupyterhub
ProxyPassReverse http://jupyterhub:8000/jupyterhub
</Location>
#Dont allow httpd debug methods
RewriteCond %%{REQUEST_METHOD} ^TRACK
RewriteRule .* - [F]
RewriteCond %%{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]

<LocationMatch "/jupyterhub/(user/[^/]*)/(api/kernels/[^/]+/channels|terminals/websocket)(.*)">
ProxyPassMatch ws://jupyterhub:8000/jupyterhub/$1/$2$3
ProxyPassReverse ws://jupyterhub:8000/jupyterhub/$1/$2$3
</LocationMatch>
# Match the request to /health and return a 200 OK status for AWS ELB health checks
RewriteRule ^/picsure/health$ - [R=200,L]

RewriteRule ^/picsure/(.*)$ "http://wildfly:8080/pic-sure-api-2/PICSURE/$1" [P]
RewriteRule ^/psama/(.*)$ "http://wildfly:8080/pic-sure-auth-services/auth/$1" [P]

RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-d

RewriteRule /psamaui/(.*) /psamaui/index_03272020.html
RewriteRule ^/psama/(.*)$ "http://psama:8090/auth/$1" [P]

RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-d
RewriteRule /picsureui/(.*) /picsureui/index_03272020.html

RewriteRule ^/static/(.*)$ /static/$1 [L]

RedirectMatch ^/$ /picsureui/
ErrorDocument 404 /index.html

DocumentRoot "${HTTPD_PREFIX}/htdocs"

ErrorLog "${HTTPD_PREFIX}/logs/error_log"
TransferLog "${HTTPD_PREFIX}/logs/access_log"
CustomLog "${HTTPD_PREFIX}/logs/ssl_request_log" \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
LogFormat "%%{X-Forwarded-For}i %t %%{SSL_PROTOCOL}x %%{SSL_CIPHER}x \"%r\" %b" proxy-ssl
LogFormat "%h %l %u %t \"%r\" %>s %b \"%%{Referer}i\" \"%%{User-Agent}i\"" combined
LogFormat "%%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%%{Referer}i\" \"%%{User-Agent}i\"" proxy
SetEnvIf X-Forwarded-For "^.*\..*\..*\..*" forwarded
CustomLog "$${HTTPD_PREFIX}/logs/access_log" combined env=!forwarded
CustomLog "$${HTTPD_PREFIX}/logs/access_log" proxy env=forwarded
CustomLog "$${HTTPD_PREFIX}/logs/ssl_request_log" proxy-ssl env=forwarded
CustomLog "$${HTTPD_PREFIX}/logs/ssl_request_log" \
"%t %h %%{SSL_PROTOCOL}x %%{SSL_CIPHER}x \"%r\" %b" env=!forwarded
ErrorLog "$${HTTPD_PREFIX}/logs/error_log"
TransferLog "$${HTTPD_PREFIX}/logs/access_log"

BrowserMatch "MSIE [2-5]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0

</VirtualHost>
Empty file.
2 changes: 1 addition & 1 deletion initial-configuration/config/httpd/picsureui_settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"customizeAuth0Login": true,
"queryButtonLabel": "Export for analysis",
"maxVariantCount": 10000,
"auth0domain":"__AUTH0_DOMAIN__",
"auth0domain":"__AUTH0_TENANT__",
"client_id":"__PIC_SURE_CLIENT_ID__",
"analyticsId": "__ANALYTICS_ID__",
"tagManagerId": "__TAG_MANAGER_ID__"
Expand Down
2 changes: 1 addition & 1 deletion initial-configuration/config/httpd/psamaui_settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"basePath" : "/psama",
"uiPath": "",
"customizeAuth0Login": true,
"auth0domain":"__AUTH0_DOMAIN__",
"auth0domain":"__AUTH0_TENANT__",
"client_id":"__PIC_SURE_CLIENT_ID__"
}

30 changes: 30 additions & 0 deletions initial-configuration/config/psama/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Database Configuration
DATASOURCE_URL=jdbc:mysql://picsure-db:3306/auth?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&autoReconnectForPools=true&serverTimezone=UTC
DATASOURCE_USERNAME=auth
DATASOURCE_PASSWORD=__AUTH_MYSQL_PASSWORD__

# Mail Configuration
EMAIL_ADDRESS=__EMAIL_FROM_ADDR__
EMAIL_PASSWORD=__EMAIL_PASSWORD__

# Application Properties
APPLICATION_CLIENT_SECRET=__PIC_SURE_CLIENT_SECRET__
APPLICATION_CLIENT_SECRET_IS_BASE_64=false
TOS_ENABLED=false
SYSTEM_NAME=PIC-SURE All-in-one
GRANT_EMAIL_SUBJECT=__ACCESS_GRANTED_EMAIL_SUBJECT__
USER_ACTIVATION_REPLY_TO=__USER_ACTIVATION_REPLY_TO__
ADMIN_USERS=__ADMIN_USERS__
DENIED_EMAIL_ENABLED=false
STACK_SPECIFIC_APPLICATION_ID=__STACK_SPECIFIC_APPLICATION_ID__

# IDP Provider Configuration
AUTH0_IDP_PROVIDER_IS_ENABLED=true
IDP_PROVIDER_URI=https://__AUTH0_TENANT__.auth0.com/
AUTH0_HOST=https://__AUTH0_TENANT__.auth0.com/

# Token Expiration Times
TOKEN_EXPIRATION_TIME=3600000
LONG_TERM_TOKEN_EXPIRATION_TIME=2592000000

JAVA_OPTS="-Xms2g -Xmx4g -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djavax.net.ssl.trustStore=/usr/local/tomcat/conf/application.truststore -Djavax.net.ssl.trustStorePassword=password"
28 changes: 6 additions & 22 deletions initial-configuration/config/wildfly/standalone.xml
Original file line number Diff line number Diff line change
Expand Up @@ -158,26 +158,6 @@
<password>sa</password>
</security>
</datasource>
<datasource jndi-name="java:jboss/datasources/AuthDS" pool-name="AuthDS" use-java-context="true">
<connection-url>jdbc:mysql://picsure-db:3306/auth?useUnicode=true&amp;characterEncoding=UTF-8&amp;autoReconnect=true&amp;autoReconnectForPools=true&amp;serverTimezone=UTC</connection-url>
<driver>mysql</driver>
<pool>
<min-pool-size>2</min-pool-size>
<max-pool-size>10</max-pool-size>
<prefill>true</prefill>
</pool>
<security>
<user-name>auth</user-name>
<password>__AUTH_MYSQL_PASSWORD__</password>
</security>
<validation>
<valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLValidConnectionChecker"/>
<check-valid-connection-sql>SELECT 1</check-valid-connection-sql>
<validate-on-match>true</validate-on-match>
<background-validation>false</background-validation>
<exception-sorter class-name="org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLExceptionSorter"/>
</validation>
</datasource>
<datasource jndi-name="java:jboss/datasources/PicsureDS" pool-name="PicsureDS" use-java-context="true">
<connection-url>jdbc:mysql://picsure-db:3306/picsure?useUnicode=true&amp;characterEncoding=UTF-8&amp;autoReconnect=true&amp;autoReconnectForPools=true&amp;serverTimezone=UTC</connection-url>
<driver>mysql</driver>
Expand Down Expand Up @@ -461,7 +441,11 @@
<simple name="java:global/roles_claim" value="privileges"/>
<!-- Used in IRCT as well -->
<simple name="java:global/verify_user_method" value="tokenIntrospection"/>
<simple name="java:global/token_introspection_url" value="http://wildfly:8080/pic-sure-auth-services/auth/token/inspect"/>
<simple name="java:global/token_introspection_url" value="http://psama:8090/auth/token/inspect"/>

<simple name="java:global/openAccessEnabled" value="true"/>
<simple name="java:global/openAccessValidateUrl" value="http://psama:8090/auth/open/validate"/>

<simple name="java:global/token_introspection_token" value="__PIC_SURE_TOKEN_INTROSPECTION_TOKEN__"/>
<!-- psama configuration-->
<simple name="java:global/client_secret" value="__PIC_SURE_CLIENT_SECRET__"/>
Expand All @@ -475,7 +459,7 @@
<simple name="java:global/userActivationReplyTo" value="__USER_ACTIVATION_REPLY_TO__"/>
<simple name="java:global/templatePath" value="/opt/jboss/wildfly/standalone/configuration/emailTemplates/" />
<simple name="java:global/tosEnabled" value="False" />
<simple name="java:global/auth0host" value="https://__AUTH0_DOMAIN__.auth0.com/" />
<simple name="java:global/auth0host" value="https://__AUTH0_TENANT__.auth0.com/" />
<simple name="java:global/emailTemplatePath" value="/opt/jboss/wildfly/standalone/configuration/emailTemplates/" />
<simple name="java:global/accessGrantEmailSubject" value="__ACCESS_GRANTED_EMAIL_SUBJECT__" />
<simple name="java:global/deniedEmailEnabled" value="false" />
Expand Down
1 change: 1 addition & 0 deletions initial-configuration/config/wildfly/wildfly.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
JAVA_OPTS=-Xms2g -Xmx4g -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djavax.net.ssl.trustStore=/opt/jboss/wildfly/standalone/configuration/application.truststore -Djavax.net.ssl.trustStorePassword=password
38 changes: 31 additions & 7 deletions initial-configuration/install-dependencies-docker.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

#!/usr/bin/env bash

sed_inplace() {
Expand All @@ -8,7 +7,6 @@ sed_inplace() {
sed -i "$@"
fi
}
export -f sed_inplace

CWD=$(pwd)
# this makes tr work on OSX
Expand All @@ -18,12 +16,12 @@ export LC_ALL=C
# $1 is the path to the docker-config dir $2 is the path to the rc rc_file
function set_docker_config_dir {
local docker_config_dir=$1
local rc_file=$2
export rc_file=$2
if [ -z "$docker_config_dir" ]; then
docker_config_dir="/var/local/docker-config"
fi
if [ -z "$rc_file" ]; then
rc_file="$HOME/.bashrc"
export rc_file="$HOME/.bashrc"
fi
#Check if docker_config_dir is a dir and exists
if [ ! -d "$docker_config_dir" ]; then
Expand All @@ -45,7 +43,28 @@ function set_docker_config_dir {
echo 'alias picsure-db="docker exec -ti picsure-db bash -c '\''mysql -uroot -p\$MYSQL_ROOT_PASSWORD'\''"' >> "$rc_file"
}

function set_mysql_config_dir() {
local mysql_config_dir=$1
if [ -z "$mysql_config_dir" ]; then
mysql_config_dir="$DOCKER_CONFIG_DIR/picsure-db/"
fi
#Check if mysql_config_dir is a dir and exists
if [ ! -d "$mysql_config_dir" ]; then
echo "Creating dir $mysql_config_dir and setting MYSQL_CONFIG_DIR in $rc_file"
mkdir -p $mysql_config_dir
export MYSQL_CONFIG_DIR=$mysql_config_dir
echo "export MYSQL_CONFIG_DIR=$mysql_config_dir" >> "$rc_file"
else
echo "dir $mysql_config_dir exists, just setting MYSQL_CONFIG_DIR in $rc_file"
# If the config dir exists, we still want to clean up old settings for it
export MYSQL_CONFIG_DIR=$1
grep 'MYSQL_CONFIG_DIR' "$rc_file" && sed_inplace '/MYSQL_CONFIG_DIR/d' "$rc_file"
echo "export MYSQL_CONFIG_DIR=$mysql_config_dir" >> "$rc_file"
fi
}

set_docker_config_dir "$1"
set_mysql_config_dir "$2"

#-------------------------------------------------------------------------------------------------#
# Docker Install #
Expand All @@ -56,7 +75,7 @@ echo "Starting update"
echo "Installing docker"
if [ -n "$(command -v yum)" ] && [ -z "$(command -v docker)" ]; then
echo "Yum detected. Assuming RHEL. Install commands will use yum"
set_docker_config_dir $1 "$HOME/.zshrc"
set_docker_config_dir $1 "$HOME/.zshrc"
yum -y update
# This repo can be removed after we move away from centos 7 I think
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
Expand Down Expand Up @@ -90,7 +109,7 @@ if [ -n "$(command -v apt-get)" ] && [ -z "$(command -v docker)" ]; then
fi

if [[ "$OSTYPE" =~ ^darwin ]]; then
echo "Darwin detected. Assuming macOS. Install commands will use brew."
echo "Darwin detected. Assuming macOS. Install commands will use brew."
#check for brew
if [ -z "$(command -v brew)" ]; then
echo "Brew not detected. Please install brew and rerun this script."
Expand All @@ -112,7 +131,7 @@ fi
if [ -n "$(command -v apk)" ]; then
echo "apk detected. Assuming alpine. Install commands will use apk"
apk update && apk add --no-cache wget
fi
fi

if [ -z "$(command -v docker)" ]; then
echo "You dont have docker installed and we cant detect a supported package manager."
Expand Down Expand Up @@ -172,11 +191,13 @@ export APP_ID=`uuidgen | tr '[:upper:]' '[:lower:]'`
export APP_ID_HEX=`echo $APP_ID | awk '{ print toupper($0) }'|sed 's/-//g'`
sed_inplace "s/__STACK_SPECIFIC_APPLICATION_ID__/$APP_ID/g" $DOCKER_CONFIG_DIR/httpd/picsureui_settings.json
sed_inplace "s/__STACK_SPECIFIC_APPLICATION_ID__/$APP_ID/g" $DOCKER_CONFIG_DIR/wildfly/standalone.xml
sed_inplace "s/__STACK_SPECIFIC_APPLICATION_ID__/$APP_ID/g" $DOCKER_CONFIG_DIR/psama/.env

export RESOURCE_ID=`uuidgen | tr '[:upper:]' '[:lower:]'`
export RESOURCE_ID_HEX=`echo $RESOURCE_ID | awk '{ print toupper($0) }'|sed 's/-//g'`
sed_inplace "s/__STACK_SPECIFIC_RESOURCE_UUID__/$RESOURCE_ID/g" $DOCKER_CONFIG_DIR/httpd/picsureui_settings.json


echo $APP_ID > $DOCKER_CONFIG_DIR/APP_ID_RAW
echo $APP_ID_HEX > $DOCKER_CONFIG_DIR/APP_ID_HEX
echo $RESOURCE_ID > $DOCKER_CONFIG_DIR/RESOURCE_ID_RAW
Expand All @@ -197,6 +218,9 @@ if [ -n "$2" ]; then
./convert-cert.sh $2 $3 $password
fi

echo Deleting pass.tmp
rm pass.tmp

echo "Installation script complete. Staring Jenkins."
cd ..
./start-jenkins.sh
Expand Down
3 changes: 2 additions & 1 deletion initial-configuration/install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ rm -f picsure.tmp

echo "` < /dev/urandom tr -dc @^=+$*%_A-Z-a-z-0-9 | head -c${1:-24}`%4cA" > auth.tmp
mysql -u root -e "grant all privileges on auth.* to 'auth'@'%' identified by '`cat auth.tmp`';flush privileges;";
sed -i s/__AUTH_MYSQL_PASSWORD__/`cat auth.tmp`/g /usr/local/docker-config/wildfly/standalone.xml
sed -i s/__AUTH_MYSQL_PASSWORD__/`cat auth.tmp`/g /usr/local/docker-config/psama/.env
rm -f auth.tmp

echo "Building and installing Jenkins"
Expand All @@ -109,6 +109,7 @@ export APP_ID=`uuidgen -r`
export APP_ID_HEX=`echo $APP_ID | awk '{ print toupper($0) }'|sed 's/-//g'`
sed -i "s/__STACK_SPECIFIC_APPLICATION_ID__/$APP_ID/g" /usr/local/docker-config/httpd/picsureui_settings.json
sed -i "s/__STACK_SPECIFIC_APPLICATION_ID__/$APP_ID/g" /usr/local/docker-config/wildfly/standalone.xml
sed -i "s/__STACK_SPECIFIC_APPLICATION_ID__/$APP_ID/g" /usr/local/docker-config/psama/.env

export RESOURCE_ID=`uuidgen -r`
export RESOURCE_ID_HEX=`echo $RESOURCE_ID | awk '{ print toupper($0) }'|sed 's/-//g'`
Expand Down
2 changes: 1 addition & 1 deletion initial-configuration/jenkins/jenkins-docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM jenkins/jenkins:2.440-jdk11
FROM jenkins/jenkins:2.442-jdk11

COPY plugins.yml /usr/share/jenkins/ref/plugins.yml

Expand Down
Loading