Skip to content

Commit

Permalink
Merge pull request #25 from stevenaldinger/update-dockerfiles
Browse files Browse the repository at this point in the history
update kali dockerfile, remove w3af temporarily
  • Loading branch information
stevenaldinger committed Mar 19, 2019
2 parents 4d50258 + 4873801 commit 9827b9d
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 36 deletions.
12 changes: 11 additions & 1 deletion build/ci/drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ workspace:
base: /go
path: src/github.com/stevenaldinger/decker
steps:
- name: decker
- name: build-minimal
image: plugins/docker
settings:
repo: stevenaldinger/decker
Expand All @@ -15,6 +15,16 @@ steps:
from_secret: docker_username
password:
from_secret: docker_password
- name: build-kali
image: plugins/docker
settings:
repo: stevenaldinger/decker
auto_tag: true
auto_tag_suffix: kali
username:
from_secret: docker_username
password:
from_secret: docker_password

trigger:
event:
Expand Down
70 changes: 35 additions & 35 deletions build/package/kali.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM stevenaldinger/decker:latest as decker
FROM stevenaldinger/decker:minimal as decker

FROM stevenaldinger/w3af:0.0.1 as w3af
# FROM stevenaldinger/w3af:0.0.1 as w3af

FROM kalilinux/kali-linux-docker

Expand Down Expand Up @@ -85,39 +85,39 @@ COPY --from=decker /go/bin/decker /go/bin/decker
COPY --from=decker /go/bin/internal/app/decker/plugins /go/bin/internal/app/decker/plugins
COPY --from=decker /go/bin/examples /go/bin/examples

COPY --from=w3af /home/w3af/w3af /usr/bin/w3af

ENV LC_ALL=C

# w3af_console fails but craete /tmp/w3af_dependency_install.sh
# sed changes the install script to add the -y and not require input
RUN cd /usr/bin/w3af \
&& pip install --upgrade pip \
&& ./w3af_console \
; sed 's/sudo //g' -i /tmp/w3af_dependency_install.sh \
&& sed 's/apt-get/apt-get -y/g' -i /tmp/w3af_dependency_install.sh \
&& sed 's/pip install/pip install --upgrade/g' -i /tmp/w3af_dependency_install.sh \
&& /tmp/w3af_dependency_install.sh \
; ./w3af_gui \
; sed 's/sudo //g' -i /tmp/w3af_dependency_install.sh \
&& sed 's/apt-get/apt-get -y/g' -i /tmp/w3af_dependency_install.sh \
&& sed 's/pip install/pip install --upgrade/g' -i /tmp/w3af_dependency_install.sh \
&& /tmp/w3af_dependency_install.sh \
# Cleanup to make the image smaller
; rm /tmp/w3af_dependency_install.sh \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/pip-build-root \
&& sed "s/'accepted-disclaimer': 'false'/'accepted-disclaimer': 'true'/g" -i /usr/bin/w3af/w3af/core/data/db/startup_cfg.py \
&& sed "s/'skip-dependencies-check': 'false'/'skip-dependencies-check': 'true'/g" -i /usr/bin/w3af/w3af/core/data/db/startup_cfg.py

RUN pip install \
acora \
bravado_core \
diff_match_patch \
esmre \
pebble \
tldextract
# COPY --from=w3af /home/w3af/w3af /usr/bin/w3af
#
# ENV LC_ALL=C
#
# # w3af_console fails but craete /tmp/w3af_dependency_install.sh
# # sed changes the install script to add the -y and not require input
# RUN cd /usr/bin/w3af \
# && pip install --upgrade pip \
# && ./w3af_console \
# ; sed 's/sudo //g' -i /tmp/w3af_dependency_install.sh \
# && sed 's/apt-get/apt-get -y/g' -i /tmp/w3af_dependency_install.sh \
# && sed 's/pip install/pip install --upgrade/g' -i /tmp/w3af_dependency_install.sh \
# && /tmp/w3af_dependency_install.sh \
# ; ./w3af_gui \
# ; sed 's/sudo //g' -i /tmp/w3af_dependency_install.sh \
# && sed 's/apt-get/apt-get -y/g' -i /tmp/w3af_dependency_install.sh \
# && sed 's/pip install/pip install --upgrade/g' -i /tmp/w3af_dependency_install.sh \
# && /tmp/w3af_dependency_install.sh \
# # Cleanup to make the image smaller
# ; rm /tmp/w3af_dependency_install.sh \
# && apt-get clean \
# && rm -rf /var/lib/apt/lists/* \
# && rm -rf /tmp/pip-build-root \
# && sed "s/'accepted-disclaimer': 'false'/'accepted-disclaimer': 'true'/g" -i /usr/bin/w3af/w3af/core/data/db/startup_cfg.py \
# && sed "s/'skip-dependencies-check': 'false'/'skip-dependencies-check': 'true'/g" -i /usr/bin/w3af/w3af/core/data/db/startup_cfg.py
#
# RUN pip install \
# acora \
# bravado_core \
# diff_match_patch \
# esmre \
# pebble \
# tldextract


# ENTRYPOINT ["bash"]
Expand Down

0 comments on commit 9827b9d

Please sign in to comment.