-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Valkey in the devcontainer and remove docker-in-docker configuration
- Loading branch information
Showing
9 changed files
with
40 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
services: | ||
app: | ||
image: mcr.microsoft.com/vscode/devcontainers/ruby:3 | ||
# Overrides default command so things don't shut down after the process ends. | ||
command: /bin/sh -c "while sleep 1000; do :; done" | ||
# Runs app on the same network as the database container, | ||
# allows "forwardPorts" in devcontainer.json function. | ||
network_mode: service:valkey | ||
depends_on: | ||
- valkey | ||
volumes: | ||
# Mounts the project folder to '/workspaces/geneac'. The target path inside the container | ||
# should match what your application expects. In this case, the compose file is | ||
# in a sub-folder, so you will mount '..'. You would then reference this path as the | ||
# 'workspaceFolder' in '.devcontainer/devcontainer.json' so VS Code starts here. | ||
- ..:/workspaces/geneac:cached | ||
|
||
# Use "forwardPorts" in **devcontainer.json** to forward an app port locally. | ||
# (Adding the "ports" property to this file will not forward from a Codespace.) | ||
|
||
valkey: | ||
image: valkey/valkey:8-alpine | ||
command: valkey-server --save 60 1 --loglevel warning | ||
restart: unless-stopped | ||
volumes: | ||
- valkey-data:/data | ||
environment: | ||
MYSQL_ROOT_PASSWORD: blis123 | ||
|
||
volumes: | ||
valkey-data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,6 @@ | |
|
||
set -euo pipefail | ||
|
||
docker compose up -d --wait | ||
|
||
echo -e "Installing dependencies..." | ||
|
||
bundle install | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,4 @@ bin/bundle install | |
|
||
bin/yarn install | ||
|
||
docker compose up -d --wait | ||
|
||
bin/rails db:migrate |