Created
October 30, 2014 08:51
-
-
Save agonist/b7fd660eed05cb66e81a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# Build: | |
# docker build -t wisdom/acme-sample . | |
# | |
# Run: | |
# docker run -d -p 9000:9000 wisdom/acme-sample | |
# | |
# Optional volumes: | |
# - Logs: /root/wisdom/logs | |
# - Applications (where app bundles live): /root/wisdom/application | |
# | |
# bash: | |
# docker run -d \ | |
# -p 9000:9000 \ | |
# -v `pwd`/target/wisdom/logs:/root/wisdom/logs \ | |
# -v `pwd`/target/wisdom/application:/root/wisdom/application \ | |
# wisdom/acme-sample | |
# | |
# fish: | |
# docker run -d \ | |
# -p 9000:9000 \ | |
# -v (pwd)/target/wisdom/logs:/root/wisdom/logs \ | |
# -v (pwd)/target/wisdom/application:/root/wisdom/application \ | |
# wisdom/acme-sample | |
# | |
# | |
### | |
FROM dockerfile/java:oracle-java8 | |
# Add the wisdom distribution | |
ADD . /root/wisdom | |
# Expose the port 9000 | |
EXPOSE 9000 | |
# Volumes | |
VOLUME /root/wisdom/logs | |
VOLUME /root/wisdom/application | |
# Change workdir. | |
WORKDIR /root/wisdom | |
RUN touch /root/wisdom.log | |
# For easier handling, we dump the log, so `docker logs containerId` displays | |
# the log. | |
CMD chmod +x chameleon.sh; ./chameleon.sh stop;./chameleon.sh start; tail -F logs/wisdom.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment