-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1582 from rossja/master
Docker refactor
- Loading branch information
Showing
16 changed files
with
385 additions
and
101 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 +1 @@ | ||
config/build.env | ||
config/base.env |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
Dockerfile-base |
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,39 @@ | ||
FROM nccgroup/scoutsuite-base:5.13.0-01 | ||
|
||
LABEL maintainer="Jason Ross <algorythm@gmail.com>" | ||
|
||
ARG BUILD_DATE | ||
ARG NAME | ||
ARG DESCRIPTION | ||
ARG VCS_REF | ||
ARG VCS_URL | ||
ARG VENDOR | ||
ARG VERSION | ||
ARG IMAGE_NAME | ||
|
||
ENV DEBIAN_FRONTEND=${DEBIAN_FRONTEND} | ||
ENV TERM=${TERM} | ||
|
||
# Build-time metadata as defined at http://label-schema.org | ||
LABEL \ | ||
org.label-schema.schema-version="1.0" \ | ||
org.label-schema.build-date="${BUILD_DATE}" \ | ||
org.label-schema.name="${NAME}" \ | ||
org.label-schema.description="${DESCRIPTION}" \ | ||
org.label-schema.vcs-ref="${VCS_REF}" \ | ||
org.label-schema.vcs-url="${VCS_URL}" \ | ||
org.label-schema.vendor="${VENDOR}" \ | ||
org.label-schema.version="${VERSION}" \ | ||
org.label.image-name="${IMAGE_NAME}" | ||
|
||
# Copy helper scripts to container | ||
ADD bin /root/bin | ||
|
||
# Install AWS CLI | ||
RUN ["/bin/bash", "-c", "/root/bin/container-install-aws2.sh"] | ||
|
||
# Remove scripts | ||
RUN ["rm", "-rf", "/root/bin"] | ||
|
||
# Command | ||
CMD ["/bin/bash"] |
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,39 @@ | ||
FROM nccgroup/scoutsuite-base:5.13.0-01 | ||
|
||
LABEL maintainer="Jason Ross <algorythm@gmail.com>" | ||
|
||
ARG BUILD_DATE | ||
ARG NAME | ||
ARG DESCRIPTION | ||
ARG VCS_REF | ||
ARG VCS_URL | ||
ARG VENDOR | ||
ARG VERSION | ||
ARG IMAGE_NAME | ||
|
||
ENV DEBIAN_FRONTEND=${DEBIAN_FRONTEND} | ||
ENV TERM=${TERM} | ||
|
||
# Build-time metadata as defined at http://label-schema.org | ||
LABEL \ | ||
org.label-schema.schema-version="1.0" \ | ||
org.label-schema.build-date="${BUILD_DATE}" \ | ||
org.label-schema.name="${NAME}" \ | ||
org.label-schema.description="${DESCRIPTION}" \ | ||
org.label-schema.vcs-ref="${VCS_REF}" \ | ||
org.label-schema.vcs-url="${VCS_URL}" \ | ||
org.label-schema.vendor="${VENDOR}" \ | ||
org.label-schema.version="${VERSION}" \ | ||
org.label.image-name="${IMAGE_NAME}" | ||
|
||
# Copy helper scripts to container | ||
ADD bin /root/bin | ||
|
||
# Install Azure CLI | ||
RUN ["/bin/bash", "-c", "/root/bin/container-install-azure.sh"] | ||
|
||
# Remove scripts | ||
RUN ["rm", "-rf", "/root/bin"] | ||
|
||
# Command | ||
CMD ["/bin/bash"] |
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 @@ | ||
FROM python:3.12 | ||
|
||
LABEL maintainer="Jason Ross <algorythm@gmail.com>" | ||
|
||
ARG BUILD_DATE | ||
ARG NAME | ||
ARG DESCRIPTION | ||
ARG VCS_REF | ||
ARG VCS_URL | ||
ARG VENDOR | ||
ARG VERSION | ||
ARG IMAGE_NAME | ||
|
||
ENV DEBIAN_FRONTEND=${DEBIAN_FRONTEND} | ||
ENV TERM=${TERM} | ||
|
||
# Build-time metadata as defined at http://label-schema.org | ||
LABEL \ | ||
org.label-schema.schema-version="1.0" \ | ||
org.label-schema.build-date="${BUILD_DATE}" \ | ||
org.label-schema.name="${NAME}" \ | ||
org.label-schema.description="${DESCRIPTION}" \ | ||
org.label-schema.vcs-ref="${VCS_REF}" \ | ||
org.label-schema.vcs-url="${VCS_URL}" \ | ||
org.label-schema.vendor="${VENDOR}" \ | ||
org.label-schema.version="${VERSION}" \ | ||
org.label.image-name="${IMAGE_NAME}" | ||
|
||
# Copy helper scripts to container | ||
ADD bin /root/bin | ||
|
||
# Install required software | ||
RUN ["/bin/bash", "-c", "/root/bin/container-install-prereqs.sh"] | ||
|
||
# Install ScoutSuite | ||
RUN ["/bin/bash", "-c", "/root/bin/container-install-scoutsuite.sh"] | ||
|
||
# Set a nice message | ||
RUN ["/bin/bash", "-c", "/root/bin/container-set-init.sh"] | ||
|
||
# Remove scripts | ||
RUN ["rm", "-rf", "/root/bin"] | ||
|
||
# Command | ||
CMD ["/bin/bash"] |
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,39 @@ | ||
FROM nccgroup/scoutsuite-base:5.13.0-01 | ||
|
||
LABEL maintainer="Jason Ross <algorythm@gmail.com>" | ||
|
||
ARG BUILD_DATE | ||
ARG NAME | ||
ARG DESCRIPTION | ||
ARG VCS_REF | ||
ARG VCS_URL | ||
ARG VENDOR | ||
ARG VERSION | ||
ARG IMAGE_NAME | ||
|
||
ENV DEBIAN_FRONTEND=${DEBIAN_FRONTEND} | ||
ENV TERM=${TERM} | ||
|
||
# Build-time metadata as defined at http://label-schema.org | ||
LABEL \ | ||
org.label-schema.schema-version="1.0" \ | ||
org.label-schema.build-date="${BUILD_DATE}" \ | ||
org.label-schema.name="${NAME}" \ | ||
org.label-schema.description="${DESCRIPTION}" \ | ||
org.label-schema.vcs-ref="${VCS_REF}" \ | ||
org.label-schema.vcs-url="${VCS_URL}" \ | ||
org.label-schema.vendor="${VENDOR}" \ | ||
org.label-schema.version="${VERSION}" \ | ||
org.label.image-name="${IMAGE_NAME}" | ||
|
||
# Copy helper scripts to container | ||
ADD bin /root/bin | ||
|
||
# Install gCloud SDK | ||
RUN ["/bin/bash", "-c", "/root/bin/container-install-gcp.sh"] | ||
|
||
# Remove scripts | ||
RUN ["rm", "-rf", "/root/bin"] | ||
|
||
# Command | ||
CMD ["/bin/bash"] |
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
Oops, something went wrong.