Skip to content
Snippets Groups Projects
Commit 3e7c2389 authored by Florent Gluck's avatar Florent Gluck
Browse files

Fixed issue with newer go version

parent 51f43670
No related branches found
No related tags found
No related merge requests found
......@@ -10,9 +10,18 @@ ARG cert
ARG exam_user
ARG exam_pwd
RUN apt-get update && apt-get install -y gcc pkg-config git wget make ca-certificates libglfw3-dev libxcursor-dev libxinerama-dev libxi-dev libxxf86vm-dev upx-ucl
# Install go 1.22 from the official GO site
ENV archive=go1.22.6.linux-amd64.tar.gz
ENV PATH=$PATH:/usr/local/go/bin
WORKDIR /go
RUN wget https://go.dev/dl/$archive
RUN tar -C /usr/local -xzf $archive
# Compile nexus-exam
WORKDIR /nexus
COPY ${base_dir} .
RUN apt-get update && apt-get install -y golang-go make ca-certificates libglfw3-dev libxcursor-dev libxinerama-dev libxi-dev libxxf86vm-dev upx-ucl
RUN make build_nexus-exam SERVER=${server_ip}:${server_port} CERT=${cert} EXAM_USER=${exam_user} EXAM_PWD=${exam_pwd}
#--------------------------------------------------------------------------------------------------------------------
......
......@@ -28,9 +28,10 @@ build_docker_image () {
mkdir $dir || abort
# Copy pub certificate
cp $CERT $dir || abort
# Copy Makefile and sources files
# Copy Makefile, sources files and git files (as we insert the git commit hash into nexus-exam)
cp ../Makefile $dir || abort
cp -r ../src $dir || abort
cp -r ../.git $dir || abort
cert_file=`basename $CERT`
# build context is ".." since we need access to the ../src directory in order to build nexus-exam
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment