aboutsummaryrefslogtreecommitdiffstats
path: root/deployment
diff options
context:
space:
mode:
authorTomasz Pietruszkiewicz <tomasz.pietruszkiewicz@nokia.com>2021-03-19 12:56:03 +0100
committerTomasz Pietruszkiewicz <tomasz.pietruszkiewicz@nokia.com>2021-03-19 12:56:03 +0100
commitb7fd32213255918918772876b74523ec3ff35ecf (patch)
tree04e4e36a695e3501ee25673fc295b6d5bf1d6ccb /deployment
parent90b40166c45d2348cf2cb99b47bbba6381e2362c (diff)
Remove usage of go and curl in cli project, due to know issue in curl version <7.68.0
https://github.com/curl/curl/issues/4409 latest available curl in debian is 7.64.0 Change-Id: I3b9125266a87f47d46f6ee7611b36aa5be5192fe Issue-ID: INT-1891 Signed-off-by: Tomasz Pietruszkiewicz <tomasz.pietruszkiewicz@nokia.com>
Diffstat (limited to 'deployment')
-rw-r--r--deployment/docker/src/main/docker/Dockerfile9
1 files changed, 4 insertions, 5 deletions
diff --git a/deployment/docker/src/main/docker/Dockerfile b/deployment/docker/src/main/docker/Dockerfile
index 05684eee..cd3fa5eb 100644
--- a/deployment/docker/src/main/docker/Dockerfile
+++ b/deployment/docker/src/main/docker/Dockerfile
@@ -32,11 +32,10 @@ ENV OPEN_CLI_HOME=/opt/oclip \
ADD ./STAGE $OPEN_CLI_HOME
WORKDIR $OPEN_CLI_HOME
-RUN sudo apt-get install -y lighttpd git curl pandoc vim && \
- cd /tmp && curl -O https://storage.googleapis.com/golang/go1.9.linux-amd64.tar.gz && \
- tar -xvf go1.9.linux-amd64.tar.gz && mkdir -p /tmp/gotty && \
- GOPATH=/tmp/gotty /tmp/go/bin/go get github.com/yudai/gotty && \
- mv /tmp/gotty/bin/gotty /usr/local/bin/ && \
+RUN sudo apt-get install -y lighttpd git wget pandoc vim && \
+ cd /tmp && wget https://github.com/yudai/gotty/releases/download/v1.0.0/gotty_linux_amd64.tar.gz && \
+ tar -xvf gotty_linux_amd64.tar.gz && chmod +x ./gotty && \
+ mv ./gotty /usr/local/bin/ && \
sudo chown -R ocomp:ocomp $OPEN_CLI_HOME && pandoc -t plain $OPEN_CLI_HOME/docs/README.md > $OPEN_CLI_HOME/docs/oclip-readme.txt && \
sudo apt-get purge -y pandoc && sudo apt-get autoremove -y && sudo apt-get clean && sudo rm -rf /var/lib/apt/lists/* /tmp/go /tmp/gotty /tmp/* /var/tmp/* && \
chmod +x $OPEN_CLI_HOME/bin/oclip.sh && \