-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a1a82fb
commit e19a7a0
Showing
4 changed files
with
100 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# | ||
# Yamp Dockerfile | ||
# | ||
# Usage: | ||
# | ||
# $ docker run --rm -u $(id -u):$(id -g) -v "$PWD":/work docker.io/birchb1024/yamp /work/path/to/your.yaml | ||
# | ||
# using stdin: | ||
# | ||
# $ echo env | docker run -i --rm -u $(id -u):$(id -g) -v "$PWD":/work docker.io/birchb1024/yamp - | ||
# | ||
# Build: | ||
# | ||
# $ git clone https://github.com/birchb1024/yamp.git | ||
# $ cd yamp | ||
# $ docker build -t yamp . | ||
# | ||
# Debug in the container: | ||
# | ||
# $ docker run -it --entrypoint /bin/bash --rm -u $(id -u):$(id -g) -v "$PWD":/work docker.io/birchb1024/yamp | ||
# | ||
FROM python:2.7-slim-stretch | ||
|
||
# Install pre-requisites | ||
RUN pip install pyyaml | ||
|
||
# Install the application | ||
ADD doc/*.html /yamp/doc/ | ||
ADD src/*.py /yamp/src/ | ||
ADD examples /yamp/examples/ | ||
ADD test /yamp/test/ | ||
|
||
# Run a few tests | ||
RUN python /yamp/test/test_expand_01.py | ||
|
||
# Specify the runtime | ||
ENTRYPOINT ["/usr/local/bin/python", "/yamp/src/yamp.py"] |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
# | ||
# Build Script for Yamp | ||
# | ||
# Requires | ||
# | ||
# python, pyyaml, | ||
# asciidoc, `source-highlight` and the YAML syntax module. | ||
# docker | ||
# | ||
set -u | ||
set -e | ||
|
||
python test/test_expand_01.py | ||
asciidoc README.asciidoc && mv README.html doc | ||
docker build -t docker.io/birchb1024/yamp . | ||
|
||
echo "Now 'docker push docker.io/birchb1024/yamp'" | ||
|
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