Skip to content

Commit

Permalink
Merge pull request #51 from gitpod-io/kylos101/upgrade-buildkit
Browse files Browse the repository at this point in the history
Upgrade buildkit from 0.10.0 to 0.10.1
  • Loading branch information
utam0k authored Apr 11, 2022
2 parents f28d270 + a29a4b7 commit cdca1a1
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 44 deletions.
30 changes: 17 additions & 13 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup Golang
uses: actions/setup-go@v1
uses: actions/setup-go@v3
with:
go-version: '1.17.5'
- name: Download all Go modules
Expand All @@ -29,9 +29,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup Golang
uses: actions/setup-go@v1
uses: actions/setup-go@v3
with:
go-version: '1.17.5'
- name: Restore go build cache
Expand All @@ -48,11 +48,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup Golang
uses: actions/setup-go@v3
with:
go-version: '1.17.5'
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@v3.1.0
with:
version: v1.39.0
version: v1.45.2
args: --timeout 5m

test-go:
Expand All @@ -69,9 +73,9 @@ jobs:
- 5000:5000
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup Golang
uses: actions/setup-go@v1
uses: actions/setup-go@v3
with:
go-version: '1.17.5'
- name: Restore go build cache
Expand All @@ -86,7 +90,7 @@ jobs:
run: pushd pkg/test/runner; ./build.sh; popd
- name: Install the latest buildkit release
run: |
curl -sSL "https://github.com/moby/buildkit/releases/download/v0.10.0/buildkit-v0.10.0.linux-amd64.tar.gz" | sudo tar -xz -C /usr/local
curl -sSL "https://github.com/moby/buildkit/releases/download/v0.10.1/buildkit-v0.10.1.linux-amd64.tar.gz" | sudo tar -xz -C /usr/local
- name: Start buildkit daemon
run: |
sudo --non-interactive --shell <<END_SUDO
Expand All @@ -113,9 +117,9 @@ jobs:
- build-go
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup Golang
uses: actions/setup-go@v1
uses: actions/setup-go@v3
with:
go-version: '1.17.5'
- name: Restore go build cache
Expand All @@ -136,7 +140,7 @@ jobs:
- test-go
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Create test-results directory
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
name: Setup Golang
uses: actions/setup-go@v3
with:
go-version: 1.17.2
-
go-version: '1.17.5'
-
name: Docker Login
uses: docker/login-action@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .gitpod.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ USER root
ENV TRIGGER_REBUILD=1
RUN echo 'deb [trusted=yes] https://repo.goreleaser.com/apt/ /' | sudo tee /etc/apt/sources.list.d/goreleaser.list \
&& install-packages goreleaser -y
RUN sudo su -c "cd /usr; curl -L https://github.com/moby/buildkit/releases/download/v0.10.0/buildkit-v0.10.0.linux-amd64.tar.gz | tar xvz"
RUN sudo su -c "cd /usr; curl -L https://github.com/moby/buildkit/releases/download/v0.10.1/buildkit-v0.10.1.linux-amd64.tar.gz | tar xvz"
# NOTE: remove when workspace-full includes golangci
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sudo BINDIR=/usr/local/bin sh

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM moby/buildkit:v0.9.3
FROM moby/buildkit:v0.10.1
WORKDIR /dazzle
COPY dazzle README.md /dazzle/
ENV PATH=/dazzle:$PATH
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ For example, if you're building an image that serves as a collection of tools, t
- consider this alpha-level software

### Requirements
Install and run [buildkit](https://github.com/moby/buildkit/releases) - currently 0.10.0 - in the background.
Install and run [buildkit](https://github.com/moby/buildkit/releases) - currently 0.10.1 - in the background.
Pull and run a docker registry.

NOTE: if you are running it in Gitpod this is done for you!

```bash
sudo su -c "cd /usr; curl -L https://github.com/moby/buildkit/releases/download/v0.10.0/buildkit-v0.10.0.linux-amd64.tar.gz | tar xvz"
sudo su -c "cd /usr; curl -L https://github.com/moby/buildkit/releases/download/v0.10.1/buildkit-v0.10.1.linux-amd64.tar.gz | tar xvz"
docker run -p 5000:5000 --name registry --rm registry:2
```

Expand Down
15 changes: 9 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
github.com/alecthomas/repr v0.0.0-20220113201626-b1b626ac65ae
github.com/bmatcuk/doublestar v1.3.4
github.com/containerd/console v1.0.3
github.com/containerd/containerd v1.6.1
github.com/containerd/containerd v1.6.3-0.20220401172941-5ff8fce1fcc6
github.com/creack/pty v1.1.17
github.com/docker/cli v20.10.13+incompatible
github.com/docker/distribution v2.8.1+incompatible
Expand All @@ -17,9 +17,9 @@ require (
github.com/manifoldco/promptui v0.9.0
github.com/mattn/go-isatty v0.0.14
github.com/minio/highwayhash v1.0.2
github.com/moby/buildkit v0.10.0
github.com/moby/buildkit v0.10.1
github.com/opencontainers/go-digest v1.0.0
github.com/opencontainers/image-spec v1.0.2-0.20211117181255-693428a734f5
github.com/opencontainers/image-spec v1.0.3-0.20211202183452-c5a74bcca799
github.com/robertkrimen/otto v0.0.0-20211024170158-b87d35c0b86f
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06
github.com/sirupsen/logrus v1.8.1
Expand All @@ -29,9 +29,10 @@ require (
)

require (
cloud.google.com/go v0.81.0 // indirect
github.com/Microsoft/go-winio v0.5.1 // indirect
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e // indirect
github.com/containerd/continuity v0.2.2 // indirect
github.com/containerd/continuity v0.2.3-0.20220330195504-d132b287edc8 // indirect
github.com/containerd/typeurl v1.0.2 // indirect
github.com/daaku/go.zipexe v1.0.0 // indirect
github.com/docker/docker v20.10.7+incompatible // indirect
Expand All @@ -47,7 +48,8 @@ require (
github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect
github.com/iancoleman/orderedmap v0.0.0-20190318233801-ac98e3ecb4b0 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/klauspost/compress v1.15.0 // indirect
github.com/klauspost/compress v1.15.1 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/moby/locker v1.0.1 // indirect
github.com/moby/sys/signal v0.6.0 // indirect
github.com/morikuni/aec v1.0.0 // indirect
Expand All @@ -69,8 +71,9 @@ require (
golang.org/x/text v0.3.7 // indirect
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac // indirect
google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa // indirect
google.golang.org/grpc v1.44.0 // indirect
google.golang.org/grpc v1.45.0 // indirect
google.golang.org/protobuf v1.27.1 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/sourcemap.v1 v1.0.5 // indirect
)

Expand Down
Loading

0 comments on commit cdca1a1

Please sign in to comment.