Mercurial > hg > orthanc-gcp
comparison Resources/holy-build-box-compile.sh @ 2:39bdff8f0247
user management in holy-build-box
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 13 Jun 2019 15:32:35 +0200 |
parents | 179203abadc5 |
children | cd1231292eb6 |
comparison
equal
deleted
inserted
replaced
1:179203abadc5 | 2:39bdff8f0247 |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 | |
3 ## | |
4 ## This script compiles cross-distribution Linux binaries thanks to | |
5 ## Holy Build Box: https://github.com/phusion/holy-build-box | |
6 ## | |
7 ## The ideal solution would be to use Linux Standard Base | |
8 ## (LSB). Unfortunately, the LSB C++ compiler is a pre-4.8 gcc that | |
9 ## does not feature full C++11 capabilities, which prevents compiling | |
10 ## the google-cloud-cpp project. | |
11 ## | |
12 | |
2 set -ex | 13 set -ex |
3 | 14 |
4 ROOT_DIR=`dirname $(readlink -f $0)`/.. | 15 ROOT_DIR=`dirname $(readlink -f $0)`/.. |
5 | 16 |
17 mkdir -p ${ROOT_DIR}/holy-build-box | |
18 | |
6 docker run -t -i --rm \ | 19 docker run -t -i --rm \ |
7 -v ${ROOT_DIR}:/source:ro \ | 20 --user $(id -u):$(id -g) \ |
8 -v ${ROOT_DIR}/holy-build-box:/target:rw \ | 21 -v ${ROOT_DIR}:/source:ro \ |
9 phusion/holy-build-box-64:2.0.1 \ | 22 -v ${ROOT_DIR}/holy-build-box:/target:rw \ |
10 bash /source/Resources/holy-build-box-internal.sh | 23 phusion/holy-build-box-64:2.0.1 \ |
24 bash /source/Resources/holy-build-box-internal.sh | |
11 | 25 |
12 ls -l ${ROOT_DIR}/holy-build-box/ | 26 ls -l ${ROOT_DIR}/holy-build-box/ |