Skip to content

Instantly share code, notes, and snippets.

@parabuzzle
Created September 28, 2016 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parabuzzle/1b880d9b4543d7a2308ea1471574f928 to your computer and use it in GitHub Desktop.
Save parabuzzle/1b880d9b4543d7a2308ea1471574f928 to your computer and use it in GitHub Desktop.
# This docker file sets up the base container for other applications
#
# https://docs.docker.com/reference/builder/
#
# Author:: Michael Heijmans (mailto:parabuzzle@gmail.com)
# Copyright:: Copyright (c) 2016 Michael Heijmans
# License:: MIT
FROM parabuzzle/ruby:2.3.1
MAINTAINER parabuzzle@gmail.com
RUN gem install vault
COPY lib/vault_loader.rb /lib/vault_loader.rb
COPY bin/vaultenv /bin/vaultenv
COPY app_env /tmp/app_env
COPY bin/with_app_env /bin/with_app_env
RUN chmod +x /bin/vaultenv
RUN chmod +x /bin/with_app_env
ENV APP_ENV development
ENV VAULT_ADDR http://vault:8200
WORKDIR /webapp
ENTRYPOINT [ "with_app_env" ]
CMD [ "bash" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment