Skip to content

Instantly share code, notes, and snippets.

@nothingface0
Last active May 17, 2024 14:40
Show Gist options
  • Save nothingface0/1e5f010ed4cde1628713b4d5fd1e61ca to your computer and use it in GitHub Desktop.
Save nothingface0/1e5f010ed4cde1628713b4d5fd1e61ca to your computer and use it in GitHub Desktop.
[Legacy] DQMGUI Deployment
# Build with: sudo docker build . -t dqmgui:latest --build-arg DMWM_VERSION=<any dmwm/deployment tag>
# Run with: sudo docker run --detach --publish 8060:8060 -t dqmgui:latest
FROM gitlab-registry.cern.ch/linuxsupport/cc7-base:latest
ARG ARCH=slc7_amd64_gcc630
ARG DMWM_VERSION=HG2307a
WORKDIR /dqmgui
RUN yum update -y \
&& yum install -y \
bzip2 libglvnd-opengl libX11-devel libXext-devel \
libXft-devel libXpm-devel mesa-libGLU mesa-libGLU-devel \
perl-Env perl-Switch perl-Thread-Queue compat-libstdc++-33 \
glibc-headers libidn libXcursor libXi libXinerama libXrandr \
perl perl-Digest-MD5 tcsh zsh git python2 \
e2fsprogs e2fsprogs-libs file libXmu openssl perl-Data-Dumper \
perl-ExtUtils-Embed perl-Test-Harness tk
RUN useradd dqm \
&& mkdir -p /home/dqm \
&& chown dqm /dqmgui
USER dqm
# Deploy DQMGUI for specific flavor and tag
# TODO: Get flavor, tag and port from ARGs
RUN cd /dqmgui \
&& git clone https://github.com/dmwm/deployment.git \
&& $PWD/deployment/Deploy -A $ARCH -r "comp=comp" -R comp@${DMWM_TAG} -t MYDEV -s "prep sw post" $PWD dqmgui/bare \
# Replace kinit which may not be needed(?)
# && vi -es '+:75,82s/^/#/g' '+:wq!' $PWD/current/config/dqmgui/manage \
&& source current/apps/dqmgui/128/etc/profile.d/env.sh \
&& $PWD/current/config/dqmgui/manage -f dev compile "I did read documentation" \
&& echo "$PWD/current/config/dqmgui/manage -f dev start 'I did read documentation' && tail -f /dev/null" > entrypoint.sh \
&& chmod +x entrypoint.sh
EXPOSE 8060
ENTRYPOINT ["entrypoint.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment