Skip to content

Commit

Permalink
Explicitly set the user to vscode in the Ruby image Dockerfile
Browse files Browse the repository at this point in the history
Since the metadata from devcontainer.json is not present in the image, other Dev Container implementations will not set this user (which is default for vscode and created by the debian base image). So lets explicitly set it so that those Dev Container implementations use the right user when using this image.
  • Loading branch information
andrewn617 committed Oct 2, 2024
1 parent 1a23e3d commit 5ffbbb9
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
Empty file added .github/Gemfile
Empty file.
36 changes: 36 additions & 0 deletions .github/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (7.2.1)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.3.1)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
logger (>= 1.4.2)
minitest (>= 5.1)
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
base64 (0.2.0)
bigdecimal (3.1.8)
concurrent-ruby (1.3.4)
connection_pool (2.4.1)
drb (2.2.1)
i18n (1.14.6)
concurrent-ruby (~> 1.0)
logger (1.6.1)
minitest (5.25.1)
securerandom (0.3.1)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)

PLATFORMS
aarch64-linux
ruby

DEPENDENCIES
activesupport

BUNDLED WITH
2.5.16
4 changes: 3 additions & 1 deletion images/ruby/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ FROM mcr.microsoft.com/devcontainers/base:1-bookworm

RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# Remove imagemagick due to https://security-tracker.debian.org/tracker/CVE-2019-10131
&& apt-get purge -y imagemagick imagemagick-6-common
&& apt-get purge -y imagemagick imagemagick-6-common

USER vscode

0 comments on commit 5ffbbb9

Please sign in to comment.