From f25079e705db26d767ae9b4f8b73085e2ddc8750 Mon Sep 17 00:00:00 2001 From: yuyi Date: Thu, 2 Sep 2021 15:30:53 -0500 Subject: [PATCH] add run file & update Dockfile for xrootd server, correct build.yml. --- .github/workflows/build.yml | 4 ++-- Dockerfile | 1 + run-xrootd.sh | 9 +++++++++ 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 run-xrootd.sh diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 14656d0..ad41178 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -64,7 +64,7 @@ jobs: - name: Build image run: | docker build . --tag docker.pkg.github.com/dmwm/rucio-tracers - docker tag docker.pkg.github.com/dmwm/rucio-tracers/rucio-tracers registry.cern.ch/cmsweb/rucio-tracers + docker tag docker.pkg.github.com/dmwm/rucio-tracers registry.cern.ch/cmsweb/rucio-tracers - name: Login to registry.cern.ch uses: docker/login-action@v1.6.0 @@ -95,7 +95,7 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} registry: docker.pkg.github.com - repository: dmwm/rucio-tracers/rucio-tracers + repository: dmwm/rucio-tracers tag_with_ref: true - name: Login to DockerHub diff --git a/Dockerfile b/Dockerfile index 8fb652c..048f69a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,6 +26,7 @@ COPY --from=go-builder /data/RucioTracers/stompserver/RucioTracer /data/ RUN mkdir -p /data/run && mkdir -p /data/etc COPY --from=go-builder /data/RucioTracers/run.sh /data/run/ COPY --from=go-builder /data/RucioTracers/run-swpop.sh /data/run/ +COPY --from=go-builder /data/RucioTracers/run-xrootd.sh /data/run/ COPY --from=go-builder /data/RucioTracers/etc/ruciositemap.json /data/etc/ COPY --from=go-builder /data/RucioTracers/etc/domainsitemap.txt /data/etc/ RUN chmod +x /data/run/* diff --git a/run-xrootd.sh b/run-xrootd.sh new file mode 100644 index 0000000..b1c9f72 --- /dev/null +++ b/run-xrootd.sh @@ -0,0 +1,9 @@ +#!/bin/sh +cd /data +echo $PWD +ls +ls /etc/secrets +ls -l /data/RucioTracer +/data/RucioTracer -help +/data/RucioTracer -config /etc/secrets/stompserverconfig4xrtd.json -sitemap /data/etc/ruciositemap.json -domainmap /data/etc/domainsitemap.txt +