Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Dec 13, 2023
2 parents 01fd2bf + 4101e00 commit 1471449
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
// The optional 'workspaceFolder' property is the path VS Code should open by default when
// connected. This is typically a file mount in .devcontainer/docker-compose.yml
"workspaceFolder": "/app",
"features": {
"ghcr.io/meaningful-ooo/devcontainer-features/fish:1": {}
},
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.defaultProfile.linux": "fish"
},
"extensions": [
"wingrunr21.vscode-ruby",
"karunamurti.haml",
Expand Down
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ RUN apt-get install -y nodejs
# Install firefox for running some integration tests
RUN apt-get update; apt-get install -y firefox-esr

# Install the fish shell
RUN apt-get install -y fish

USER deploy

COPY --chown=deploy:deploy Gemfile /app/Gemfile
Expand Down
11 changes: 11 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
services:
web:
build: .
# Sorbet doesn't currently build for Linux ARM64 (see https://github.com/sorbet/sorbet/issues/4119)
# So, we're forced to build the container as linux/amd64 always and lean on Rosetta
# on Apple silicon for running this.
# Important: if you're on Apple Silicon ensure that "Use Rosetta for x86/amd64 emulation on Apple Silicon"
# is switched on in Docker Desktop.
platform: linux/amd64
volumes:
- .:/app
- gem_cache:/usr/local/bundle/gems
Expand All @@ -16,6 +22,8 @@ services:

postfix:
build: .
# Same as "web" service above because of sorbet we need to build as amd64
platform: linux/amd64
volumes:
- .:/app
- gem_cache:/usr/local/bundle/gems
Expand All @@ -29,6 +37,9 @@ services:
postgres:
# Same version as used in production
image: postgis/postgis:15-3.3
# There isn't yet a linux/arm64 build of postgis on docker
# See https://github.com/postgis/docker-postgis/issues/216
platform: linux/amd64
ports:
# Give access to the database from your host machine. This is useful
# if you want to poke around.
Expand Down

0 comments on commit 1471449

Please sign in to comment.