Skip to content

Commit

Permalink
install dev gems by default and override in production
Browse files Browse the repository at this point in the history
  • Loading branch information
timcowlishaw committed Dec 21, 2024
1 parent 164d1c9 commit 3b29bfa
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 6 deletions.
2 changes: 0 additions & 2 deletions compose.override.local.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
services:
app:
build:
args: !reset []
restart: "no"
sidekiq:
restart: "no"
Expand Down
12 changes: 12 additions & 0 deletions compose.override.production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: '3.3'
services:
app:
build:
args:
- BUNDLE_WITHOUT=test development
mqtt:
entrypoint: ["echo", "MQTT service disabled in production"]
cassandra-1:
entrypoint: ["echo", "Cassandra service disabled in production"]
kairos:
depends_on: !reset []
27 changes: 27 additions & 0 deletions compose.override.staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
services:
db:
deploy:
resources:
limits:
memory: 2gb
app:
build:
args:
- BUNDLE_WITHOUT=test development
mqtt:
entrypoint: ["echo", "MQTT service disabled on staging"]
mqtt-task-main-1:
environment:
MQTT_CLIENT_ID: smartcitizen-staging-api-main-1
mqtt-task-main-2:
environment:
MQTT_CLIENT_ID: smartcitizen-staging-api-main-2
mqtt-task-secondary:
environment:
MQTT_CLIENT_ID: "smartcitizen-staging-api-secondary"


# cassandra-1:
# entrypoint: ["echo", "Cassandra service disabled on staging"]
# kairos:
# depends_on: !reset []
4 changes: 0 additions & 4 deletions compose/app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ services:
app:
build:
context: ../.
# Skip installing development & test gems in production, saves 20s build time.
# If developing with Docker, this line might need to be commented out.
args:
- BUNDLE_WITHOUT=test development
env_file: ../.env
ports:
- "3000:3000"
Expand Down

0 comments on commit 3b29bfa

Please sign in to comment.