Skip to content

Commit

Permalink
Add test dependencies to dev.Dockerfile for PR PelicanPlatform#419
Browse files Browse the repository at this point in the history
Need these in dev.Dockerfile for the tests to work.
  • Loading branch information
jhiemstrawisc committed Dec 4, 2023
1 parent 2632968 commit 798d5cc
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions images/dev.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,25 @@ ENV JAVA_HOME=/usr/lib/jvm/jre \

COPY images/dev-config.yaml /etc/pelican/pelican.yaml

# Install the S3 and HTTP server plugins for XRootD. For now we do this from source
# until we can sort out the RPMs.
RUN \
git clone https://github.com/PelicanPlatform/xrootd-s3-http.git && \
cd xrootd-s3-http && \
mkdir build && cd build && \
cmake .. && \
make install && \
# For now, until the RPM is set up, we install the libraries here, but
# we need to add to LD_LIBRARY_PATH so XRootD knows where to look
echo "/usr/local/lib" > /etc/ld.so.conf.d/xrdplugins.conf && ldconfig

# For S3 tests, we need the minIO server client, so we install based on detected arch
RUN if [ "$TARGETARCH" = "amd64" ]; then \
dnf install -y https://dl.min.io/server/minio/release/linux-amd64/minio-20231202105133.0.0.x86_64.rpm; \
elif [ "$TARGETARCH" = "arm64" ]; then \
dnf install -y https://dl.min.io/server/minio/release/linux-arm64/minio-20231202105133.0.0.aarch64.rpm; \
fi

WORKDIR /app

CMD ["/bin/bash"]
Expand Down

0 comments on commit 798d5cc

Please # to comment.