Skip to content

Commit

Permalink
fix: bump the docker for API 1.22 deprecated and golang version from …
Browse files Browse the repository at this point in the history
…go1.17.10 to go1.21.3

Signed-off-by: James Lu <james.lu@suse.com>
  • Loading branch information
mantissahz committed Apr 3, 2024
1 parent e66837a commit 97bbe8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile.dapper
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ RUN apt-get update && \
apt-get install -y gcc ca-certificates git wget curl vim less file nfs-common && \
rm -f /bin/sh && ln -s /bin/bash /bin/sh

ENV DOCKER_URL_amd64=https://get.docker.com/builds/Linux/x86_64/docker-1.10.3 \
ENV DOCKER_URL_amd64=https://download.docker.com/linux/static/stable/x86_64/docker-20.10.17.tgz \
DOCKER_URL_arm=https://github.com/rancher/docker/releases/download/v1.10.3-ros1/docker-1.10.3_arm \
DOCKER_URL=DOCKER_URL_${ARCH}

RUN wget -O - ${!DOCKER_URL} > /usr/bin/docker && chmod +x /usr/bin/docker
RUN wget ${!DOCKER_URL} && tar xzvf docker-20.10.17.tgz && rm docker-20.10.17.tgz && mv ./docker/docker /usr/bin/docker && chmod +x /usr/bin/docker

ENV GOLANG_ARCH_amd64=amd64 GOLANG_ARCH_arm=armv6l GOLANG_ARCH=GOLANG_ARCH_${ARCH} \
GOPATH=/go PATH=/go/bin:/usr/local/go/bin:${PATH} SHELL=/bin/bash

RUN wget -O - https://storage.googleapis.com/golang/go1.17.10.linux-${!GOLANG_ARCH}.tar.gz | tar -xzf - -C /usr/local
RUN wget -O - https://storage.googleapis.com/golang/go1.21.3.linux-${!GOLANG_ARCH}.tar.gz | tar -xzf - -C /usr/local
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.55.2

ENV DAPPER_SOURCE /go/src/github.com/longhorn/backupstore
Expand Down

0 comments on commit 97bbe8a

Please sign in to comment.