summaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-12-12 20:34:09 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-12-14 15:41:31 +0100
commit9e6af1b832ae346c8d333d3caa9de0f7ebfcd620 (patch)
tree77d92d52b6570e425024d4d991628a601e2cedb7 /ci
parent23478f31bcb5ae5f65c8926d9e24b25dc40b61ce (diff)
Docker: Get Go version from go.dev
Diffstat (limited to 'ci')
-rw-r--r--ci/docker/go-test.docker17
1 files changed, 15 insertions, 2 deletions
diff --git a/ci/docker/go-test.docker b/ci/docker/go-test.docker
index e990521..ec98d0c 100644
--- a/ci/docker/go-test.docker
+++ b/ci/docker/go-test.docker
@@ -6,7 +6,20 @@ WORKDIR /eduvpn
# Dependencies
RUN apt-get update
-RUN apt-get -y install openjdk-11-jre xvfb python3-selenium firefox-esr python3-pip golang wget
+RUN apt-get -y install openjdk-11-jre xvfb python3-selenium firefox-esr python3-pip wget
+
+# Install go from go.dev
+# Get
+RUN wget https://go.dev/dl/go1.19.4.linux-amd64.tar.gz -O go.tar.gz
+
+# Verify hash
+RUN echo "c9c08f783325c4cf840a94333159cc937f05f75d36a8b307951d5bd959cf2ab8 go.tar.gz" | sha256sum --check
+
+# Untar
+RUN tar -C /usr/local -xzf go.tar.gz
+
+# Update PATH
+ENV PATH="/usr/local/go/bin:$PATH"
# Install geckodriver and add to path
WORKDIR /eduvpn/vendor
@@ -43,4 +56,4 @@ RUN make -C wrappers/python
RUN pip3 install wrappers/python/dist/*.whl
# Run the tests
-CMD ["make", "test"] \ No newline at end of file
+CMD ["make", "test"]