Skip to content

Commit

Permalink
Fix docker compose build
Browse files Browse the repository at this point in the history
For some reason, the Sidekiq Pro env variable was no longer being automagically injected. No idea why or what changed. This takes a more explicit approach.
  • Loading branch information
mjgiarlo committed Feb 14, 2025
1 parent cd4c5a8 commit fbf5257
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ ENV BUNDLER_WITHOUT="development test"

# For Sidekiq Pro
ARG BUNDLE_GEMS__CONTRIBSYS__COM
ENV BUNDLE_GEMS__CONTRIBSYS__COM $BUNDLE_GEMS__CONTRIBSYS__COM

RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends \
Expand Down
10 changes: 8 additions & 2 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
services:
web:
build: .
build:
context: .
args:
BUNDLE_GEMS__CONTRIBSYS__COM: "${BUNDLE_GEMS__CONTRIBSYS__COM}"
volumes:
- ./:/app
working_dir: /app
Expand Down Expand Up @@ -30,7 +33,10 @@ services:
SETTINGS__SURI__URL: http://suri:3000
SETTINGS__WORKFLOW__URL: http://workflow:3000
workers:
build: .
build:
context: .
args:
BUNDLE_GEMS__CONTRIBSYS__COM: "${BUNDLE_GEMS__CONTRIBSYS__COM}"
volumes:
- ./:/app
working_dir: /app
Expand Down

0 comments on commit fbf5257

Please sign in to comment.