Skip to content

Commit

Permalink
Add kubernetes plugin to Codegen step
Browse files Browse the repository at this point in the history
  • Loading branch information
kentzeng12 committed Jun 24, 2024
1 parent 781a051 commit 3fc39a0
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 15 deletions.
1 change: 1 addition & 0 deletions .buildkite/docs-docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ services:
volumes:
- ../:/go/src/github.com/m3db/m3
- $SSH_AUTH_SOCK:/ssh-agent
working_dir: /go/src/github.com/m3db/m3
environment:
- CI
- BUILDKITE
Expand Down
44 changes: 29 additions & 15 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,19 @@ env:
SKIP_CODECOV: "true"

steps:
# - name: "Codegen"
# command: make clean install-vendor-m3 test-all-gen
# env:
# CGO_ENABLED: 0
# GIMME_GO_VERSION: 1.18.x
# plugins:
# gopath-checkout#v1.0.1:
# import: github.com/m3db/m3
# <<: *common
- name: "Unit %n"
parallelism: 4
- name: "Codegen"
env:
CGO_ENABLED: 0
GIMME_GO_VERSION: 1.18.x
plugins:
docker-compose#v2.5.1:
run: app
workdir: /go/src/github.com/m3db/m3
gopath-checkout#v1.0.1:
import: github.com/m3db/m3
# docker#v3.0.1:
# image: us-west1-docker.pkg.dev/ci-compute/buildkite-images/buildkite-dind:v1
# always-pull: true
# volumes:
# - .:/go/src/github.com/m3db/m3
# - /var/run/docker.sock:/var/run/docker.sock
kubernetes:
<<: *kubernetes
podSpec:
Expand All @@ -73,8 +71,24 @@ steps:
- <<: *commandContainer
command:
- |-
make clean install-vendor-m3 test-base
make clean install-vendor-m3 test-all-gen
<<: *common
# - name: "Unit %n"
# parallelism: 4
# plugins:
# docker-compose#v2.5.1:
# run: app
# workdir: /go/src/github.com/m3db/m3
# kubernetes:
# <<: *kubernetes
# podSpec:
# <<: *podSpec
# containers:
# - <<: *commandContainer
# command:
# - |-
# make clean install-vendor-m3 test-base
# <<: *common
# - name: "Big Unit %n"
# command: make clean install-vendor-m3 test-big-base
# parallelism: 2
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ services:
# Support running docker within docker. That is, buildkite jobs themselves run in a container; that container
# needs to be able to spin up functioning docker containers.
- /var/run/docker.sock:/var/run/docker.sock
working_dir: /go/src/github.com/m3db/m3
extra_hosts:
# Allow routing from the buildkite container to the host machine, as host.docker.internal. This allows us to do
# the following:
Expand Down

0 comments on commit 3fc39a0

Please sign in to comment.