Skip to content

Commit 6463940

Browse files
authored
Change base image to Ubuntu Jammy (#1017)
* Update buildkit and dazzle dependencies * `buildkit` 0.10.6 -> 0.11.2 * `dazzle` v0.1.13 -> v0.1.14 * Update Dazzle and consolidate source of truths for dazzle and buildkit * Update to Jammy * Use asdf to manage Elxir and Erlang * Go 1.18 was failing, replace with 1.20 * Update Rust Co-authored-by: c3potheds * Bump Ruby * Deprecate Ruby 2.7 and update 3.0 to 3.0.5 2.7 isn't supported in Jammy, and going EOL March 31, 2023. Fix Ruby 3+. For 3.0, override the OpenSSL version. * Fix Java tests * Install OpenSSL conditionally for Ruby 3.0 * Add cmake to tool-brew chunk Fixes #1020 * Support Mongo on Jammy * Node changes * LTS from 16 to 18 * Current from 18 to 19 * Fix postgresql 12 on Jammy * Patch nvm version * Bump Python and Ruby in gitpod/workspace-full * Fix yugabytedb on Jammy, combo not compatible with Python chunk tests
1 parent 3a38794 commit 6463940

32 files changed

+183
-96
lines changed

.github/promote-images.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
workspace-python-3.9: "20.*"
2121
workspace-python-3.10: "20.*"
2222
workspace-python-3.11: "20.*"
23-
workspace-ruby-2: "20.*"
2423
workspace-ruby-3: "20.*"
2524
workspace-ruby-3.0: "20.*"
2625
workspace-ruby-3.1: "20.*"

.github/sync-containers.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ sync:
1717
- python-3.9
1818
- python-3.10
1919
- python-3.11
20-
- ruby-2
2120
- ruby-3
2221
- ruby-3.0
2322
- ruby-3.1

.github/workflows/pull-request.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
jobs:
66
build:
77
runs-on: ubuntu-latest
8+
env:
9+
DAZZLE_VERSION: 0.1.15
10+
BUILDKIT_VERSION: 0.11.2
811
steps:
912
- name: 📥 Checkout workspace-images
1013
uses: actions/checkout@v3
@@ -24,11 +27,11 @@ jobs:
2427
2528
- name: 🔆 Install dazzle
2629
run: |
27-
curl -sSL https://github.com/gitpod-io/dazzle/releases/download/v0.1.13/dazzle_0.1.13_Linux_x86_64.tar.gz | sudo tar -xvz -C /usr/local/bin
30+
curl -sSL https://github.com/gitpod-io/dazzle/releases/download/v${{env.DAZZLE_VERSION}}/dazzle_${{env.DAZZLE_VERSION}}_Linux_x86_64.tar.gz | sudo tar -xvz -C /usr/local/bin
2831
2932
- name: 🏗️ Setup buildkit
3033
run: |
31-
curl -sSL https://github.com/moby/buildkit/releases/download/v0.10.6/buildkit-v0.10.6.linux-amd64.tar.gz | sudo tar xvz -C /usr
34+
curl -sSL https://github.com/moby/buildkit/releases/download/v${{env.BUILDKIT_VERSION}}/buildkit-v${{env.BUILDKIT_VERSION}}.linux-amd64.tar.gz | sudo tar xvz -C /usr
3235
sudo buildkitd --oci-worker=true --oci-worker-net=host --debug --group docker &
3336
sudo su -c "while ! test -S /run/buildkit/buildkitd.sock; do sleep 0.1; done"
3437
sudo chmod +777 /run/buildkit/buildkitd.sock

.github/workflows/push-main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
GAR_IMAGE_REGISTRY: europe-docker.pkg.dev
2424
DH_IMAGE_REGISTRY: registry.hub.docker.com
2525
IAM_SERVICE_ACCOUNT: [email protected]
26+
DAZZLE_VERSION: 0.1.15
27+
BUILDKIT_VERSION: 0.11.2
2628

2729
steps:
2830
- name: 📥 Checkout workspace-images
@@ -43,7 +45,7 @@ jobs:
4345
4446
- name: 🔆 Install dazzle
4547
run: |
46-
curl -sSL https://github.com/gitpod-io/dazzle/releases/download/v0.1.13/dazzle_0.1.13_Linux_x86_64.tar.gz | sudo tar -xvz -C /usr/local/bin
48+
curl -sSL https://github.com/gitpod-io/dazzle/releases/download/v${{env.DAZZLE_VERSION}}/dazzle_${{env.DAZZLE_VERSION}}_Linux_x86_64.tar.gz | sudo tar -xvz -C /usr/local/bin
4749
4850
- name: 🔆 Install skopeo
4951
run: |
@@ -56,7 +58,7 @@ jobs:
5658
5759
- name: 🏗️ Setup buildkit
5860
run: |
59-
curl -sSL https://github.com/moby/buildkit/releases/download/v0.10.6/buildkit-v0.10.6.linux-amd64.tar.gz | sudo tar xvz -C /usr
61+
curl -sSL https://github.com/moby/buildkit/releases/download/v${{env.BUILDKIT_VERSION}}/buildkit-v${{env.BUILDKIT_VERSION}}.linux-amd64.tar.gz | sudo tar xvz -C /usr
6062
sudo buildkitd --oci-worker=true --oci-worker-net=host --debug --group docker &
6163
sudo su -c "while ! test -S /run/buildkit/buildkitd.sock; do sleep 0.1; done"
6264
sudo chmod +777 /run/buildkit/buildkitd.sock

.gitpod.Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@ FROM gitpod/workspace-full
22

33
ENV RETRIGGER=3
44

5-
ENV BUILDKIT_VERSION=0.10.6
5+
ENV BUILDKIT_VERSION=0.11.2
66
ENV BUILDKIT_FILENAME=buildkit-v${BUILDKIT_VERSION}.linux-amd64.tar.gz
7+
ENV DAZZLE_VERSION=0.1.15
78

89
USER root
910

1011
# Install dazzle, buildkit and pre-commit
1112
RUN curl -sSL https://github.com/moby/buildkit/releases/download/v${BUILDKIT_VERSION}/${BUILDKIT_FILENAME} | tar -xvz -C /usr
12-
RUN curl -sSL https://github.com/gitpod-io/dazzle/releases/download/v0.1.13/dazzle_0.1.13_Linux_x86_64.tar.gz | tar -xvz -C /usr/local/bin
13+
RUN curl -sSL https://github.com/gitpod-io/dazzle/releases/download/v${DAZZLE_VERSION}/dazzle_${DAZZLE_VERSION}_Linux_x86_64.tar.gz | tar -xvz -C /usr/local/bin
1314
RUN curl -sSL https://github.com/mvdan/sh/releases/download/v3.5.1/shfmt_v3.5.1_linux_amd64 -o /usr/bin/shfmt \
1415
&& chmod +x /usr/bin/shfmt
1516
RUN install-packages shellcheck \

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ e.g.
159159
# fetch keyring over https connection and unpack it using gpg's --dearmor option
160160
curl -fsSL https://apt.my-secure.org/my-unofficial-repo.gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/my-unofficial-repo.gpg.key
161161
# and then add them to a apt key sources list.
162-
echo "deb [signed-by=/usr/share/keyrings/my-unofficial-repo.gpg.key] http://apt.my-secure.org/focal/ \
162+
echo "deb [signed-by=/usr/share/keyrings/my-unofficial-repo.gpg.key] http://apt.my-secure.org/jammy/ \
163163
my-unofficial-repo-toolchain main" | sudo tee /etc/apt/sources.list.d/my-unofficial-repo.list > /dev/null
164164
```
165165

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ Each contains a set of chunks: a common base, and a language, and includes Docke
5454
- [`gitpod/workspace-node`](https://hub.docker.com/r/gitpod/workspace-node)
5555
- [`gitpod/workspace-node-lts`](https://hub.docker.com/r/gitpod/workspace-node-lts)
5656
- [`gitpod/workspace-python`](https://hub.docker.com/r/gitpod/workspace-python)
57-
- [`gitpod/workspace-ruby-2`](https://hub.docker.com/r/gitpod/workspace-ruby-2)
5857
- [`gitpod/workspace-ruby-3`](https://hub.docker.com/r/gitpod/workspace-ruby-3)
5958
- [`gitpod/workspace-ruby-3.0`](https://hub.docker.com/r/gitpod/workspace-ruby-3.0)
6059
- [`gitpod/workspace-ruby-3.1`](https://hub.docker.com/r/gitpod/workspace-ruby-3.1)
@@ -87,6 +86,7 @@ These images are no longer being published:
8786

8887
- gitpod/workspace-python-3.6 (please use [`gitpod/workspace-python-3.7`](https://hub.docker.com/r/gitpod/workspace-python-3.7) instead)
8988
- gitpod/workspace-postgresql (please use [`gitpod/workspace-postgres`](https://hub.docker.com/r/gitpod/workspace-postgres) instead)
89+
- gitpod/workspace-ruby-2 (please use [`gitpod/workspace-ruby-3.2`](https://hub.docker.com/r/gitpod/workspace-ruby-3.2) instead)
9090

9191
## Contributing
9292

base/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM buildpack-deps:focal
1+
FROM buildpack-deps:jammy
22

33
COPY install-packages upgrade-packages /usr/bin/
44

base/install-packages

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ if [[ $EUID != 0 ]]; then
2626
fi
2727

2828
# Set a runlevel to avoid invoke-rc.d warnings
29-
# http://manpages.ubuntu.com/manpages/focal/man8/runlevel.8.html#environment
29+
# http://manpages.ubuntu.com/manpages/jammy/man8/runlevel.8.html#environment
3030
# shellcheck disable=SC2034
3131
RUNLEVEL=1
3232

chunks/lang-c/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ USER root
77
ENV TRIGGER_REBUILD=1
88

99
RUN curl -fsSL https://apt.llvm.org/llvm-snapshot.gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/llvm-archive-keyring.gpg \
10-
&& echo "deb [signed-by=/usr/share/keyrings/llvm-archive-keyring.gpg] http://apt.llvm.org/focal/ \
11-
llvm-toolchain-focal-15 main" | sudo tee /etc/apt/sources.list.d/llvm.list > /dev/null \
10+
&& echo "deb [signed-by=/usr/share/keyrings/llvm-archive-keyring.gpg] http://apt.llvm.org/jammy/ \
11+
llvm-toolchain-jammy-15 main" | sudo tee /etc/apt/sources.list.d/llvm.list > /dev/null \
1212
&& apt update \
1313
&& install-packages \
1414
clang \

0 commit comments

Comments
 (0)