Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

Add dockerfile to streamline installation steps #1825

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
14 changes: 14 additions & 0 deletions Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```