Skip to content

Commit

Permalink
Switch back to John xcache plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
oshadura committed Apr 5, 2023
1 parent 2fd5999 commit c9fda5e
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 39 deletions.
39 changes: 19 additions & 20 deletions docker/Dockerfile.cc-analysis-ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -117,35 +117,34 @@ RUN pip install --no-cache-dir \

RUN if [[ -z "$DEV" ]] ; then pip install --no-cache-dir coffea_casa -U ; else pip install --no-cache-dir git+https://github.com/CoffeaTeam/coffea-casa.git#egg=coffea_casa; fi


# ------- xrootd-xcache-plugin -------------------------------
#RUN cd /tmp && \
# git clone -b xcache https://github.com/jthiltges/xrdcl-authz-plugin.git && \
# cd xrdcl-authz-plugin && \
# mkdir build && \
# cd build && \
# cmake /tmp/xrdcl-authz-plugin -DCMAKE_INSTALL_PREFIX=${CONDA_DIR} && \
# make && \
# make install

#ENV XRD_PLUGINCONFDIR="${CONDA_DIR}/etc/xrootd/client.plugins.d/"
#ENV XRD_PLUGIN="${CONDA_DIR}/lib/libXrdClXcachePlugin-5.so"

# REMOVE THIS BLOCK AFTER TEST:
# ------- xrootd-authz-plugin -------------------------------
RUN cd /tmp && \
# ------- xrdcl-authz-plugin -------------------------------
git clone https://github.com/bbockelm/xrdcl-authz-plugin.git && \
git clone -b xcache https://github.com/jthiltges/xrdcl-authz-plugin.git && \
cd xrdcl-authz-plugin && \
mkdir build && \
cd build && \
cmake /tmp/xrdcl-authz-plugin -DCMAKE_INSTALL_PREFIX=${CONDA_DIR} && \
make && \
make install && \
ln -s ${CONDA_DIR}/lib/libXrdClAuthzPlugin-5.so ${CONDA_DIR}/lib/libXrdClAuthzPlugin.so
make install

ENV XRD_PLUGINCONFDIR="${CONDA_DIR}/etc/xrootd/client.plugins.d/"
ENV XRD_PLUGIN="${CONDA_DIR}/lib/libXrdClAuthzPlugin.so"
ENV XRD_PLUGIN="${CONDA_DIR}/lib/libXrdClXcachePlugin-5.so"

# REMOVE THIS BLOCK AFTER TEST:
# ------- xrootd-authz-plugin -------------------------------
#RUN cd /tmp && \
# # ------- xrdcl-authz-plugin -------------------------------
# git clone https://github.com/bbockelm/xrdcl-authz-plugin.git && \
# cd xrdcl-authz-plugin && \
# mkdir build && \
# cd build && \
# cmake /tmp/xrdcl-authz-plugin -DCMAKE_INSTALL_PREFIX=${CONDA_DIR} && \
# make && \
# make install && \
# ln -s ${CONDA_DIR}/lib/libXrdClAuthzPlugin-5.so ${CONDA_DIR}/lib/libXrdClAuthzPlugin.so

#ENV XRD_PLUGINCONFDIR="${CONDA_DIR}/etc/xrootd/client.plugins.d/"
#ENV XRD_PLUGIN="${CONDA_DIR}/lib/libXrdClAuthzPlugin.so"
# Patching uproot (broken xrootd-authz-plugin with xrootd > 5.2.0 and uproot.MultithreadedXRootDSource)
COPY uproot/uproot_xrd_source.patch /opt/conda/lib/python3.8/site-packages/uproot
RUN cd /opt/conda/lib/python3.8/site-packages/uproot && patch < uproot_xrd_source.patch
Expand Down
38 changes: 19 additions & 19 deletions docker/Dockerfile.cc-ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -75,33 +75,33 @@ RUN pip install --no-cache-dir \
RUN if [[ -z "$DEV" ]] ; then pip install --no-cache-dir coffea_casa -U ; else pip install --no-cache-dir git+https://github.com/CoffeaTeam/coffea-casa.git#egg=coffea_casa; fi

# ------- xrootd-xcache-plugin -------------------------------
#RUN cd /tmp && \
# git clone -b xcache https://github.com/jthiltges/xrdcl-authz-plugin.git && \
# cd xrdcl-authz-plugin && \
# mkdir build && \
# cd build && \
# cmake /tmp/xrdcl-authz-plugin -DCMAKE_INSTALL_PREFIX=${CONDA_DIR} && \
# make && \
# make install

#ENV XRD_PLUGINCONFDIR="${CONDA_DIR}/etc/xrootd/client.plugins.d/"
#ENV XRD_PLUGIN="${CONDA_DIR}/lib/libXrdClXcachePlugin-5.so"

# REMOVE THIS BLOCK AFTER TEST:
# ------- xrootd-authz-plugin -------------------------------
RUN cd /tmp && \
# ------- xrdcl-authz-plugin -------------------------------
git clone https://github.com/bbockelm/xrdcl-authz-plugin.git && \
git clone -b xcache https://github.com/jthiltges/xrdcl-authz-plugin.git && \
cd xrdcl-authz-plugin && \
mkdir build && \
cd build && \
cmake /tmp/xrdcl-authz-plugin -DCMAKE_INSTALL_PREFIX=${CONDA_DIR} && \
make && \
make install && \
ln -s ${CONDA_DIR}/lib/libXrdClAuthzPlugin-5.so ${CONDA_DIR}/lib/libXrdClAuthzPlugin.so
make install

ENV XRD_PLUGINCONFDIR="${CONDA_DIR}/etc/xrootd/client.plugins.d/"
ENV XRD_PLUGIN="${CONDA_DIR}/lib/libXrdClAuthzPlugin.so"
ENV XRD_PLUGIN="${CONDA_DIR}/lib/libXrdClXcachePlugin-5.so"

# REMOVE THIS BLOCK AFTER TEST:
# ------- xrootd-authz-plugin -------------------------------
#RUN cd /tmp && \
# # ------- xrdcl-authz-plugin -------------------------------
# git clone https://github.com/bbockelm/xrdcl-authz-plugin.git && \
# cd xrdcl-authz-plugin && \
# mkdir build && \
# cd build && \
# cmake /tmp/xrdcl-authz-plugin -DCMAKE_INSTALL_PREFIX=${CONDA_DIR} && \
# make && \
# make install && \
# ln -s ${CONDA_DIR}/lib/libXrdClAuthzPlugin-5.so ${CONDA_DIR}/lib/libXrdClAuthzPlugin.so

#ENV XRD_PLUGINCONFDIR="${CONDA_DIR}/etc/xrootd/client.plugins.d/"
#ENV XRD_PLUGIN="${CONDA_DIR}/lib/libXrdClAuthzPlugin.so"
# Patching uproot (broken xrootd-authz-plugin with xrootd > 5.2.0 and uproot.MultithreadedXRootDSource)
COPY uproot/uproot_xrd_source.patch /opt/conda/lib/python3.8/site-packages/uproot
RUN cd /opt/conda/lib/python3.8/site-packages/uproot && patch < uproot_xrd_source.patch
Expand Down

0 comments on commit c9fda5e

Please sign in to comment.