Skip to content

Commit

Permalink
Merge pull request kubernetes#16237 from BenTheElder/remove-some-debt
Browse files Browse the repository at this point in the history
Remove some debt
  • Loading branch information
k8s-ci-robot authored Feb 11, 2020
2 parents e009f65 + f69c735 commit 7878d43
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 240 deletions.
1 change: 0 additions & 1 deletion BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ filegroup(
"//gopherage:all-srcs",
"//greenhouse:all-srcs",
"//hack:all-srcs",
"//images/bootstrap/barnacle:all-srcs",
"//images/builder:all-srcs",
"//images/krte:all-srcs",
"//images/kubekins-e2e:all-srcs",
Expand Down
3 changes: 0 additions & 3 deletions images/bootstrap/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,6 @@ RUN echo 'DOCKER_OPTS="${DOCKER_OPTS} --data-root=/docker-graph"' | \
# We will make a fallback one now just in case
RUN mkdir /docker-graph

# add custom docker cleanup binary
COPY ["barnacle/barnacle", "/usr/local/bin/"]

#
# END: DOCKER IN DOCKER SETUP
#
Expand Down
1 change: 0 additions & 1 deletion images/bootstrap/barnacle/.gitignore

This file was deleted.

34 changes: 0 additions & 34 deletions images/bootstrap/barnacle/BUILD.bazel

This file was deleted.

183 changes: 0 additions & 183 deletions images/bootstrap/barnacle/main.go

This file was deleted.

13 changes: 0 additions & 13 deletions images/bootstrap/cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
steps:
- name: golang:$_GO_VERSION
args:
- go
- build
- -o=/workspace/images/bootstrap/barnacle/barnacle
- ./images/bootstrap/barnacle/
env:
- CGO_ENABLED=0
- GOOS=linux
- GOARCH=amd64
- GO111MODULE=on
- GOPROXY=https://proxy.golang.org
- GOSUMDB=sum.golang.org
- name: busybox
args: ['cp', '-r', 'scenarios', './images/bootstrap/scenarios']
- name: gcr.io/cloud-builders/docker
Expand Down
10 changes: 5 additions & 5 deletions images/bootstrap/runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ fi

# runs custom docker data root cleanup binary and debugs remaining resources
cleanup_dind() {
barnacle || true
# list what images and volumes remain
echo "Remaining docker images and volumes are:"
docker images --all || true
docker volume ls || true
if [[ "{DOCKER_IN_DOCKER_ENABLED:-false}" == "true" ]]; then
echo "Cleaning up after docker"
docker ps -aq | xargs -r docker rm -f || true
service docker stop || true
fi
# cleanup binfmt_misc
echo "Cleaning up binfmt_misc ..."
}
Expand Down

0 comments on commit 7878d43

Please sign in to comment.