Skip to content

Commit

Permalink
Merge pull request #183 from sul-dlss/mjgiarlo-patch-1
Browse files Browse the repository at this point in the history
Provide reasonable test/dev default ENV variables in Dockerfile
  • Loading branch information
aaron-collier committed Dec 18, 2018
2 parents 429c340 + 80143f3 commit 9114689
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
FROM ruby:2.5-stretch

# Provide SSL defaults that work in dev/test environments where we do not require connections to secured services
# These values are overrideable at both buildtime and runtime (hence the ARG/ENV combo).
ARG SETTINGS__SSL__CERT_FILE=/app/spec/support/certs/spec.crt
ARG SETTINGS__SSL__KEY_FILE=/app/spec/support/certs/spec.key
ARG SETTINGS__SSL__KEY_PASS=thisisatleast4bytes
ENV SETTINGS__SSL__CERT_FILE="${SETTINGS__SSL__CERT_FILE}"
ENV SETTINGS__SSL__KEY_FILE="${SETTINGS__SSL__KEY_FILE}"
ENV SETTINGS__SSL__KEY_PASS="${SETTINGS__SSL__KEY_PASS}"

RUN apt-get update -qq && \
apt-get install -y nano build-essential libsqlite3-dev nodejs

Expand All @@ -11,4 +20,4 @@ RUN bundle install --without production

COPY . .

CMD puma -C config/puma.rb
CMD puma -C config/puma.rb

0 comments on commit 9114689

Please sign in to comment.