add webgoat

This commit is contained in:
kev 2016-06-11 08:15:37 +08:00
parent 9915bb4a7a
commit 66258afe1c
5 changed files with 57 additions and 1 deletions

View File

@ -124,6 +124,7 @@ A collection of delicious docker recipes.
- [x] tor
- [x] urlwatch :beetle:
- [x] vsftpd
- [x] webgoat
- [x] webhook
- [x] webkit :beetle:
- [x] youtube :beetle:

View File

@ -28,8 +28,11 @@ $ mkdir -p data
$ sudo chown 1000 data
$ docker-compose up -d
$ docker-compose exec jenkins bash
>>> cat secrets/initialAdminPassword
>>> cat ~/secrets/initialAdminPassword
******
>>> ssh-keygen
>>> cat ~/.ssh/id_rsa.pub
......
>>> exit
$ docker-compose exec --user root jenkins apk add -U git
$ firefox http://localhost:8080/

22
webgoat/Dockerfile Normal file
View File

@ -0,0 +1,22 @@
#
# Dockerfile for webgoat
#
FROM java:jre-alpine
MAINTAINER kev <noreply@easypi.info>
ENV WEBGOAT_VERSION 7.0.1
ENV WEBGOAT_FILE webgoat-container-$WEBGOAT_VERSION-war-exec.jar
ENV WEBGOAT_URL https://github.com/WebGoat/WebGoat/releases/download/$WEBGOAT_VERSION/$WEBGOAT_FILE
WORKDIR /app
RUN set -xe \
&& apk add -U curl \
&& curl -sSL $WEBGOAT_URL > webgoat.jar \
&& apk del curl \
&& rm -rf /var/cache/apk/*
EXPOSE 8080
CMD ["java", "-jar", "webgoat.jar"]

25
webgoat/README.md Normal file
View File

@ -0,0 +1,25 @@
webgoat
=======
![](https://badge.imagelayers.io/vimagick/webgoat:latest.svg)
[WebGoat][1] is a deliberately insecure Web Application.
### docker-compose.yml
```yaml
webgoat:
image: vimagick/webgoat
ports:
- "8080:8080"
restart: always
```
### up and running
```bash
docker-compose up -d
firefox http://localhost:8080/WebGoat/
```
[1]: https://github.com/WebGoat/WebGoat

View File

@ -0,0 +1,5 @@
webgoat:
image: vimagick/webgoat
ports:
- "8080:8080"
restart: always