Skip to content

Commit

Permalink
Upgrade XNAT to v1.9.0 and standard AIS plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
fxusyd committed Oct 13, 2024
1 parent e3da942 commit d231fec
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 14 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/docker-buildx-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,40 +20,41 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
-
name: Docker meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: |
${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.PACKAGE_NAME }}
tags: |
type=semver,priority=900,pattern={{version}}
type=match,priority=800,pattern=v(.*)
type=match,priority=800,pattern=\d+.\d+.\d+.\d+
type=match,priority=800,pattern=\d+.\d+.\d+
type=sha
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
-
name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
context: .
# cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.PACKAGE_NAME }}:buildcache
# cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.PACKAGE_NAME }}:buildcache,mode=max
platforms: linux/amd64,linux/arm64
push: true
tags: |
${{ steps.meta.outputs.tags }}
${{ steps.meta.outputs.tags }}
18 changes: 11 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
ARG XNAT_VERSION=1.8.10.1
ARG XNAT_VERSION=1.9.0
ARG XNAT_ROOT=/data/xnat
ARG XNAT_HOME=/data/xnat/home
# default plugins for AIS
ARG container_service_ver=3.4.3-fat
ARG ldap_auth_ver=1.1.0
ARG ohif_viewer_ver=3.6.2
ARG container_service_ver=3.6.0-fat
ARG ldap_auth_ver=1.2.0
ARG ohif_viewer_ver=3.7.0-XNAT-1.8.10
ARG openid_auth_ver=1.3.1-xpl
ARG xsync_ver=1.7.0
ARG batch_launch_ver=0.6.0
ARG xsync_ver=1.8.0
ARG batch_launch_ver=0.7.0
ARG jupyterhub_ver=1.2.0

FROM tomcat:9-jdk8 as build
FROM tomcat:9-jdk8 AS build
ARG XNAT_VERSION
ARG XNAT_ROOT
ARG XNAT_HOME
Expand All @@ -20,6 +21,7 @@ ARG ohif_viewer_ver
ARG openid_auth_ver

Check warning on line 21 in Dockerfile

View workflow job for this annotation

GitHub Actions / build

Sensitive data should not be used in the ARG or ENV commands

SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ARG "openid_auth_ver") More info: https://docs.docker.com/go/dockerfile/rule/secrets-used-in-arg-or-env/
ARG xsync_ver
ARG batch_launch_ver
ARG jupyterhub_ver

RUN <<EOT
apt-get update
Expand Down Expand Up @@ -70,6 +72,8 @@ RUN <<EOT
https://api.bitbucket.org/2.0/repositories/xnatdev/xsync/downloads/xsync-plugin-all-${xsync_ver}.jar
wget --no-verbose -P ${XNAT_HOME}/plugins \
https://api.bitbucket.org/2.0/repositories/xnatx/xnatx-batch-launch-plugin/downloads/batch-launch-${batch_launch_ver}.jar
wget --no-verbose -P ${XNAT_HOME}/plugins \
https://api.bitbucket.org/2.0/repositories/xnatx/xnat-jupyterhub-plugin/downloads/xnat-jupyterhub-plugin-${jupyterhub_ver}.jar
EOT

FROM tomcat:9-jdk8
Expand Down

0 comments on commit d231fec

Please sign in to comment.