Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for building official docker images. (#76)
- Loading branch information
Showing
5 changed files
with
44 additions
and
0 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,3 @@ | ||
src/ssh_audit/__pycache__/ | ||
src/ssh_audit.egg-info/ | ||
src/ssh_audit/*~ |
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,10 @@ | ||
FROM python:3.8-slim | ||
|
||
WORKDIR / | ||
|
||
COPY ssh-audit.py . | ||
COPY src/ . | ||
|
||
ENTRYPOINT ["python3", "/ssh-audit.py"] | ||
|
||
EXPOSE 2222 |
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,13 @@ | ||
VERSION = $(shell grep VERSION src/ssh_audit/globals.py | grep -E -o "'(v.*)'" | tr -d "'") | ||
ifeq ($(VERSION),) | ||
$(error "could not determine version!") | ||
endif | ||
|
||
all: | ||
docker build -t positronsecurity/ssh-audit:${VERSION} . | ||
docker tag positronsecurity/ssh-audit:${VERSION} positronsecurity/ssh-audit:latest | ||
|
||
upload: | ||
docker login | ||
docker push positronsecurity/ssh-audit:${VERSION} | ||
docker push positronsecurity/ssh-audit:latest |
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