Move to a docker-compose setup

This commit is contained in:
Luke Murphy
2020-05-01 10:30:31 +02:00
parent 34aca195ce
commit 5b7ee79c5d
10 changed files with 110 additions and 24 deletions

View File

@ -15,23 +15,33 @@ with.
## Deploy It
1. Push your changes to master and Dokku will try to automatically release
1. See the [Drone dashboard to see the build](https://drone.autonomic.zone/autonomic-cooperative/autonomic.zone/)
Just push your changes to master and it will be deploy. See [Drone](https://drone.autonomic.zone/autonomic-cooperative/autonomic.zone/) for more.
## Hack On It
The only prerequisite is [Docker](https://www.docker.com/). If you're on Debian, installing is easy.
The prerequisites are [Docker](https://www.docker.com/) and [Docker-compose](https://docs.docker.com/compose/).
If you're on Debian, installing is easy.
Install Docker.
```bash
$ curl -fsSL https://get.docker.com -o get-docker.sh # have a look if you want
$ CHANNEL=stable sh get-docker.sh
```
Fire up the container with the following.
Install Docker-compose.
```bash
$ make build # only the first time or when changing container
$ make serve
$ cd autonomic.zone
$ python3 -m venv .venv
$ pip install -r requirements.txt
```
Then fire up the container with the following.
```bash
$ docker-compose up
```
Then visit the locally running website.
@ -43,7 +53,7 @@ Then you can edit the files as normal and reload the page.
To stop the container when you're done, you can run:
```bash
$ make stop
$ docker-compose stop
```
## Notes