Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
Loading items

Target

Select target project
0 results Searching
Select Git revision
Loading items
Show changes

Commits on Source 3218

3,118 additional commits have been omitted to prevent performance issues.
1000 files
+ 108186
21118
Compare changes
  • Side-by-side
  • Inline

Files

.ci/online/Dockerfile

0 → 100644
+26 −0
Original line number Diff line number Diff line
ARG TAG=12-fair202211.4-rocm5.4
ARG REGISTRY=hub.cbm.gsi.de/computing/images/online

FROM ${REGISTRY}/dev:${TAG} as build
  ARG SOURCE_DIR=/opt/cbm/src
  WORKDIR ${SOURCE_DIR}
  # Kaniko doesn't support RUN --mount, so we have to copy the source code instead
  COPY . .
  RUN .ci/online/scripts/install.sh

FROM ${REGISTRY}/runtime:${TAG}
  ARG CBMROOT_PATH=/opt/cbm/cbmroot
  ARG FAIRSOFT_PATH=/opt/cbm/fairsoft
  COPY --from=build ${CBMROOT_PATH}/bin ${CBMROOT_PATH}/bin
  COPY --from=build ${CBMROOT_PATH}/lib/*.so ${CBMROOT_PATH}/lib/
  # FIXME HACK FOR DC OCT 23
  COPY --from=build ${FAIRSOFT_PATH}/lib/libGenVector.so ${FAIRSOFT_PATH}/lib/.
  COPY --from=build ${FAIRSOFT_PATH}/lib/libGenVector.so.6.26 ${FAIRSOFT_PATH}/lib/.
  COPY --from=build ${FAIRSOFT_PATH}/lib/libGenVector.so.6.26.10 ${FAIRSOFT_PATH}/lib/.
  COPY --from=build ${FAIRSOFT_PATH}/lib/libCore.so ${FAIRSOFT_PATH}/lib/.
  COPY --from=build ${FAIRSOFT_PATH}/lib/libCore.so.6.26 ${FAIRSOFT_PATH}/lib/.
  COPY --from=build ${FAIRSOFT_PATH}/lib/libCore.so.6.26.10 ${FAIRSOFT_PATH}/lib/.

  ENV LD_LIBRARY_PATH=${CBMROOT_PATH}/lib:${FAIRSOFT_PATH}/lib:/opt/rocm/lib:${LD_LIBRARY_PATH}
  ENV PATH=${CBMROOT_PATH}/bin:${PATH}
  CMD ["cbmreco"]
+13 −0
Original line number Diff line number Diff line
FROM gcr.io/kaniko-project/executor:v1.16.0-debug
    ARG USERNAME="username"
    ARG PASSWORD="your_password"
    ARG REGISTRY="hub.cbm.gsi.de"
    ARG IMAGE="${REGISTRY}/computing/cbmroot/cbm_online"
    ARG TAG="${USER}-debug"
    RUN mkdir -p /kaniko/.docker
    RUN echo "{\"auths\":{\"${REGISTRY}\":{\"username\":\"${USERNAME}\",\"password\":\"${PASSWORD}\"}}}" > /kaniko/.docker/config.json
    # TODO: Mount CbmRoot source instead of copying it into the container (-> same with authentification...)
    COPY . /workspace
    ENV IMAGE=${IMAGE}
    ENV TAG=${TAG}
    ENTRYPOINT ["/bin/sh" , "-xc", "/kaniko/executor --context dir:///workspace --dockerfile /workspace/algo/containers/cbm_online/Dockerfile --destination $IMAGE:$TAG"]
+44 −0
Original line number Diff line number Diff line
#!/bin/bash

set -e

user="$1"
password="$2"

script=$(readlink -f "$0")

function check_arg() {
    if [ -z "$1" ]; then
        echo "Error: No $2 specified."
        echo "Usage: $script <user> <password>"
        exit 1
    fi
}

check_arg "$user" "user"
check_arg "$password" "password"

# Set tag as optional third argument
if [ -z "$3" ]; then
    tag="$user-debug"
else
    tag="$3"
fi

# This script must be run from the CbmRoot top level directory.
# Check for .git, .clang-format, and .gitlab-ci.yml
if [ ! -d .git ] || [ ! -f .clang-format ] || [ ! -f .gitlab-ci.yml ]; then
    echo "Error: This script must be run from the CbmRoot top level directory."
    exit 1
fi

registry="hub.cbm.gsi.de/computing/cbmroot"
image="cbm_online"

build_args=" \
    --build-arg="USERNAME=$user" \
    --build-arg="PASSWORD=$password" \
    --build-arg="TAG=$tag" \
"
dockerfile="algo/containers/cbm_online/DockerfileBuild"
docker build --progress plain $build_args -f $dockerfile -t cbm_online_builder .