Skip to content

Commit

Permalink
[Docker] Update docker/ subdirectory setup and xrd-docker script
Browse files Browse the repository at this point in the history
- Prefer podman instead of docker
- Remove .dockerfile which is no longer needed
- Move Dockerfiles up one directory level to simplify structure
  • Loading branch information
amadio committed Dec 18, 2024
1 parent 9aaef78 commit e27d870
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion docker/.dockerignore

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions docker/xrd-docker
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

trap 'exit 1' TERM KILL INT QUIT ABRT

: ${DOCKER:=$(command -v docker || command -v podman)}
: ${DOCKER:=$(command -v podman || command -v docker)}

build() {
OS=${1:-alma9}
[[ -f xrootd.tar.gz ]] || package
[[ -f build/Dockerfile.${OS} ]] || die "unknwon OS: $OS"
${DOCKER} build -f build/Dockerfile.${OS} -t xrootd -t xrootd:${OS} .
[[ -f Dockerfile.${OS} ]] || die "unknwon OS: $OS"
${DOCKER} build -f Dockerfile.${OS} -t xrootd -t xrootd:${OS} .
}


Expand All @@ -17,8 +17,8 @@ buildx() {
ARCH=${2:-amd64}
ARCH=${ARCH/linux\/}
[[ -f xrootd.tar.gz ]] || package
[[ -f build/Dockerfile.${OS} ]] || die "unknwon OS: $OS"
${DOCKER} buildx build --platform linux/${ARCH} -f build/Dockerfile.${OS} -t xrootd:${OS}-${ARCH/\/} .
[[ -f Dockerfile.${OS} ]] || die "unknwon OS: $OS"
${DOCKER} buildx build --platform linux/${ARCH} -f Dockerfile.${OS} -t xrootd:${OS}-${ARCH/\/} .
}

qemu() {
Expand Down

0 comments on commit e27d870

Please sign in to comment.