Skip to content

Instantly share code, notes, and snippets.

@vinhlh
Last active February 7, 2017 06:31
Show Gist options
  • Save vinhlh/0206afeca5bff796946753c62bdb3461 to your computer and use it in GitHub Desktop.
Save vinhlh/0206afeca5bff796946753c62bdb3461 to your computer and use it in GitHub Desktop.
Managing Secrets for Amazon EC2 Container Service–Based Applications
# s3 bucket for storing secrets
ENV SECRETS_BUCKET_NAME oms-services.secrets
# pull secrets data
COPY secrets-entrypoint.sh /secrets-entrypoint.sh
RUN chmod +x /secrets-entrypoint.sh
ENTRYPOINT ["/secrets-entrypoint.sh"]
# ./cyclops.conf is pulled from S3
CMD cyclops -c ./cyclops.conf -p 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment