Mercurial > hg > orthanc-gcp
view Resources/debian-buster-compile.sh @ 48:2e6c0fe4bdee
contributing
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 14 Aug 2023 10:26:33 +0200 |
parents | a45844994a67 |
children |
line wrap: on
line source
#!/bin/bash ## ## This script compiles the plugin for Debian buster, in static ## mode. The resulting binaries can be used in the Docker images of ## Orthanc, as those are also based on Debian buster: ## https://github.com/jodogne/OrthancDocker/blob/master/orthanc/Dockerfile ## set -ex if [ "$1" != "Debug" -a "$1" != "Release" ]; then echo "Please provide build type: Debug or Release" exit -1 fi if [ -t 1 ]; then # TTY is available => use interactive mode DOCKER_FLAGS='-i' fi ROOT_DIR=`dirname $(readlink -f $0)`/.. # Always make sure we use the latest version of Debian buster docker pull debian:buster mkdir -p ${ROOT_DIR}/debian-buster docker run -t ${DOCKER_FLAGS} --rm \ -v ${ROOT_DIR}:/source:ro \ -v ${ROOT_DIR}/debian-buster:/target:rw \ debian:buster \ bash /source/Resources/debian-internal.sh $1 $(id -u) $(id -g) ls -l ${ROOT_DIR}/debian-buster/