-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WМАgent switch deployment model copy runtime fix 11990 (#1490)
* Parsing the WMA_TAG as early as possible && Forcing runtime scripts checks && Creating mount points based on WMA_VER_RELEASE instead of WMA_TAG * Calling check_wmatag * Fix wrong initFlag cleared && _exec_sql call && typos
- Loading branch information
1 parent
ca9926d
commit 8bcd434
Showing
5 changed files
with
78 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# syntax=docker/dockerfile-upstream:master | ||
FROM registry.cern.ch/cmsweb/wmagent-base:pypi-20230705 | ||
MAINTAINER Valentin Kuznetsov [email protected] | ||
|
||
|
@@ -7,14 +8,23 @@ ARG WMA_TAG=$TAG | |
ENV WMA_TAG=$WMA_TAG | ||
ENV WMA_ROOT_DIR=/data | ||
|
||
# Parsing the WMA_TAG in parts step by step | ||
ENV WMA_VER_MINOR=${WMA_TAG#*.*.} | ||
ENV WMA_VER_MAJOR=${WMA_TAG%.$WMA_VER_MINOR} | ||
ENV WMA_VER_MINOR=${WMA_VER_MINOR%rc*} | ||
ENV WMA_VER_MINOR=${WMA_VER_MINOR%.*} | ||
ENV WMA_VER_RELEASE=${WMA_VER_MAJOR}.${WMA_VER_MINOR} | ||
ENV WMA_VER_PATCH=${WMA_TAG#$WMA_VER_RELEASE} | ||
ENV WMA_VER_PATCH=${WMA_VER_PATCH#.} | ||
|
||
# Basic WMAgent directory structure passed to all scripts through env variables: | ||
# NOTE: Those should be static and depend only on $WMA_BASE_DIR | ||
ENV WMA_BASE_DIR=$WMA_ROOT_DIR/srv/wmagent | ||
ENV WMA_ADMIN_DIR=$WMA_ROOT_DIR/admin/wmagent | ||
ENV WMA_CERTS_DIR=$WMA_ROOT_DIR/certs | ||
|
||
# ENV WMA_HOSTADMIN_DIR=$WMA_ADMIN_DIR/hostadmin | ||
ENV WMA_CURRENT_DIR=$WMA_BASE_DIR/$WMA_TAG | ||
ENV WMA_CURRENT_DIR=$WMA_BASE_DIR/$WMA_VER_RELEASE | ||
ENV WMA_AUTH_DIR=$WMA_CURRENT_DIR/auth/ | ||
ENV WMA_INSTALL_DIR=$WMA_CURRENT_DIR/install | ||
ENV WMA_STATE_DIR=$WMA_CURRENT_DIR/state | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters