forked from HPR/hpr_generator
Changed image tag from 'testing' to current perl version '5.40.1'
removed a few unused variables then shift the 'local' scoped unsets to global
This commit is contained in:
parent
cbe3dd4e0d
commit
2ca4d32282
@ -2,7 +2,7 @@
|
|||||||
#License: GPL v3
|
#License: GPL v3
|
||||||
#see <https://www.gnu.org/licenses/>.
|
#see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
#Name: button_podman_make_shownotes.sh
|
#Name: button_hpr_container.sh
|
||||||
#Purpose: build/run HPR Container.
|
#Purpose: build/run HPR Container.
|
||||||
#Version: beta 0.01
|
#Version: beta 0.01
|
||||||
#Author: SGOTI (Some Guy On The Internet)
|
#Author: SGOTI (Some Guy On The Internet)
|
||||||
@ -35,11 +35,11 @@ fi
|
|||||||
|
|
||||||
containerBulidProperties=(
|
containerBulidProperties=(
|
||||||
"containerFile" "/path/to/Containerfile"
|
"containerFile" "/path/to/Containerfile"
|
||||||
"hostMountDir01" "path/to/project/directory"
|
"hostMountDir01" "/path/to/project/directory"
|
||||||
"hostMountDir02" "/tmp/"
|
"hostMountDir02" "/tmp/"
|
||||||
"containerMountDir01" "/opt/hpr/"
|
"containerMountDir01" "/opt/hpr/"
|
||||||
"containerMountDir02" "/tmp/hpr/"
|
"containerMountDir02" "/tmp/hpr/"
|
||||||
"containerImageTag" "testing:0.1"
|
"containerImageTag" "hpr_project:5.40.1"
|
||||||
"pullNewImage" "podman pull docker.io/library/perl"
|
"pullNewImage" "podman pull docker.io/library/perl"
|
||||||
"recordingDate" "$(${date} -d "${currentYear}/${currentMonth}/01")"
|
"recordingDate" "$(${date} -d "${currentYear}/${currentMonth}/01")"
|
||||||
"recordingTimeStart" "15:00" #TZ: UTC
|
"recordingTimeStart" "15:00" #TZ: UTC
|
||||||
@ -71,13 +71,10 @@ function runHPRContainer () {
|
|||||||
--name="hpr_project" \
|
--name="hpr_project" \
|
||||||
--user="${unprivilegedUser}" \
|
--user="${unprivilegedUser}" \
|
||||||
${containerBulidProperties[containerImageTag]} bash;
|
${containerBulidProperties[containerImageTag]} bash;
|
||||||
unset currentMonth
|
|
||||||
unset currentYear
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
function buildNewContainerImage () {
|
function buildNewContainerImage () {
|
||||||
local containerNameAndVersionNumber="hpr_image:5.40.1"
|
|
||||||
if [[ -f "${containerBulidProperties[containerFile]}" ]]; then
|
if [[ -f "${containerBulidProperties[containerFile]}" ]]; then
|
||||||
${echo} "Building new container image...\nThis may take several minutes.\
|
${echo} "Building new container image...\nThis may take several minutes.\
|
||||||
\nThis is a non interactive build process, so you can return when \
|
\nThis is a non interactive build process, so you can return when \
|
||||||
@ -131,6 +128,8 @@ unset echo
|
|||||||
unset flags
|
unset flags
|
||||||
unset podman
|
unset podman
|
||||||
unset OPTIND
|
unset OPTIND
|
||||||
|
unset currentMonth
|
||||||
|
unset currentYear
|
||||||
unset containerBulidProperties
|
unset containerBulidProperties
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user