Skip to content

Commit

Permalink
Merge pull request #29 from rails/fix-ruby-image
Browse files Browse the repository at this point in the history
Specify Rust version 1.77 in ruby image devcontainer
  • Loading branch information
andrewn617 authored May 22, 2024
2 parents 0675a76 + 136d83c commit 7d239d2
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 1 deletion.
5 changes: 4 additions & 1 deletion features/activestorage/install.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/sh
set -e

apt-get update -qq && \
apt-get install --no-install-recommends -y \
libvips \
Expand All @@ -8,4 +11,4 @@ apt-get update -qq && \
# mupdf mupdf-tools
poppler-utils

rm -rf /var/lib/apt/lists/*
rm -rf /var/lib/apt/lists/*
3 changes: 3 additions & 0 deletions features/mysql-client/install.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/sh
set -e

apt-get update -y && apt-get -y install --no-install-recommends default-libmysqlclient-dev

rm -rf /var/lib/apt/lists/*
3 changes: 3 additions & 0 deletions features/postgres-client/install.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/sh
set -e

apt-get update -y && apt-get -y install --no-install-recommends libpq-dev postgresql-client

rm -rf /var/lib/apt/lists/*
3 changes: 3 additions & 0 deletions features/ruby/install.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/sh
set -e

USERNAME="${USERNAME:-"${_REMOTE_USER:-"automatic"}"}"

apt-get update -y
Expand Down
3 changes: 3 additions & 0 deletions features/sqlite3/install.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/sh
set -e

apt-get update -y && apt-get -y install --no-install-recommends pkg-config libsqlite3-dev sqlite3

rm -rf /var/lib/apt/lists/*
3 changes: 3 additions & 0 deletions images/ruby/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
},
"ghcr.io/rails/devcontainer/features/ruby": {
"version": "${localEnv:RUBY_VERSION}"
},
"ghcr.io/devcontainers/features/rust:1": {
"version": "1.77"
}
},
// Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
Expand Down

0 comments on commit 7d239d2

Please sign in to comment.