-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix WMAgent rpm dcoker image #1362
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM cmssw/cmsweb:20221130-stable | ||
FROM registry.cern.ch/cmsweb/cmsweb:20221130-stable | ||
|
||
RUN echo "Adding the AFS cmst1:zh user" | ||
RUN groupadd -g 1399 zh | ||
|
@@ -8,6 +8,7 @@ RUN adduser -u 31961 -g 1399 cmst1 | |
RUN install -o cmst1 -g 1399 -d /data/srv /data/admin /data/certs | ||
RUN chown root:1399 /data | ||
|
||
ARG WMA_TAG=None | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where does |
||
ENV WDIR=/data | ||
|
||
# Add install script | ||
|
@@ -22,10 +23,10 @@ USER cmst1 | |
|
||
WORKDIR ${WDIR} | ||
|
||
RUN ${WDIR}/install.sh | ||
RUN ${WDIR}/install.sh ${WMA_TAG} | ||
|
||
RUN echo "Installation completed!" | ||
|
||
# commenting this out for testing | ||
#CMD ["./run.sh"] | ||
CMD ["/bin/bash", "-l"] | ||
#ENTRYPOINT ["./run.sh"] | ||
ENTRYPOINT ["/bin/bash", "-l"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,19 +2,24 @@ | |
|
||
### This script is used to create a WMAgent Docker image and is based | ||
### on deploy-wmagent.sh. | ||
### | ||
### | ||
### It downloads a CMSWEB deployment tag and then uses the Deploy script | ||
### with the arguments provided in the command line to create the image | ||
### | ||
### It simply deploys the agent based on WMAgent version tag. Patches can be | ||
### applied when the agent container is started. Configuration changes are made | ||
### when the container is started with run.sh. | ||
### | ||
### Have a single parameter, taken as a first argument at runtime - The WMA_TAG | ||
### | ||
|
||
set -x | ||
|
||
WMA_TAG=1.2.8 | ||
DEPLOY_TAG=HG1909e | ||
WMA_TAG=$1 | ||
WMA_TAG_REG="^[0-9]+\.[0-9]+\.[0-9]{1,2}(\.[0-9]{1,2})?$" | ||
[[ $WMA_TAG =~ $WMA_TAG_REG ]] || { echo "WMA_TAG: $WMA_TAG does not match requered expression: $WMA_TAG_REG"; echo "EXIT with Error 1" ; exit 1 ;} | ||
|
||
DEPLOY_TAG=master | ||
WMA_ARCH=slc7_amd64_gcc630 | ||
REPO="comp=comp" | ||
|
||
|
@@ -51,8 +56,8 @@ mkdir -p $DEPLOY_DIR || true | |
cd $BASE_DIR | ||
rm -rf deployment deployment.zip deployment-${DEPLOY_TAG}; | ||
|
||
set -e | ||
wget -nv -O deployment.zip --no-check-certificate https://github.com/dmwm/deployment/archive/$DEPLOY_TAG.zip | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Todor, if I pass |
||
set -e | ||
wget -nv -O deployment.zip --no-check-certificate https://github.com/dmwm/deployment/archive/refs/heads/${DEPLOY_TAG}.zip | ||
unzip -q deployment.zip | ||
cd deployment-$DEPLOY_TAG | ||
set +e | ||
|
@@ -79,8 +84,10 @@ echo "Done!" && echo | |
### | ||
echo "*** Downloading utilitarian scripts ***" | ||
cd /data/admin/wmagent | ||
wget -nv https://raw.githubusercontent.com/amaltaro/scripts/master/checkProxy.py -O checkProxy.py | ||
wget -nv https://raw.githubusercontent.com/dmwm/WMCore/master/deploy/checkProxy.py -O checkProxy.py | ||
wget -nv https://raw.githubusercontent.com/dmwm/WMCore/master/deploy/restartComponent.sh -O restartComponent.sh | ||
wget -nv https://raw.githubusercontent.com/dmwm/WMCore/master/deploy/renew_proxy.sh -O renew_proxy.sh | ||
chmod +x renew_proxy.sh restartComponent.sh | ||
echo "Done!" && echo | ||
|
||
# remove the "install" subdirs, these will be mounted from the host | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we have a more recent cmsweb image. I'd suggest to update it to the latest.