Move to a docker-compose setup
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user