Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions plugins/scan.installer.disabled
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ build() {
git fetch --all
git checkout -q "${COMMIT}"
fi
# TODO remove GOPROXY override once we updated to Go 1.14+
# Using goproxy instead of "direct" to work around an issue in go mod
# on Go 1.13 not working with older git versions (default version on
# CentOS 7 is git 1.8), see https://github.com/golang/go/issues/38373
# not working with older git versions (default version on CentOS 7 is
# git 1.8), see https://github.com/golang/go/issues/38373
GOPROXY="https://proxy.golang.org" PLATFORM_BINARY=docker-scan TAG_NAME="${COMMIT}" make native-build
)
}
Expand Down
5 changes: 4 additions & 1 deletion rpm/SPECS/docker-ce-rootless-extras.spec
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ Either VPNKit or slirp4netns (>= 0.4.0) needs to be installed separately.
export DOCKER_GITCOMMIT=%{_gitcommit_engine}
mkdir -p /go/src/github.com/docker
ln -s ${RPM_BUILD_DIR}/src/engine /go/src/github.com/docker/docker
TMP_GOPATH="/go" ${RPM_BUILD_DIR}/src/engine/hack/dockerfile/install/install.sh rootlesskit dynamic
# Using goproxy instead of "direct" to work around an issue in go mod not
# working with older git versions (default version on CentOS 7 is git 1.8),
# see https://github.com/golang/go/issues/38373
TMP_GOPATH="/go" GOPROXY="https://proxy.golang.org" ${RPM_BUILD_DIR}/src/engine/hack/dockerfile/install/install.sh rootlesskit dynamic

%check
/usr/local/bin/rootlesskit -v
Expand Down
3 changes: 3 additions & 0 deletions rpm/SPECS/docker-scan-plugin.spec
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ Docker Scan plugin for the Docker CLI.

%build
pushd ${RPM_BUILD_DIR}/src/scan-cli-plugin
# Using goproxy instead of "direct" to work around an issue in go mod not
# working with older git versions (default version on CentOS 7 is git 1.8),
# see https://github.com/golang/go/issues/38373
bash -c 'GOPROXY="https://proxy.golang.org" TAG_NAME="%{_scan_version}" COMMIT="%{_scan_gitcommit}" PLATFORM_BINARY=docker-scan make native-build'
popd

Expand Down