This repository has been archived by the owner on Sep 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- bump version + bump go to v1.13.12 + bump kubectl to v0.18.2 + bump golangci-lint to v1.27.0 + bump controller-gen to v0.3.0 - change to only install docker client - parameterized component version - adjust the script of integration/e2e test BREAKING CHANGE: - need to change the version of go on dev laptop - need to change the version of kubectl on dev laptop - need to change the version of golangci-lint on dev laptop - need to change the version of controller-gen on dev laptop
- Loading branch information
1 parent
a3f8df1
commit 3a2e4bd
Showing
40 changed files
with
420 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,32 @@ | ||
FROM golang:1.13.9-buster | ||
RUN apt-get update && \ | ||
apt-get install -y xz-utils unzip netcat | ||
FROM golang:1.13.12-buster | ||
RUN apt-get update -qq && apt-get install -y --no-install-recommends \ | ||
xz-utils \ | ||
unzip \ | ||
netcat \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# -- for make rules | ||
## install docker | ||
RUN curl -sSfL "https://get.docker.com" | sh -s VERSION=19.03; \ | ||
## install docker client | ||
RUN apt-get update -qq && apt-get install -y --no-install-recommends \ | ||
apt-transport-https \ | ||
ca-certificates \ | ||
curl \ | ||
gnupg \ | ||
&& rm -rf /var/lib/apt/lists/*; \ | ||
\ | ||
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - >/dev/null; \ | ||
echo "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/debian buster stable" > /etc/apt/sources.list.d/docker.list; \ | ||
\ | ||
apt-get update -qq && apt-get install -y --no-install-recommends \ | ||
docker-ce-cli=5:19.03.* \ | ||
&& rm -rf /var/lib/apt/lists/*; \ | ||
docker --version | ||
## install kubectl | ||
RUN curl -fL "https://storage.googleapis.com/kubernetes-release/release/v1.17.2/bin/$(go env GOOS)/$(go env GOARCH)/kubectl" -o /usr/local/bin/kubectl && chmod +x /usr/local/bin/kubectl; \ | ||
RUN curl -fL "https://storage.googleapis.com/kubernetes-release/release/v1.18.2/bin/$(go env GOOS)/$(go env GOARCH)/kubectl" -o /usr/local/bin/kubectl && chmod +x /usr/local/bin/kubectl; \ | ||
kubectl version --short --client | ||
## install golangci-lint | ||
RUN if [ "$(go env GOARCH)" = "amd64" ]; then \ | ||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "$(go env GOPATH)/bin" v1.24.0; \ | ||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "$(go env GOPATH)/bin" v1.27.0; \ | ||
golangci-lint --version; \ | ||
fi | ||
## install protoc & generate | ||
|
@@ -27,16 +42,21 @@ RUN if [ "$(go env GOARCH)" = "amd64" ]; then \ | |
fi | ||
## install controller-gen | ||
RUN if [ "$(go env GOARCH)" = "amd64" ]; then \ | ||
GO111MODULE=on go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.2.5; \ | ||
GO111MODULE=on go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.3.0; \ | ||
controller-gen --version; \ | ||
fi | ||
## install ginkgo | ||
RUN if [ "$(go env GOARCH)" = "amd64" ]; then \ | ||
GO111MODULE=on go get github.com/onsi/ginkgo/[email protected]; \ | ||
ginkgo version; \ | ||
fi | ||
# -- for make rules | ||
|
||
# -- for dapper | ||
ENV DAPPER_RUN_ARGS --privileged --network host | ||
ENV GO111MODULE=off | ||
ENV CROSS=false | ||
ENV DAPPER_ENV CROSS LOCAL_CLUSTER_KIND DOCKER_USERNAME DOCKER_PASSWORD WITHOUT_MANIFEST ONLY_MANIFEST IGNORE_MISSING DRONE_TAG REPO TAG OS ARCH IMAGE_NAME | ||
ENV DAPPER_ENV CROSS LOCAL_CLUSTER_KIND DOCKER_USERNAME DOCKER_PASSWORD WITHOUT_MANIFEST ONLY_MANIFEST IGNORE_MISSING DRONE_TAG REPO TAG OS ARCH IMAGE_NAME DIRTY_CHECK | ||
ENV DAPPER_SOURCE /go/src/github.com/rancher/octopus/ | ||
ENV DAPPER_OUTPUT ./bin ./dist ./deploy ./pkg/adaptor/api ./api | ||
ENV DAPPER_DOCKER_SOCKET true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,51 @@ | ||
FROM golang:1.13.9-buster | ||
RUN apt-get update && \ | ||
apt-get install -y xz-utils unzip netcat | ||
FROM golang:1.13.12-buster | ||
RUN apt-get update -qq && apt-get install -y --no-install-recommends \ | ||
xz-utils \ | ||
unzip \ | ||
netcat \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# -- for make rules | ||
## install docker | ||
RUN curl -sSfL "https://get.docker.com" | sh -s VERSION=19.03; \ | ||
## install docker client | ||
RUN apt-get update -qq && apt-get install -y --no-install-recommends \ | ||
apt-transport-https \ | ||
ca-certificates \ | ||
curl \ | ||
gnupg \ | ||
&& rm -rf /var/lib/apt/lists/*; \ | ||
\ | ||
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - >/dev/null; \ | ||
echo "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/debian buster stable" > /etc/apt/sources.list.d/docker.list; \ | ||
\ | ||
apt-get update -qq && apt-get install -y --no-install-recommends \ | ||
docker-ce-cli=5:19.03.* \ | ||
&& rm -rf /var/lib/apt/lists/*; \ | ||
docker --version | ||
## install kubectl | ||
RUN curl -fL "https://storage.googleapis.com/kubernetes-release/release/v1.17.2/bin/$(go env GOOS)/$(go env GOARCH)/kubectl" -o /usr/local/bin/kubectl && chmod +x /usr/local/bin/kubectl; \ | ||
RUN curl -fL "https://storage.googleapis.com/kubernetes-release/release/v1.18.2/bin/$(go env GOOS)/$(go env GOARCH)/kubectl" -o /usr/local/bin/kubectl && chmod +x /usr/local/bin/kubectl; \ | ||
kubectl version --short --client | ||
## install golangci-lint | ||
RUN if [ "$(go env GOARCH)" = "amd64" ]; then \ | ||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "$(go env GOPATH)/bin" v1.24.0; \ | ||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "$(go env GOPATH)/bin" v1.27.0; \ | ||
golangci-lint --version; \ | ||
fi | ||
## install controller-gen | ||
RUN if [ "$(go env GOARCH)" = "amd64" ]; then \ | ||
GO111MODULE=on go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.2.5; \ | ||
GO111MODULE=on go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.3.0; \ | ||
controller-gen --version; \ | ||
fi | ||
## install ginkgo | ||
RUN if [ "$(go env GOARCH)" = "amd64" ]; then \ | ||
GO111MODULE=on go get github.com/onsi/ginkgo/[email protected]; \ | ||
ginkgo version; \ | ||
fi | ||
# -- for make rules | ||
|
||
# -- for dapper | ||
ENV DAPPER_RUN_ARGS --privileged --network host | ||
ENV GO111MODULE=off | ||
ENV CROSS=false | ||
ENV DAPPER_ENV CROSS LOCAL_CLUSTER_KIND DOCKER_USERNAME DOCKER_PASSWORD WITHOUT_MANIFEST ONLY_MANIFEST IGNORE_MISSING DRONE_TAG REPO TAG OS ARCH IMAGE_NAME | ||
ENV DAPPER_ENV CROSS LOCAL_CLUSTER_KIND DOCKER_USERNAME DOCKER_PASSWORD WITHOUT_MANIFEST ONLY_MANIFEST IGNORE_MISSING DRONE_TAG REPO TAG OS ARCH IMAGE_NAME DIRTY_CHECK | ||
ENV DAPPER_SOURCE /go/src/github.com/rancher/octopus/ | ||
ENV DAPPER_OUTPUT ./adaptors/ble/bin ./adaptors/ble/dist ./adaptors/ble/deploy ./adaptors/ble/api | ||
ENV DAPPER_DOCKER_SOCKET true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,51 @@ | ||
FROM golang:1.13.9-buster | ||
RUN apt-get update && \ | ||
apt-get install -y xz-utils unzip netcat | ||
FROM golang:1.13.12-buster | ||
RUN apt-get update -qq && apt-get install -y --no-install-recommends \ | ||
xz-utils \ | ||
unzip \ | ||
netcat \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# -- for make rules | ||
## install docker | ||
RUN curl -sSfL "https://get.docker.com" | sh -s VERSION=19.03; \ | ||
## install docker client | ||
RUN apt-get update -qq && apt-get install -y --no-install-recommends \ | ||
apt-transport-https \ | ||
ca-certificates \ | ||
curl \ | ||
gnupg \ | ||
&& rm -rf /var/lib/apt/lists/*; \ | ||
\ | ||
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - >/dev/null; \ | ||
echo "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/debian buster stable" > /etc/apt/sources.list.d/docker.list; \ | ||
\ | ||
apt-get update -qq && apt-get install -y --no-install-recommends \ | ||
docker-ce-cli=5:19.03.* \ | ||
&& rm -rf /var/lib/apt/lists/*; \ | ||
docker --version | ||
## install kubectl | ||
RUN curl -fL "https://storage.googleapis.com/kubernetes-release/release/v1.17.2/bin/$(go env GOOS)/$(go env GOARCH)/kubectl" -o /usr/local/bin/kubectl && chmod +x /usr/local/bin/kubectl; \ | ||
RUN curl -fL "https://storage.googleapis.com/kubernetes-release/release/v1.18.2/bin/$(go env GOOS)/$(go env GOARCH)/kubectl" -o /usr/local/bin/kubectl && chmod +x /usr/local/bin/kubectl; \ | ||
kubectl version --short --client | ||
## install golangci-lint | ||
RUN if [ "$(go env GOARCH)" = "amd64" ]; then \ | ||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "$(go env GOPATH)/bin" v1.24.0; \ | ||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "$(go env GOPATH)/bin" v1.27.0; \ | ||
golangci-lint --version; \ | ||
fi | ||
## install controller-gen | ||
RUN if [ "$(go env GOARCH)" = "amd64" ]; then \ | ||
GO111MODULE=on go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.2.5; \ | ||
GO111MODULE=on go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.3.0; \ | ||
controller-gen --version; \ | ||
fi | ||
## install ginkgo | ||
RUN if [ "$(go env GOARCH)" = "amd64" ]; then \ | ||
GO111MODULE=on go get github.com/onsi/ginkgo/[email protected]; \ | ||
ginkgo version; \ | ||
fi | ||
# -- for make rules | ||
|
||
# -- for dapper | ||
ENV DAPPER_RUN_ARGS --privileged --network host | ||
ENV GO111MODULE=off | ||
ENV CROSS=false | ||
ENV DAPPER_ENV CROSS LOCAL_CLUSTER_KIND DOCKER_USERNAME DOCKER_PASSWORD WITHOUT_MANIFEST ONLY_MANIFEST IGNORE_MISSING DRONE_TAG REPO TAG OS ARCH IMAGE_NAME | ||
ENV DAPPER_ENV CROSS LOCAL_CLUSTER_KIND DOCKER_USERNAME DOCKER_PASSWORD WITHOUT_MANIFEST ONLY_MANIFEST IGNORE_MISSING DRONE_TAG REPO TAG OS ARCH IMAGE_NAME DIRTY_CHECK | ||
ENV DAPPER_SOURCE /go/src/github.com/rancher/octopus/ | ||
ENV DAPPER_OUTPUT ./adaptors/dummy/bin ./adaptors/dummy/dist ./adaptors/dummy/deploy ./adaptors/dummy/api | ||
ENV DAPPER_DOCKER_SOCKET true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,51 @@ | ||
FROM golang:1.13.9-buster | ||
RUN apt-get update && \ | ||
apt-get install -y xz-utils unzip netcat | ||
FROM golang:1.13.12-buster | ||
RUN apt-get update -qq && apt-get install -y --no-install-recommends \ | ||
xz-utils \ | ||
unzip \ | ||
netcat \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# -- for make rules | ||
## install docker | ||
RUN curl -sSfL "https://get.docker.com" | sh -s VERSION=19.03; \ | ||
## install docker client | ||
RUN apt-get update -qq && apt-get install -y --no-install-recommends \ | ||
apt-transport-https \ | ||
ca-certificates \ | ||
curl \ | ||
gnupg \ | ||
&& rm -rf /var/lib/apt/lists/*; \ | ||
\ | ||
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - >/dev/null; \ | ||
echo "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/debian buster stable" > /etc/apt/sources.list.d/docker.list; \ | ||
\ | ||
apt-get update -qq && apt-get install -y --no-install-recommends \ | ||
docker-ce-cli=5:19.03.* \ | ||
&& rm -rf /var/lib/apt/lists/*; \ | ||
docker --version | ||
## install kubectl | ||
RUN curl -fL "https://storage.googleapis.com/kubernetes-release/release/v1.17.2/bin/$(go env GOOS)/$(go env GOARCH)/kubectl" -o /usr/local/bin/kubectl && chmod +x /usr/local/bin/kubectl; \ | ||
RUN curl -fL "https://storage.googleapis.com/kubernetes-release/release/v1.18.2/bin/$(go env GOOS)/$(go env GOARCH)/kubectl" -o /usr/local/bin/kubectl && chmod +x /usr/local/bin/kubectl; \ | ||
kubectl version --short --client | ||
## install golangci-lint | ||
RUN if [ "$(go env GOARCH)" = "amd64" ]; then \ | ||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "$(go env GOPATH)/bin" v1.24.0; \ | ||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "$(go env GOPATH)/bin" v1.27.0; \ | ||
golangci-lint --version; \ | ||
fi | ||
## install controller-gen | ||
RUN if [ "$(go env GOARCH)" = "amd64" ]; then \ | ||
GO111MODULE=on go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.2.5; \ | ||
GO111MODULE=on go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.3.0; \ | ||
controller-gen --version; \ | ||
fi | ||
## install ginkgo | ||
RUN if [ "$(go env GOARCH)" = "amd64" ]; then \ | ||
GO111MODULE=on go get github.com/onsi/ginkgo/[email protected]; \ | ||
ginkgo version; \ | ||
fi | ||
# -- for make rules | ||
|
||
# -- for dapper | ||
ENV DAPPER_RUN_ARGS --privileged --network host | ||
ENV GO111MODULE=off | ||
ENV CROSS=false | ||
ENV DAPPER_ENV CROSS LOCAL_CLUSTER_KIND DOCKER_USERNAME DOCKER_PASSWORD WITHOUT_MANIFEST ONLY_MANIFEST IGNORE_MISSING DRONE_TAG REPO TAG OS ARCH IMAGE_NAME | ||
ENV DAPPER_ENV CROSS LOCAL_CLUSTER_KIND DOCKER_USERNAME DOCKER_PASSWORD WITHOUT_MANIFEST ONLY_MANIFEST IGNORE_MISSING DRONE_TAG REPO TAG OS ARCH IMAGE_NAME DIRTY_CHECK | ||
ENV DAPPER_SOURCE /go/src/github.com/rancher/octopus/ | ||
ENV DAPPER_OUTPUT ./adaptors/modbus/bin ./adaptors/modbus/dist ./adaptors/modbus/deploy ./adaptors/modbus/api | ||
ENV DAPPER_DOCKER_SOCKET true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.