Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build containerd from guardian #253

Merged
merged 1 commit into from
Feb 14, 2023
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
4 changes: 0 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@
path = src/grootfs
url = https://github.com/cloudfoundry/grootfs
branch = master
[submodule "src/gopath/src/github.com/containerd/containerd"]
path = src/gopath/src/github.com/containerd/containerd
url = https://github.com/containerd/containerd
branch = master
[submodule "src/gopath/src/code.cloudfoundry.org/archiver"]
path = src/gopath/src/code.cloudfoundry.org/archiver
url = https://github.com/cloudfoundry/archiver
Expand Down
8 changes: 6 additions & 2 deletions ci/helpers/build-binaries.bash
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,13 @@ function build_containerd() {
local target="$2"

(
cd "${release}/src/gopath/src/github.com/containerd/containerd" || exit
cd "${release}/src/guardian/vendor/github.com/containerd/containerd" || exit

BUILDTAGS=no_btrfs make
BUILDTAGS=no_btrfs make ./bin/containerd
BUILDTAGS=no_btrfs make ./bin/containerd-shim
BUILDTAGS=no_btrfs make ./bin/containerd-shim-runc-v1
BUILDTAGS=no_btrfs make ./bin/containerd-shim-runc-v2
BUILDTAGS=no_btrfs make ./bin/ctr
mv bin/* "${target}"
)
}
Expand Down
12 changes: 8 additions & 4 deletions packages/containerd/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@
set -euo pipefail

mkdir -p "${BOSH_INSTALL_TARGET}/src"
mv gopath/src/* "${BOSH_INSTALL_TARGET}/src"
mv "${BOSH_INSTALL_TARGET}/src" .
mv * ${BOSH_INSTALL_TARGET}/src
MarcPaquette marked this conversation as resolved.
Show resolved Hide resolved
mv ${BOSH_INSTALL_TARGET}/src .

source /var/vcap/packages/golang-*-linux/bosh/compile.env

mkdir -p "${BOSH_INSTALL_TARGET}/bin"
export GOBIN="${BOSH_INSTALL_TARGET}/bin"

pushd src/github.com/containerd/containerd
BUILDTAGS=no_btrfs make
pushd src/guardian/vendor/github.com/containerd/containerd
BUILDTAGS=no_btrfs make ./bin/containerd
BUILDTAGS=no_btrfs make ./bin/containerd-shim
BUILDTAGS=no_btrfs make ./bin/containerd-shim-runc-v1
BUILDTAGS=no_btrfs make ./bin/containerd-shim-runc-v2
BUILDTAGS=no_btrfs make ./bin/ctr
cp -R bin "${BOSH_INSTALL_TARGET}"
popd
701 changes: 700 additions & 1 deletion packages/containerd/spec

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions packages/gats/spec
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,22 @@ files:
- garden-integration-tests/vendor/github.com/go-task/slim-sprig/*.go # gosub
- garden-integration-tests/vendor/github.com/godbus/dbus/v5/*.go # gosub
- garden-integration-tests/vendor/github.com/gogo/protobuf/gogoproto/*.go # gosub
- garden-integration-tests/vendor/github.com/gogo/protobuf/gogoproto/Makefile # gosub
- garden-integration-tests/vendor/github.com/gogo/protobuf/proto/*.go # gosub
- garden-integration-tests/vendor/github.com/gogo/protobuf/proto/Makefile # gosub
- garden-integration-tests/vendor/github.com/gogo/protobuf/protoc-gen-gogo/descriptor/*.go # gosub
- garden-integration-tests/vendor/github.com/gogo/protobuf/protoc-gen-gogo/descriptor/Makefile # gosub
- garden-integration-tests/vendor/github.com/google/go-cmp/cmp/*.go # gosub
- garden-integration-tests/vendor/github.com/google/go-cmp/cmp/internal/diff/*.go # gosub
- garden-integration-tests/vendor/github.com/google/go-cmp/cmp/internal/flags/*.go # gosub
- garden-integration-tests/vendor/github.com/google/go-cmp/cmp/internal/function/*.go # gosub
- garden-integration-tests/vendor/github.com/google/go-cmp/cmp/internal/value/*.go # gosub
- garden-integration-tests/vendor/github.com/hashicorp/errwrap/*.go # gosub
- garden-integration-tests/vendor/github.com/hashicorp/go-multierror/*.go # gosub
- garden-integration-tests/vendor/github.com/hashicorp/go-multierror/Makefile # gosub
- garden-integration-tests/vendor/github.com/josharian/intern/*.go # gosub
- garden-integration-tests/vendor/github.com/mailru/easyjson/*.go # gosub
- garden-integration-tests/vendor/github.com/mailru/easyjson/Makefile # gosub
- garden-integration-tests/vendor/github.com/mailru/easyjson/buffer/*.go # gosub
- garden-integration-tests/vendor/github.com/mailru/easyjson/jlexer/*.go # gosub
- garden-integration-tests/vendor/github.com/mailru/easyjson/jwriter/*.go # gosub
Expand Down Expand Up @@ -112,6 +117,7 @@ files:
- garden-integration-tests/vendor/github.com/opencontainers/runc/libcontainer/utils/*.go # gosub
- garden-integration-tests/vendor/github.com/opencontainers/runtime-spec/specs-go/*.go # gosub
- garden-integration-tests/vendor/github.com/pkg/errors/*.go # gosub
- garden-integration-tests/vendor/github.com/pkg/errors/Makefile # gosub
- garden-integration-tests/vendor/github.com/sirupsen/logrus/*.go # gosub
- garden-integration-tests/vendor/github.com/tedsuo/rata/*.go # gosub
- garden-integration-tests/vendor/github.com/wavefronthq/wavefront-sdk-go/event/*.go # gosub
Expand Down
11 changes: 11 additions & 0 deletions scripts/sync-package-specs
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,26 @@ function sync_package() {
if ls ../../src/${package}/*.h >/dev/null 2>&1; then
echo ${package} | sed -e 's/\(.*\)/ - \1\/*.h # gosub/g'
fi
if ls ../../src/${package}/Makefile >/dev/null 2>&1; then
echo ${package} | sed -e 's/\(.*\)/ - \1\/Makefile # gosub/g'
fi
done
} > $spec.new

mv $spec.new $spec
)
}

sync_package containerd guardian \
-app github.com/containerd/containerd/cmd/ctr \
-app github.com/containerd/containerd/cmd/containerd \
-app github.com/containerd/containerd/cmd/containerd-shim \
-app github.com/containerd/containerd/cmd/containerd-shim-runc-v1 \
-app github.com/containerd/containerd/cmd/containerd-shim-runc-v2 &

sync_package gats garden-integration-tests -app github.com/onsi/ginkgo/ginkgo \
-test code.cloudfoundry.org/garden-integration-tests/... &

sync_package gpats garden-performance-acceptance-tests -app github.com/onsi/ginkgo/ginkgo \
-test code.cloudfoundry.org/garden-performance-acceptance-tests/... &

Expand Down
1 change: 0 additions & 1 deletion src/gopath/src/github.com/containerd/containerd
Submodule containerd deleted from 31aa43
2 changes: 1 addition & 1 deletion src/guardian
Submodule guardian updated 2149 files