Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add devcontainer and Github Codespaces setup #43

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
d7bfb61
WIP: add devcontainer
cleverer Mar 25, 2023
e576930
WIP: multiple containers
cleverer Mar 25, 2023
1da9d39
WIP: fix builds
cleverer Mar 25, 2023
6a17c20
WIP: add configs
cleverer Mar 26, 2023
af619d0
WIP: correctly name dev containers
cleverer Mar 26, 2023
43fbd2b
feat: add tenant devcontainer
cleverer Mar 26, 2023
30639e6
WIP: add documentation for codespaces
cleverer Mar 26, 2023
ad4f360
Update docs and rebuild behaviour
cleverer Mar 26, 2023
9bfad99
Merge remote-tracking branch 'upstream/master' into pr-clever
BacLuc Mar 8, 2024
25bceac
.devcontainer/update.sh: add github.com to known_hosts
BacLuc Mar 8, 2024
400040f
readd app/* to .gitignore
BacLuc Mar 9, 2024
5564d55
Merge pull request #1 from BacLuc/pr-clever
cleverer Mar 9, 2024
0481ba4
WIP: make github host keys static
cleverer Mar 9, 2024
7c9f653
fix(compose): replace mysql with mariadb
cleverer Mar 9, 2024
c3c8d54
feat(compose): implement docker healthchecks
cleverer Mar 9, 2024
d68f5bc
fix(compose): mount less into home directory
cleverer Mar 9, 2024
8898b2e
fix: make devcontainer work with healthchecks
cleverer Mar 9, 2024
70743ad
fix(compose): make it work on apple silicon
cleverer Mar 9, 2024
9f48c96
fix(compose): make services restart
cleverer Mar 9, 2024
20b84db
feat: allow docker access from within container
cleverer Mar 10, 2024
018860a
fix: better setup dev user
cleverer Mar 10, 2024
d0683aa
fix(devcotainers): enhance documentation
cleverer Mar 11, 2024
b1b6be2
fix: remove unnecessary docker/home/rails/.gitignore
cleverer Mar 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(compose): make services restart
When launching a devcontainer locally, the db is not yet ready and
some service crash. This makes them restart until the db is ready.
  • Loading branch information
cleverer committed Mar 9, 2024
commit 9f48c96514b2073a1f3cb63845bad8c95302bac4
6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@ services:
context: ./docker
dockerfile: rails.dockerfile
image: ghcr.io/hitobito/development/rails
restart: unless-stopped
user: "${RAILS_UID:-1000}"
tty: true
stdin_open: true
@@ -80,6 +81,7 @@ services:

# Dependencies
mailcatcher:
restart: unless-stopped
image: ghcr.io/hitobito/development/mailcatcher
build:
context: ./docker
@@ -91,10 +93,12 @@ services:
interval: 5s
timeout: 5s
cache:
restart: unless-stopped
image: memcached:1.6-alpine
command: [ memcached, -l, '0.0.0.0', -p, '11211' ]

sphinx:
restart: unless-stopped
image: macbre/sphinxsearch:3.1.1
command: sphinx-start
depends_on:
@@ -109,6 +113,7 @@ services:
- sphinx_indexes:/opt/sphinx/indexes

db:
restart: unless-stopped
image: mariadb:10.2
command:
- --sort_buffer_size=2M
@@ -134,6 +139,7 @@ services:
timeout: 5s

webpack:
restart: unless-stopped
build:
context: ./docker
dockerfile: rails.dockerfile