diff --git a/services/backup/docker-base/contents/install_aws_sdk.sh b/services/backup/docker-base/contents/install_aws_sdk.sh --- a/services/backup/docker-base/contents/install_aws_sdk.sh +++ b/services/backup/docker-base/contents/install_aws_sdk.sh @@ -2,20 +2,14 @@ set -e -if [[ -d /usr/lib/aws-sdk-cpp ]] -then - echo "aws-sdk already exists, skipping installation(if the installation seems to be broken, remove this container/image and recreate it)..." - exit 0; -fi +cd /tmp -pushd /usr/lib - -git clone --recurse-submodules https://github.com/aws/aws-sdk-cpp -b 1.9.176 -mkdir aws_sdk_build -pushd aws_sdk_build -cmake ../aws-sdk-cpp/ -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/usr/local/aws_sdk -DBUILD_ONLY="core;s3;dynamodb" +git clone --recurse-submodules -b 1.9.176 --single-branch https://github.com/aws/aws-sdk-cpp +mkdir aws-sdk-cpp/_build +pushd aws-sdk-cpp/_build +cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/usr/local/aws_sdk -DBUILD_ONLY="core;s3;dynamodb" make make install -popd # aws_sdk_build -popd # /usr/lib +popd # aws-sdk-cpp/_build +rm -rf aws-sdk-cpp diff --git a/services/tunnelbroker/docker/install_amqp_cpp.sh b/services/tunnelbroker/docker/install_amqp_cpp.sh --- a/services/tunnelbroker/docker/install_amqp_cpp.sh +++ b/services/tunnelbroker/docker/install_amqp_cpp.sh @@ -1,13 +1,7 @@ #!/bin/bash set -e -if [[ -d /usr/lib/AMQP-CPP ]]; then - echo "AMQP-CPP sources already exists, you can try remove this container/image and recreate it." - echo "Installation skipped." - exit 0 -fi - -pushd /usr/lib +cd /tmp git clone --recurse-submodules -b v4.3.16 --single-branch https://github.com/CopernicaMarketingSoftware/AMQP-CPP pushd AMQP-CPP @@ -18,4 +12,4 @@ popd # build popd # AMQP-CPP-BUILD -popd # /usr/lib +rm -rf AMQP-CPP-BUILD diff --git a/services/tunnelbroker/docker/install_aws_sdk.sh b/services/tunnelbroker/docker/install_aws_sdk.sh --- a/services/tunnelbroker/docker/install_aws_sdk.sh +++ b/services/tunnelbroker/docker/install_aws_sdk.sh @@ -2,20 +2,14 @@ set -e -if [[ -d /usr/lib/aws-sdk-cpp ]]; then - echo "AWS-SDK sources already exists, you can try remove this container/image and recreate it." - echo "Installation skipped." - exit 0 -fi - -pushd /usr/lib +cd /tmp git clone --recurse-submodules -b 1.9.176 --single-branch https://github.com/aws/aws-sdk-cpp -mkdir aws_sdk_build -pushd aws_sdk_build -cmake ../aws-sdk-cpp/ -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/usr/local/aws_sdk -DBUILD_ONLY="core;dynamodb" +mkdir aws-sdk-cpp/_build +pushd aws-sdk-cpp/_build +cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/usr/local/aws_sdk -DBUILD_ONLY="core;dynamodb" make make install -popd # aws_sdk_build -popd # /usr/lib +popd # aws-sdk-cpp/_build +rm -rf aws-sdk-cpp diff --git a/services/tunnelbroker/docker/install_cryptopp.sh b/services/tunnelbroker/docker/install_cryptopp.sh --- a/services/tunnelbroker/docker/install_cryptopp.sh +++ b/services/tunnelbroker/docker/install_cryptopp.sh @@ -1,13 +1,7 @@ #!/bin/bash set -e -if [[ -d /usr/lib/cryptopp ]]; then - echo "Cryptopp sources already exists, you can try remove this container/image and recreate it." - echo "Installation skipped." - exit 0 -fi - -pushd /usr/lib +cd /tmp git clone --recurse-submodules -b CRYPTOPP_8_6_0 --single-branch https://github.com/weidai11/cryptopp pushd cryptopp @@ -18,4 +12,4 @@ make install popd # cryptopp -popd # /usr/lib +rm -rf cryptopp diff --git a/services/tunnelbroker/docker/install_libuv.sh b/services/tunnelbroker/docker/install_libuv.sh --- a/services/tunnelbroker/docker/install_libuv.sh +++ b/services/tunnelbroker/docker/install_libuv.sh @@ -1,13 +1,7 @@ #!/bin/bash set -e -if [[ -d /usr/lib/libuv ]]; then - echo "Libuv sources already exists, you can try remove this container/image and recreate it." - echo "Installation skipped." - exit 0 -fi - -pushd /usr/lib +cd /tmp git clone --recurse-submodules -b v1.43.0 --single-branch https://github.com/libuv/libuv.git pushd libuv @@ -18,4 +12,4 @@ make install popd # libuv -popd # /usr/lib +rm -rf libuv