-
Notifications
You must be signed in to change notification settings - Fork 336
Change base image to Ubuntu Jammy #1017
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
Changes from all commits
83d9a2c
23d24b2
cf73555
04b1ffc
e353f61
92554b9
668c240
1a6e62c
0ea1c8d
4f7c926
91e2566
1910af6
7ea2cff
0aac4e1
c629f3d
cfc61ef
f2acc9e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,7 +17,6 @@ sync: | |
| - python-3.9 | ||
| - python-3.10 | ||
| - python-3.11 | ||
| - ruby-2 | ||
| - ruby-3 | ||
| - ruby-3.0 | ||
| - ruby-3.1 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,6 +23,8 @@ jobs: | |
| GAR_IMAGE_REGISTRY: europe-docker.pkg.dev | ||
| DH_IMAGE_REGISTRY: registry.hub.docker.com | ||
| IAM_SERVICE_ACCOUNT: [email protected] | ||
| DAZZLE_VERSION: 0.1.15 | ||
| BUILDKIT_VERSION: 0.11.2 | ||
|
|
||
| steps: | ||
| - name: 📥 Checkout workspace-images | ||
|
|
@@ -43,7 +45,7 @@ jobs: | |
|
|
||
| - name: 🔆 Install dazzle | ||
| run: | | ||
| 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 | ||
| 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 | ||
|
|
||
| - name: 🔆 Install skopeo | ||
| run: | | ||
|
|
@@ -56,7 +58,7 @@ jobs: | |
|
|
||
| - name: 🏗️ Setup buildkit | ||
| run: | | ||
| 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 | ||
| 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 | ||
| sudo buildkitd --oci-worker=true --oci-worker-net=host --debug --group docker & | ||
| sudo su -c "while ! test -S /run/buildkit/buildkitd.sock; do sleep 0.1; done" | ||
| sudo chmod +777 /run/buildkit/buildkitd.sock | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| FROM buildpack-deps:focal | ||
| FROM buildpack-deps:jammy | ||
|
|
||
| COPY install-packages upgrade-packages /usr/bin/ | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| variants: | ||
| - name: "1.18.10" | ||
| args: | ||
| GO_VERSION: 1.18.10 | ||
| - name: "1.19.5" | ||
| args: | ||
| GO_VERSION: 1.19.5 | ||
| - name: "1.20" | ||
| args: | ||
| GO_VERSION: 1.20 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| variants: | ||
| - name: "16" | ||
| args: | ||
| NODE_VERSION: 16.19.1 | ||
| - name: "18" | ||
| args: | ||
| NODE_VERSION: 18.14.2 | ||
| - name: "19" | ||
| args: | ||
| NODE_VERSION: 19.7.0 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,10 @@ | ||
| variants: | ||
| - name: "2.7" | ||
| args: | ||
| RUBY_VERSION: 2.7.6 | ||
| - name: "3.0" | ||
| args: | ||
| RUBY_VERSION: 3.0.4 | ||
| RUBY_VERSION: 3.0.5 | ||
| - name: "3.1" | ||
| args: | ||
| RUBY_VERSION: 3.1.2 | ||
| RUBY_VERSION: 3.1.3 | ||
| - name: "3.2" | ||
| args: | ||
| RUBY_VERSION: 3.2.0 | ||
| RUBY_VERSION: 3.2.1 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| #!/bin/bash | ||
| set -euo pipefail | ||
|
|
||
| RUBY_VERSION=$1 | ||
|
|
||
| # the version of openssl changed in Jammy, Ruby 3.0 needs an older version | ||
| # https://github.com/rvm/rvm/issues/5209#issuecomment-1114159447 | ||
| # another option: https://github.com/rvm/rvm/issues/5209#issuecomment-1134927685 or sudo apt install libssl-dev=1.1.1l-1ubuntu1.4 | ||
| if grep -q "3.0." <<<"${RUBY_VERSION}"; then | ||
| bash -lc " | ||
| rvm requirements \ | ||
| && rvm pkg install openssl \ | ||
| && rvm install \"${RUBY_VERSION}\" --with-openssl-dir=\"${HOME}\"/.rvm/usr --default \ | ||
| && rvm alias create default \"${RUBY_VERSION}\" \ | ||
| && rvm rubygems current \ | ||
| && gem install bundler --no-document \ | ||
| && gem install solargraph --no-document" | ||
| else | ||
| # Ruby 3.1 and higher do not | ||
| bash -lc " | ||
| rvm requirements \ | ||
| && rvm install \"${RUBY_VERSION}\" --default \ | ||
| && rvm alias create default \"${RUBY_VERSION}\" \ | ||
| && rvm rubygems current \ | ||
| && gem install bundler --no-document \ | ||
| && gem install solargraph --no-document" | ||
| fi |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,11 +6,20 @@ USER gitpod | |
| # Dazzle does not rebuild a layer until one of its lines are changed. Increase this counter to rebuild this layer. | ||
| ENV TRIGGER_REBUILD=1 | ||
|
|
||
| # Install MongoDB Shell aka MongoSH (was part of Mongo 5, but, is separate now) | ||
| RUN mkdir -p /tmp/mongosh && \ | ||
| cd /tmp/mongosh && \ | ||
| wget -qOmongosh.tgz https://downloads.mongodb.com/compass/mongosh-1.8.0-linux-x64.tgz && \ | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tried looking for automation of |
||
| tar xf mongosh.tgz && \ | ||
| cd mongosh-* && \ | ||
| sudo cp bin/* /usr/local/bin/ && \ | ||
| rm -rf /tmp/mongosh | ||
|
|
||
| # Install MongoDB | ||
| # Source: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu-tarball/#install-mongodb-community-edition | ||
| RUN mkdir -p /tmp/mongodb && \ | ||
| cd /tmp/mongodb && \ | ||
| wget -qOmongodb.tgz https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu2004-5.0.2.tgz && \ | ||
| wget -qOmongodb.tgz https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu2204-6.0.4.tgz && \ | ||
| tar xf mongodb.tgz && \ | ||
| cd mongodb-* && \ | ||
| sudo cp bin/* /usr/local/bin/ && \ | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -6,8 +6,8 @@ USER root | |||||||||
| # Dazzle does not rebuild a layer until one of its lines are changed. Increase this counter to rebuild this layer. | ||||||||||
| ENV TRIGGER_REBUILD=3 | ||||||||||
|
|
||||||||||
| RUN curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/focal.gpg | sudo apt-key add - \ | ||||||||||
| && curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/focal.list | sudo tee /etc/apt/sources.list.d/tailscale.list \ | ||||||||||
| RUN curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/jammy.gpg | sudo apt-key add - \ | ||||||||||
| && curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/jammy.list | sudo tee /etc/apt/sources.list.d/tailscale.list \ | ||||||||||
|
Comment on lines
+9
to
+10
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suggestion (non-blocking): How about we do this, this would save us from managing it manually.
Suggested change
|
||||||||||
| && apt-get update \ | ||||||||||
| && apt-get install -y tailscale \ | ||||||||||
| && rm /etc/apt/sources.list.d/tailscale.list \ | ||||||||||
|
|
||||||||||
Uh oh!
There was an error while loading. Please reload this page.