Skip to content

Commit 97be120

Browse files
committed
feat(dev-setup) Fix development setup followign dependabot breakage
* Add `.yarnrc` to ignore dependency package.json engines constraint * Ensure the PATH in the docker setup is good since apt package yarn include nodejs 10 but we want to be explicit on the version * Fix docker-compose.yml to ensure webpacker is getting the gems from the right directory for ruby 3
1 parent 7643cc0 commit 97be120

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

.yarnrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--ignore-engines true

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ RUN cd /opt && \
2222
apt-get update && apt-get install sudo && apt-get clean &&\
2323
sed -i s+secure_path=.*+secure_path="$PATH"+ /etc/sudoers
2424

25-
ENV PATH "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/node_modules/.bin:/usr/src/app/node_modules/.bin:/usr/src/app/vendor/.bundle/ruby/2.5.0/bin:/opt/node/bin"
25+
ENV PATH "/opt/node/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/node_modules/.bin:/usr/src/app/node_modules/.bin:/usr/src/app/vendor/.bundle/ruby/3.0.0/bin"
2626

2727
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
2828
echo 'LANG="en_US.UTF-8"'>/etc/default/locale && \

docker-compose.yml

+2
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ services:
2828
environment:
2929
NODE_ENV: "development"
3030
RAILS_ENV: "development"
31+
BUNDLE_BIN: "/usr/src/app/vendor/.bundle/ruby/3.0.0/bin"
32+
BUNDLE_PATH: "/usr/src/app/vendor/.bundle/ruby/3.0.0"

0 commit comments

Comments
 (0)