-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds dev container configurations to the repo (and backs out text in the readme saying that it doesn't). When I started this project, dev containers weren't really all too common, and it seemed like it would be more work than it was worth to be prescriptive about using one. Fast forward to today and it seems like _most_ devs use them now, so including some bare bones configuration doesn't seem like an impediment for contributors. With that change, I also updated the test configs so that the database hostname is set to the container name (instead of localhost). This also removes some cruft in the dev/test deps.
- Loading branch information
Showing
8 changed files
with
45 additions
and
79 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM elixir:1.17 | ||
|
||
RUN <<EOF | ||
apt-get update | ||
apt-get install -y --no-install-recommends inotify-tools | ||
rm -rf /var/lib/apt/lists/* | ||
EOF | ||
|
||
WORKDIR /code |
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,13 @@ | ||
{ | ||
"name": "pg_ranges", | ||
"dockerComposeFile": "docker-compose.yml", | ||
"service": "code", | ||
"workspaceFolder": "/code", | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"JakeBecker.elixir-ls" | ||
] | ||
} | ||
} | ||
} |
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,16 @@ | ||
services: | ||
db: | ||
image: postgres | ||
restart: unless-stopped | ||
environment: | ||
- POSTGRES_USER=pgranges | ||
- POSTGRES_PASSWORD=pgranges | ||
code: | ||
build: | ||
context: .. | ||
dockerfile: .devcontainer/Dockerfile | ||
command: sleep infinity | ||
volumes: | ||
- ..:/code:cached | ||
depends_on: | ||
- db |
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 |
---|---|---|
|
@@ -23,6 +23,4 @@ erl_crash.dump | |
pg_ranges-*.tar | ||
|
||
# other stuff | ||
.devcontainer | ||
.elixir_ls | ||
.vscode |
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
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