You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by ra...@apache.org on 2020/08/07 14:13:22 UTC
[openwhisk-apigateway] branch master updated: fix(rclone): use
official install mechanism (#381)
This is an automated email from the ASF dual-hosted git repository.
rabbah pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk-apigateway.git
The following commit(s) were added to refs/heads/master by this push:
new 1e90148 fix(rclone): use official install mechanism (#381)
1e90148 is described below
commit 1e901484a69d5973c28e864849b7e4bed11ddb90
Author: Matt Hamann <ma...@gmail.com>
AuthorDate: Fri Aug 7 10:13:13 2020 -0400
fix(rclone): use official install mechanism (#381)
---
Dockerfile | 2 +-
build_config_supervisor.sh | 9 +++++++--
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/Dockerfile b/Dockerfile
index ce8d088..c37e5df 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -250,7 +250,7 @@ RUN echo " ... installing cjose ... " \
ENV CONFIG_SUPERVISOR_VERSION 1.0.1-RC1
COPY build_config_supervisor.sh /tmp/build_config_supervisor.sh
-RUN sh +x /tmp/build_config_supervisor.sh
+RUN sh +x -e /tmp/build_config_supervisor.sh
# Add standard gateway configuration
FROM base as apigateway
diff --git a/build_config_supervisor.sh b/build_config_supervisor.sh
index 6bb01d2..f19ec6b 100644
--- a/build_config_supervisor.sh
+++ b/build_config_supervisor.sh
@@ -39,8 +39,12 @@ GOPATH=/tmp/go/vendor:/tmp/go-src CGO_ENABLED=0 GOOS=linux /usr/lib/go/bin/godep
mv /tmp/go/api-gateway-config-supervisor /usr/local/sbin/
echo "installing rclone sync ... "
-go get github.com/ncw/rclone
-mv /usr/lib/go/bin/rclone /usr/local/sbin/
+mkdir -p /tmp/rclone
+cd /tmp/rclone
+curl -O https://downloads.rclone.org/rclone-current-linux-amd64.zip
+unzip rclone-current-linux-amd64.zip
+cd rclone-*-linux-amd64
+mv ./rclone /usr/local/sbin/
mkdir -p /root/.config/rclone/
cat <<EOF > /root/.config/rclone/rclone.conf
[local]
@@ -50,6 +54,7 @@ EOF
echo " cleaning up ... "
rm -rf /usr/lib/go/bin/src
+rm -rf /tmp/rclone
rm -rf /tmp/go
rm -rf /tmp/go-src
rm -rf /usr/lib/go/bin/pkg/