Skip to content

Commit

Permalink
Add database CLIs to app images.
Browse files Browse the repository at this point in the history
I dislike that this bloats the app images by another 50 MB or so, but
it's not a runtime overhead and it saves us from having to build and
it means we can just tell people to use `k exec deploy/foo -- rails db`
rather than having to write and maintain yet another wrapper script.
  • Loading branch information
sengi committed Nov 3, 2023
1 parent d3faeac commit 47e3372
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion base.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ ENV PATH=${TMPDIR_FOR_RUBY_WRAPPERS_DIR}:${PATH}

# Install node.js, yarn and other runtime dependencies.
COPY --from=builder /usr/share/keyrings/nodesource.gpg /usr/share/keyrings/
RUN install_packages ca-certificates curl libjemalloc-dev libgdbm6 libyaml-0-2 libmariadb3 libpq5 tzdata; \
RUN install_packages ca-certificates curl libjemalloc-dev libgdbm6 libyaml-0-2 \
libmariadb3 libpq5 mariadb-client postgresql-client tzdata; \
echo "deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x jammy main" | tee /etc/apt/sources.list.d/nodesource.list; \
install_packages nodejs; \
echo -n node version:\ ; node -v; \
Expand Down

0 comments on commit 47e3372

Please sign in to comment.