-
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
Showing
6 changed files
with
80 additions
and
7 deletions.
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 |
---|---|---|
@@ -1,6 +1,13 @@ | ||
Versions | ||
======== | ||
|
||
0.0.2 | ||
======== | ||
|
||
_Release date: 13.08.2020_ | ||
|
||
- Release 0.0.1 main docker image | ||
|
||
0.0.1 | ||
======== | ||
|
||
|
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,18 @@ | ||
FROM vyahello/pep8-checker-base:0.0.1 | ||
LABEL version=0.0.1 \ | ||
metadata="The main image for pep8-checker application" \ | ||
maintainer="Volodymyr Yahello <vyahello@gmail.com>" | ||
ARG VERSION | ||
ARG REPOSITORY | ||
ARG AWS_ENDPOINT | ||
ENV CODE_DIR="/code" \ | ||
IMAGE_VERSION=${VERSION} \ | ||
IMAGE_REPO=${REPOSITORY} \ | ||
AWS_ENDPOINT=${AWS_ENDPOINT} | ||
WORKDIR ${CODE_DIR} | ||
COPY checker checker | ||
COPY requirements.txt docker-entry.sh ./ | ||
RUN pip install --no-cache-dir --upgrade pip && \ | ||
pip install --no-cache-dir -r requirements.txt && \ | ||
rm -v requirements.txt | ||
ENTRYPOINT ["/code/docker-entry.sh"] |
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
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,45 @@ | ||
#!/bin/bash | ||
|
||
|
||
helper() { | ||
:<<DOC | ||
Shows 'help' message | ||
DOC | ||
cat <<HELP | ||
This program allows to launch pep8-checker application via docker image. | ||
Please use next command: | ||
- 'help' to see tool help | ||
docker run ${IMAGE_REPO}:${IMAGE_VERSION} --help | ||
- 'quotes' to run quotes web application | ||
docker run -it -p {local-port}:5050 ${IMAGE_REPO}:${IMAGE_VERSION} checker | ||
HELP | ||
} | ||
|
||
|
||
checker() { | ||
:<<DOC | ||
Entrypoint to launch 'pep8-checker' web application | ||
DOC | ||
python -m checker | ||
} | ||
|
||
|
||
main() { | ||
:<<DOC | ||
Launches 'main' tools executor | ||
DOC | ||
if ( | ||
[[ "$1" == "-h" ]] || | ||
[[ "$1" == "--help" ]] || | ||
[[ "$1" == "help" ]] || | ||
[[ $# -eq 0 ]] | ||
); then | ||
helper | ||
exit 0 | ||
fi | ||
local cmd=$1; shift | ||
eval "${cmd} $@" | ||
} | ||
|
||
|
||
main $@ |
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