diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..90c42fc55 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM ubuntu:16.04 + +RUN apt-get update && \ + apt-get install -y \ + git build-essential libffi-dev libssl-dev libcurl4-openssl-dev \ + python3 python3-venv python3-pip python3-openssl python3-dev python3-setuptools python-cffi && \ + git clone https://github.com/StreisandEffect/streisand.git + + +WORKDIR streisand + +ENV VIRTUAL_ENV=./venv +ENV PATH="$VIRTUAL_ENV/bin:$PATH" +RUN pip3 install --upgrade pip setuptools wheel && \ + python3 -m venv $VIRTUAL_ENV && \ + pip3 install -r requirements.txt + +CMD ["./streisand"] diff --git a/Installation.md b/Installation.md index b292bed45..98012f2bb 100644 --- a/Installation.md +++ b/Installation.md @@ -100,3 +100,17 @@ sudo yum -y update && sudo yum install -y \ You should keep a copy of the `generated-docs` directory for the life of the server. Remember to save your `~/.ssh/id_rsa` and `~/.ssh/id_rsa.pub` SSH keys too. You'll need them in case you want to troubleshoot or perform maintenance on your server later. + +## Run with Docker! +```bash +# Make a bindmount location to use pre-made id_rsa ssh key +mkdir ./secrets + +# Build the Image +docker build -t streisand . + +# Run the built container and remove it on exit +docker run -ti --rm -v "$(pwd)"/secrets:/root/.ssh" streisand + +# TODO: save contents of `generated-docs` to bindmount directory to save after destruction of container +``` \ No newline at end of file