Skip to content

Commit

Permalink
Merge pull request #392 from bcgov/test
Browse files Browse the repository at this point in the history
TEST -> PROD
  • Loading branch information
raphaelcdsouza committed Aug 14, 2024
2 parents 9a6b9c0 + bdf4e24 commit 12d703c
Show file tree
Hide file tree
Showing 10 changed files with 408 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1797,7 +1797,7 @@ div.confirmTable {

.moduleTitle {
color: $header-sub-title;
margin-left: -57px;
margin-left: -96px;
display: flex;
width: 200%;
background-color: white;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/**** Panels ****/

.panel {
margin: 0 40px;

}

form #EditView_tabs .panel {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
border-radius: 4px;
font-size: 11px;
font-weight: 600;
height: 28px;
line-height: 16px;
padding: 5px 12px 0 12px;
display: inline-block;
Expand Down Expand Up @@ -204,9 +203,9 @@
}

#tab-actions > a .suitepicon-action-caret {
font-size: 8px;
margin-left: 8px;
line-height: 14px;
font-size: 10px;
margin-left: 14px !important;
line-height: 25px;
position: relative;
bottom: 0.2em;
}
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,8 @@ function env_validation() {
error "SUITE_DB_NAME environment variable is required"
exit 1
fi

if [ -z "$SUITECRM_URL" ]; then
error "SUITECRM_URL environment variable is required"
fi
}
2 changes: 1 addition & 1 deletion docker/suitecrm-image/suitecrm/scripts/suitecrm/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function suitecrm_install_command() {
-P $SUITE_DB_PASSW \
-H $SUITE_DB_HOST \
-N $SUITE_DB_NAME \
-S "http://localhost:8181/" \
-S $SUITECRM_URL \
-d "no"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@
array (
'en_us' => 'English (US)',
),
'site_url' => 'http://localhost:8181',
'site_url' => getenv('SUITECRM_URL'),
);
5 changes: 4 additions & 1 deletion helm/suitecrm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ spec:
- name: SESSION_SAVE_HANDLER
value: rediscluster
- name: SESSION_SAVE_PATH
value: 'seed[]=tcp://suitecrm-redis-cluster-headless:6379&timeout=2&read_timeout=2'
valueFrom:
secretKeyRef:
name: {{ .Values.global.secrets.suitecrmSecretName }}
key: redis-path
- name: SUITECRM_URL
value: {{.Values.global.suitecrmHost}}
- name: SUITECRM_ADMIN_PWD
Expand Down
2 changes: 2 additions & 0 deletions openshift/pre-deployment-envs.example.env
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ DB_PASSWORD=
DB_USER=
DB_NAME=
DB_HOST=
REDIS_PASSWORD=
REDIS_HOST=
SUITECRM_ADMIN_PASSWORD=
SSO_IDP_X509_CERT=
OAUTH_KEY=
Expand Down
16 changes: 16 additions & 0 deletions openshift/pre-deployment-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,20 @@ objects:
mariadb-galera-mariabackup-password: ${DB_BACKUP_PASSWORD}
mariadb-password: ${DB_PASSWORD}
type: Opaque
- kind: Secret
apiVersion: v1
metadata:
name: ${APP_NAME}-redis-credentials
stringData:
redis-password: ${REDIS_PASSWORD}
type: Opaque
- kind: Secret
apiVersion: v1
metadata:
name: ${APP_NAME}-secrets
stringData:
database-url: mysql://${DB_USER}:${DB_PASSWORD}@${DB_HOST}/${DB_NAME}
redis-path: 'seed[]=tcp://${REDIS_HOST}:6379&timeout=2&read_timeout=2&auth=${REDIS_PASSWORD}'
suitecrm-admin-password: ${SUITECRM_ADMIN_PASSWORD}
sso-idp-x509: ${SSO_IDP_X509_CERT}
oauth-key: ${OAUTH_KEY}
Expand Down Expand Up @@ -117,6 +125,14 @@ parameters:
displayName: MariaDB Galera Cluster Database Host
description: The MariaDB Galera Cluster database host
required: true
- name: REDIS_HOST
displayName: Redis Cluster Host
description: The Redis Cluster host
required: true
- name: REDIS_PASSWORD
displayName: Redis ClusterPassword
description: The Redis Cluster password
required: true
- name: SUITECRM_ADMIN_PASSWORD
displayName: SuiteCRM Admin Password
description: The SuiteCRM admin password
Expand Down

0 comments on commit 12d703c

Please sign in to comment.