mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
add webgoat
This commit is contained in:
parent
9915bb4a7a
commit
66258afe1c
@ -124,6 +124,7 @@ A collection of delicious docker recipes.
|
|||||||
- [x] tor
|
- [x] tor
|
||||||
- [x] urlwatch :beetle:
|
- [x] urlwatch :beetle:
|
||||||
- [x] vsftpd
|
- [x] vsftpd
|
||||||
|
- [x] webgoat
|
||||||
- [x] webhook
|
- [x] webhook
|
||||||
- [x] webkit :beetle:
|
- [x] webkit :beetle:
|
||||||
- [x] youtube :beetle:
|
- [x] youtube :beetle:
|
||||||
|
@ -28,8 +28,11 @@ $ mkdir -p data
|
|||||||
$ sudo chown 1000 data
|
$ sudo chown 1000 data
|
||||||
$ docker-compose up -d
|
$ docker-compose up -d
|
||||||
$ docker-compose exec jenkins bash
|
$ docker-compose exec jenkins bash
|
||||||
>>> cat secrets/initialAdminPassword
|
>>> cat ~/secrets/initialAdminPassword
|
||||||
|
******
|
||||||
>>> ssh-keygen
|
>>> ssh-keygen
|
||||||
|
>>> cat ~/.ssh/id_rsa.pub
|
||||||
|
......
|
||||||
>>> exit
|
>>> exit
|
||||||
$ docker-compose exec --user root jenkins apk add -U git
|
$ docker-compose exec --user root jenkins apk add -U git
|
||||||
$ firefox http://localhost:8080/
|
$ firefox http://localhost:8080/
|
||||||
|
22
webgoat/Dockerfile
Normal file
22
webgoat/Dockerfile
Normal 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
25
webgoat/README.md
Normal 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
|
5
webgoat/docker-compose.yml
Normal file
5
webgoat/docker-compose.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
webgoat:
|
||||||
|
image: vimagick/webgoat
|
||||||
|
ports:
|
||||||
|
- "8080:8080"
|
||||||
|
restart: always
|
Loading…
Reference in New Issue
Block a user