-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
monit - use taskworker pypi image as base docker image for monitoring…
… scripts (#8505) * monit - use crabtaskworker tw image * monit - use crabtaskworker tw image - remove old images * monit - use crabtaskworker tw image - apply changes suggested by wa
- Loading branch information
1 parent
95cec3e
commit 3e7d9bf
Showing
10 changed files
with
71 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
ARG BASE_TAG=latest | ||
FROM registry.cern.ch/cmscrab/crabtaskworker:${BASE_TAG} | ||
|
||
RUN pip install --user pandas | ||
|
||
RUN mkdir -p /data/srv/monit/ | ||
COPY ./src/python/ServerUtilities.py \ | ||
./src/python/RESTInteractions.py \ | ||
./src/script/Monitor/GenerateMONIT.py \ | ||
./scripts/Utils/CheckTapeRecall.py \ | ||
./src/script/Monitor/aso_metrics_ora.py \ | ||
./src/script/Monitor/ReportRecallQuota.py \ | ||
/data/srv/monit | ||
|
||
ENV PYTHONPATH=/data/srv/current/lib/python/site-packages:${PYTHONPATH:-} | ||
|
||
ENV RUCIO_HOME=/cvmfs/cms.cern.ch/rucio/current/ | ||
ENV RUCIO_ACCOUNT="crab_server" | ||
# no need to source a rucio environment from cvmfs. rucio client is already installed | ||
# via pip, do not pollute the python env with things you do not need! | ||
# ENV PYTHONPATH=$PYTHONPATH:/cvmfs/cms.cern.ch/rucio/x86_64/el9/py3/current/lib/python3.9/site-packages/ | ||
# ENV PYTHONPATH=$PYTHONPATH:/cvmfs/cms.cern.ch/rucio/x86_64/el8/py3/current/lib/python3.6/site-packages/ | ||
|
||
ENTRYPOINT ["tini", "--"] | ||
|
||
CMD python3 /data/srv/monit/GenerateMONIT.py | ||
# CMD python3.8 /data/srv/monit/CheckTapeRecall.py | ||
# cp -v RecallRules.html /data/eos/RecallRules-docker.html | ||
## we decided to send data to opensearch instead of saving it to eos. no need to copy the file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters