Skip to content

Commit

Permalink
Merge pull request #1560 from amaltaro/wmcore-12157-take2
Browse files Browse the repository at this point in the history
Recover local wmagent registry option
  • Loading branch information
mapellidario authored Nov 7, 2024
2 parents 45bc806 + 41e79bd commit e1106b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docker/pypi/wmagent/wmagent-docker-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ $tnsMount \
--mount type=bind,source=/etc/vomses,target=/etc/vomses,readonly \
"

registry=registry.cern.ch
registry=local
repository=wmagent
$PULL && {
registry=registry.cern.ch
project=cmsweb
repository=wmagent
echo "Pulling Docker image: registry.cern.ch/cmsweb/wmagent:$WMA_TAG"
docker login registry.cern.ch
docker pull $registry/$project/$repository:$WMA_TAG
Expand All @@ -135,7 +135,7 @@ echo "Checking if there is no other wmagent container running and creating a lin
[[ -h $HOST_MOUNT_DIR/srv/wmagent/current ]] && rm -f $HOST_MOUNT_DIR/srv/wmagent/current
ln -s $HOST_MOUNT_DIR/srv/wmagent/$WMA_VER_RELEASE $HOST_MOUNT_DIR/srv/wmagent/current )

echo "Starting wmagent:$WMA_TAG docker container with user: $wmaUser:$wmaGroup"
echo "Starting $registry/$repository:$WMA_TAG docker container with user: $wmaUser:$wmaGroup"
docker run $dockerOpts $registry/$repository:$WMA_TAG
docker exec -u root -it wmagent service cron start

Expand All @@ -147,4 +147,4 @@ docker exec -u root -it wmagent service cron start
userStatus="$(docker exec -u root -it wmagent sh -c "passwd -S $wmaUser" | awk '{print $2}')"
if [ "${userStatus:0:1}" == "P" ]; then
docker exec -u root -it wmagent sh -c "echo $wmaUser:$wmaUser | chpasswd"
fi
fi

0 comments on commit e1106b4

Please sign in to comment.