-
Notifications
You must be signed in to change notification settings - Fork 2
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
16 changed files
with
614 additions
and
436 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
venv/ | ||
.github/ | ||
.mypy_cache/ | ||
build/ |
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
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,11 +1,12 @@ | ||
FROM docker:stable | ||
RUN apk update \ | ||
&& apk add python3 curl openssh-client git openssl bash python-dev libffi-dev openssl-dev gcc libc-dev make py-pip \ | ||
&& apk add python3 curl openssh-client git openssl bash python3-dev libffi-dev openssl-dev gcc libc-dev make py-pip \ | ||
&& curl -L https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl \ | ||
&& curl -SL https://github.com/docker/compose/releases/latest/download/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose \ | ||
&& chmod +x /usr/local/bin/kubectl \ | ||
&& pip install docker-compose | ||
&& chmod +x /usr/local/bin/docker-compose | ||
|
||
COPY . /app/deploy | ||
|
||
RUN cd /app/deploy \ | ||
&& python3 setup.py install | ||
&& pip install . \ |
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 |
---|---|---|
@@ -1,25 +1,5 @@ | ||
#!/usr/bin/python3 | ||
|
||
from .deploy import ( | ||
build_image, | ||
get_current_git_hash, | ||
get_current_image, | ||
is_clean_repo, | ||
main, | ||
pull_image, | ||
push_image, | ||
set_current_image, | ||
tag_docker_image, | ||
) | ||
from .deploy import Deploy, load_deploy_json, main | ||
|
||
__all__ = [ | ||
"main", | ||
"get_current_image", | ||
"set_current_image", | ||
"push_image", | ||
"pull_image", | ||
"is_clean_repo", | ||
"get_current_git_hash", | ||
"tag_docker_image", | ||
"build_image", | ||
] | ||
__all__ = ["main", "Deploy", "load_deploy_json"] |
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,3 @@ | ||
from .deploy import main | ||
|
||
main() |
Oops, something went wrong.