From a4988e5cd47285c4e42e9430279eb66a554e0b9d Mon Sep 17 00:00:00 2001 From: Drew Bonasera Date: Mon, 27 Apr 2026 02:33:06 -0400 Subject: [PATCH] Install netcat in the dev container and make the database hostname configurable. - build(devcontainer): Install netcat-traditional package - feat(config): Make database hostname configurable via DB_HOST env var --- .devcontainer/Dockerfile | 1 + config/dev.exs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 59dfcc15..d2fcdeb6 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -15,6 +15,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ vim \ net-tools \ procps \ + netcat-traditional \ # Optionally add any other tools you need, e.g. vim, wget... && curl -sL https://deb.nodesource.com/setup_18.x | bash - \ && apt-get install -y --no-install-recommends nodejs inotify-tools \ diff --git a/config/dev.exs b/config/dev.exs index 7b18a442..9991ddd7 100644 --- a/config/dev.exs +++ b/config/dev.exs @@ -4,7 +4,7 @@ import Config config :wanderer_app, WandererApp.Repo, username: "postgres", password: "postgres", - hostname: "localhost", + hostname: System.get_env("DB_HOST", "localhost"), database: "wanderer_dev", stacktrace: true, show_sensitive_data_on_connection_error: true,