Removing unused docker build scripts
This commit is contained in:
parent
0120c027b0
commit
6e2f473f02
|
@ -1 +0,0 @@
|
||||||
*.md
|
|
|
@ -1,24 +0,0 @@
|
||||||
FROM debian:stretch-slim
|
|
||||||
|
|
||||||
LABEL MAINTAINER="theonlydoo <theonlydoo@gmail.com>"
|
|
||||||
|
|
||||||
ARG RELEASE=1.8.0
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
|
||||||
|
|
||||||
EXPOSE 5000
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
ADD https://github.com/guardicore/monkey/releases/download/${RELEASE}/infection_monkey_deb.${RELEASE}.tgz .
|
|
||||||
|
|
||||||
RUN tar xvf infection_monkey_deb.${RELEASE}.tgz \
|
|
||||||
&& apt-get -yqq update \
|
|
||||||
&& apt-get -yqq upgrade \
|
|
||||||
&& apt-get -yqq install python-pip \
|
|
||||||
python-dev \
|
|
||||||
&& dpkg -i *.deb \
|
|
||||||
&& rm -f *.deb *.tgz
|
|
||||||
|
|
||||||
WORKDIR /var/monkey
|
|
||||||
ENTRYPOINT ["/var/monkey/monkey_island/bin/python/bin/python"]
|
|
||||||
CMD ["/var/monkey/monkey_island.py"]
|
|
|
@ -1,11 +0,0 @@
|
||||||
# Improvements needed
|
|
||||||
|
|
||||||
* Remove embedded mongodb from .deb, it forbids installation on a `debian:stretch` distro.
|
|
||||||
* Package monkey for system's python usage.
|
|
||||||
* Fix package number: (I installed the 1.5.2)
|
|
||||||
```
|
|
||||||
ii gc-monkey-island 1.0 amd64 Guardicore Infection Monkey Island installation package
|
|
||||||
```
|
|
||||||
* Use .deb dependencies for mongodb setup?
|
|
||||||
* Use docker-compose for stack construction.
|
|
||||||
* Remove the .sh script from the systemd unit file (`/var/monkey_island/ubuntu/systemd/start_server.sh`) which only does a `cd && localpython run`
|
|
|
@ -1,22 +0,0 @@
|
||||||
version: '3.3'
|
|
||||||
|
|
||||||
services:
|
|
||||||
db:
|
|
||||||
image: mongo:4
|
|
||||||
restart: always
|
|
||||||
volumes:
|
|
||||||
- db_data:/data/db
|
|
||||||
environment:
|
|
||||||
MONGO_INITDB_DATABASE: monkeyisland
|
|
||||||
monkey:
|
|
||||||
depends_on:
|
|
||||||
- db
|
|
||||||
build: .
|
|
||||||
image: monkey:latest
|
|
||||||
ports:
|
|
||||||
- "5000:5000"
|
|
||||||
environment:
|
|
||||||
MONGO_URL: mongodb://db:27017/monkeyisland
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
db_data:
|
|
Loading…
Reference in New Issue