Skip to content

Commit

Permalink
Merge pull request #811 from dynamic-entropy/master
Browse files Browse the repository at this point in the history
Update use of sqlalchemy api and python symbolic links in probes
  • Loading branch information
dynamic-entropy authored Jun 19, 2024
2 parents 11aa263 + 0ac76af commit ced4485
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docker/rucio-probes/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,29 @@ ARG RUCIO_VERSION
FROM rucio/probes:$RUCIO_VERSION

# For now CMS versions use python3 explicitly. Can be removed when main container goes to python3
#RUN ln -s /usr/bin/python3 /usr/local/bin/python
RUN ln -s /usr/bin/python3 /usr/local/bin/python

# Add CMS policy package
RUN mkdir -p /opt/rucio/policy/CMSRucioPolicy
COPY src/policy/CMSRucioPolicy /opt/rucio/policy/CMSRucioPolicy
# Make it search the policy directory. Needs a change for python upgrades
RUN echo "/opt/rucio/policy" > /usr/local/lib/python3.9/site-packages/policy.pth

# Temporary additions

# Until Fernando ports to SQLAlchemy and/or merged
ADD https://raw.githubusercontent.com/dynamic-entropy/probes/30daccd5c735136e812c84d85e091b438d820f7c/common/check_deletable_replicas /probes/common
ADD https://raw.githubusercontent.com/dynamic-entropy/probes/30daccd5c735136e812c84d85e091b438d820f7c/common/check_obsolete_replicas /probes/common

ADD https://raw.githubusercontent.com/ericvaandering/probes/hack_obsolete_replicas/common/check_obsolete_replicas /probes/common
ADD https://raw.githubusercontent.com/nsmith-/probes/hack_replicas/common/check_deletable_replicas /probes/common
# TODO: Remove Tooo old? Was there a PR for them in rucio probes?
#ADD https://raw.githubusercontent.com/ericvaandering/probes/hack_obsolete_replicas/common/check_obsolete_replicas /probes/common
#ADD https://raw.githubusercontent.com/nsmith-/probes/hack_replicas/common/check_deletable_replicas /probes/common

# TODO: Merge Donata's probes somewhere
# This is removed by 122 or 123 from Panos
# ADD https://raw.githubusercontent.com/dmielaikaite/probes/dmielaik_probes/common/check_used_space /probes/common

# Where from?
# Supplanted in PR115 ADD https://raw.githubusercontent.com/ericvaandering/probes/cms_check_expired_rules/common/check_expired_rules /probes/common
ADD https://raw.githubusercontent.com/ericvaandering/probes/cms_check_expired_locked/common/check_expired_locked_rules /probes/common


# TODO: Most of these don't work either, each with a different error - different reasons than above
# PR 132 - Not accepted into rucio/probes yet
ADD https://raw.githubusercontent.com/voetberg/rucio_probes/common_context_manager_update/common/check_expired_dids /probes/common
ADD https://raw.githubusercontent.com/voetberg/rucio_probes/common_context_manager_update/common/check_fts_backlog /probes/common
Expand Down

0 comments on commit ced4485

Please sign in to comment.