From 9e6af1b832ae346c8d333d3caa9de0f7ebfcd620 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 12 Dec 2022 20:34:09 +0100 Subject: Docker: Get Go version from go.dev --- ci/docker/go-test.docker | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'ci/docker') 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"] -- cgit v1.2.3