File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232version.json
3333__lbheartbeat__
3434.perl-version
35+ * .bak
3536
3637/skins /contrib /Dusk /admin.css
3738/skins /contrib /Dusk /bug.css
Original file line number Diff line number Diff line change @@ -78,11 +78,27 @@ select IMAGE in $FILES; do
7878 $DOCKER build $CACHE -t bugzilla/${IMAGE} :${DATE} .${ITER} -f docker/images/Dockerfile.${IMAGE} .
7979 if [ $? == 0 ]; then
8080 echo
81- echo " The build appears to have succeeded. Don't forget to change the FROM line"
82- echo " at the top of Dockerfile and each of docker/Dockerfile.* to use:"
83- echo " bugzilla/${IMAGE} :${DATE} .${ITER} "
84- echo " to make use of this image."
81+ echo " The build appears to have succeeded."
82+ echo " Updating FROM lines in Dockerfiles to use bugzilla/${IMAGE} :${DATE} .${ITER} ..."
8583 echo
84+
85+ # Update all Dockerfiles that reference this image
86+ for dockerfile in Dockerfile docker/images/Dockerfile.* ; do
87+ if [ -f " $dockerfile " ]; then
88+ # Check for both direct references and BZDB variable references
89+ if grep -q " FROM bugzilla/${IMAGE} :" " $dockerfile " || grep -q " FROM bugzilla/${IMAGE} \$ {BZDB}:" " $dockerfile " ; then
90+ # Create a backup
91+ cp " $dockerfile " " ${dockerfile} .bak"
92+ # Update the FROM line - handle both direct and BZDB variable patterns
93+ sed -i.tmp " s|FROM bugzilla/${IMAGE} :[^ ]*|FROM bugzilla/${IMAGE} :${DATE} .${ITER} |g" " $dockerfile "
94+ sed -i.tmp " s|FROM bugzilla/${IMAGE} \$ {BZDB}:[^ ]*|FROM bugzilla/${IMAGE} \$ {BZDB}:${DATE} .${ITER} |g" " $dockerfile "
95+ rm -f " ${dockerfile} .tmp"
96+ echo " Updated: $dockerfile "
97+ fi
98+ fi
99+ done
100+ echo
101+
86102 # check if the user is logged in
87103 if [ -z " $PYTHON " ]; then
88104 PYTHON=` which python`
You can’t perform that action at this time.
0 commit comments