-
Notifications
You must be signed in to change notification settings - Fork 437
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to go 1.22.1 (with fix for dockerfiles) (#1764)
* Upgrade to golang 1.22 (without dockerfile fix) Reapply "Upgrade to golang 1.22 (#1753)" (#1766) This reverts commit a63a46f and fixes merge conflicts with golang 1.21.7 upgrade which went in earlier. * Fix containerize_gcsfuse/dockerfile for go 1.22 Does the following 1. Create a go module (go.mod) in a directory package_gcsfuse, to bypass the change in go get behaviour introduced in 1.17 and enforced in go 1.22. 2. Fix some paths and commands etc. accordingly in the dockerfile. * Fix package_gcsfuse/dockerfile for go 1.22 Does the following 1. Create a go module (go.mod) in a directory package_gcsfuse, to bypass the change in go get behaviour introduced in 1.17 and enforced in go 1.22. 2. Fix some paths and commands etc. accordingly in the dockerfile. * Switch containerize*/Dockerfile to use git clone * Switch package*/Dockerfile to use git clone * Replace /go with ${GOPATH} * Minimize run of git clone Fetch only the last commit state in docker files during git clone to reduce its runtime. This reduces the runtime of git clone dramatically. * Upgrade from go 1.22.0 to 1.22.1
- Loading branch information
1 parent
bb8f7ef
commit ef48953
Showing
11 changed files
with
30 additions
and
33 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
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
4 changes: 2 additions & 2 deletions
4
perfmetrics/scripts/ml_tests/tf/resnet/setup_scripts/setup_container.sh
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
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
# Copy the gcsfuse packages to the host: | ||
# > docker run -it -v /tmp:/output gcsfuse-release cp -r /packages /output | ||
|
||
FROM golang:1.21.7 as builder | ||
FROM golang:1.22.1 as builder | ||
|
||
RUN apt-get update -qq && apt-get install -y ruby ruby-dev rubygems build-essential rpm && gem install --no-document bundler | ||
|
||
|
@@ -26,19 +26,16 @@ ENV GOOS=linux | |
ENV GO111MODULE=auto | ||
|
||
ARG GCSFUSE_VERSION | ||
ARG GCSFUSE_REPO="github.com/googlecloudplatform/gcsfuse/" | ||
ENV GCSFUSE_PATH "$GOPATH/src/$GCSFUSE_REPO" | ||
RUN go get -d ${GCSFUSE_REPO} | ||
ARG GCSFUSE_REPO="https://github.com/googlecloudplatform/gcsfuse/" | ||
ARG BRANCH_NAME="v${GCSFUSE_VERSION}" | ||
RUN git clone --branch ${BRANCH_NAME} --depth 1 ${GCSFUSE_REPO} | ||
|
||
ARG GCSFUSE_PATH=${GOPATH}/gcsfuse | ||
WORKDIR ${GCSFUSE_PATH} | ||
|
||
ARG DEBEMAIL="[email protected]" | ||
ARG DEBFULLNAME="GCSFuse Team" | ||
|
||
# Build Arg for building through a particular branch/commit. By default, it uses | ||
# the tag corresponding to passed GCSFUSE VERSION | ||
ARG BRANCH_NAME="v${GCSFUSE_VERSION}" | ||
RUN git checkout "${BRANCH_NAME}" | ||
|
||
# Install fpm package using bundle | ||
RUN bundle install --gemfile=${GCSFUSE_PATH}/tools/gem_dependency/Gemfile | ||
|
||
|
@@ -49,14 +46,14 @@ RUN if [ "${ARCHITECTURE}" != "amd64" ] && [ "${ARCHITECTURE}" != "arm64" ]; the | |
fi | ||
ARG GCSFUSE_BIN="/gcsfuse_${GCSFUSE_VERSION}_${ARCHITECTURE}" | ||
ARG GCSFUSE_DOC="${GCSFUSE_BIN}/usr/share/doc/gcsfuse" | ||
WORKDIR ${GOPATH} | ||
RUN go install ${GCSFUSE_REPO}/tools/build_gcsfuse | ||
WORKDIR ${GCSFUSE_PATH}/tools/build_gcsfuse | ||
RUN go install | ||
RUN mkdir -p ${GCSFUSE_BIN} | ||
RUN build_gcsfuse ${GCSFUSE_PATH} ${GCSFUSE_BIN} ${GCSFUSE_VERSION} | ||
RUN mkdir -p ${GCSFUSE_BIN}/usr && mv ${GCSFUSE_BIN}/bin ${GCSFUSE_BIN}/usr/bin | ||
|
||
# Creating structure for debian package as we are using 'dpkg-deb --build' to create debian package | ||
RUN mkdir -p ${GCSFUSE_BIN}/DEBIAN && cp $GOPATH/src/$GCSFUSE_REPO/DEBIAN/* ${GCSFUSE_BIN}/DEBIAN/ | ||
RUN mkdir -p ${GCSFUSE_BIN}/DEBIAN && cp ${GCSFUSE_PATH}/DEBIAN/* ${GCSFUSE_BIN}/DEBIAN/ | ||
RUN mkdir -p ${GCSFUSE_DOC} | ||
RUN mv ${GCSFUSE_BIN}/DEBIAN/copyright ${GCSFUSE_DOC} && \ | ||
mv ${GCSFUSE_BIN}/DEBIAN/changelog ${GCSFUSE_DOC} && \ | ||
|