Skip to content

Commit def08e1

Browse files
committed
Add more Bundle related ENV to docker compose
1 parent ebe477d commit def08e1

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

lib/matrixeval/ruby/docker_compose/yaml.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ def services_json
3232
"image" => variant.image,
3333
"volumes" => mounts(variant),
3434
"environment" => {
35-
"BUNDLE_PATH" => "/bundle"
35+
"BUNDLE_PATH" => "/bundle",
36+
"GEM_HOME" => "/bundle",
37+
"BUNDLE_APP_CONFIG" => "/bundle",
38+
"BUNDLE_BIN" => "/bundle/bin",
39+
"PATH" => "/app/bin:/bundle/bin:$PATH"
3640
},
3741
"working_dir" => "/app"
3842
}

test/matrixeval/ruby/docker_compose/yaml_test.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ def test_create
4343
- bundle_ruby_3_0_0:/bundle
4444
environment:
4545
BUNDLE_PATH: "/bundle"
46+
GEM_HOME: "/bundle"
47+
BUNDLE_APP_CONFIG: "/bundle"
48+
BUNDLE_BIN: "/bundle/bin"
49+
PATH: "/app/bin:/bundle/bin:$PATH"
4650
working_dir: "/app"
4751
ruby_3_1:
4852
image: ruby:3.1.0
@@ -51,6 +55,10 @@ def test_create
5155
- bundle_ruby_3_1_0:/bundle
5256
environment:
5357
BUNDLE_PATH: "/bundle"
58+
GEM_HOME: "/bundle"
59+
BUNDLE_APP_CONFIG: "/bundle"
60+
BUNDLE_BIN: "/bundle/bin"
61+
PATH: "/app/bin:/bundle/bin:$PATH"
5462
working_dir: "/app"
5563
volumes:
5664
bundle_ruby_3_0_0:

0 commit comments

Comments
 (0)