Skip to content

Commit 0bba051

Browse files
authored
Fix the development container to set the right permissions to bundler
1 parent 3bfe419 commit 0bba051

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

.devcontainer/Dockerfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ RUN wget -qO /tmp/im.tar.xz https://imagemagick.org/download/releases/ImageMagic
2828
&& ldconfig /usr/local/lib \
2929
&& rm -rf /tmp/*
3030

31-
32-
# [Optional] Uncomment this line to install additional gems.
3331
# Add the Rails main Gemfile and install the gems. This means the gem install can be done
3432
# during build instead of on start. When a fork or branch has different gems, we still have an
3533
# advantage due to caching of the other gems.
@@ -51,6 +49,3 @@ RUN cd /tmp/rails \
5149
&& bundle install \
5250
&& yarn install \
5351
&& rm -rf /tmp/rails
54-
55-
# [Optional] Uncomment this line to install global node packages.
56-
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1

.devcontainer/boot.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
bundle install
22
yarn install
33

4+
sudo chown -R vscode:vscode /usr/local/bundle/bundler
5+
46
sudo service postgresql start
57
sudo service mariadb start
68
sudo service redis-server start

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ PATH
100100
actionpack (= 7.0.0.alpha2)
101101
activesupport (= 7.0.0.alpha2)
102102
method_source
103-
rake (>= 0.13)
103+
rake (>= 12.2)
104104
thor (~> 1.0)
105105
zeitwerk (~> 2.5.0.beta5)
106106

@@ -606,4 +606,4 @@ DEPENDENCIES
606606
websocket-client-simple!
607607

608608
BUNDLED WITH
609-
2.2.28
609+
2.2.29

0 commit comments

Comments
 (0)