django-orchestra/INSTALLDEV.md

39 lines
1.2 KiB
Markdown
Raw Normal View History

2015-05-04 14:46:03 +00:00
Development and Testing Setup
-----------------------------
If you are planing to do some development you may want to consider doing it under the following setup
2015-10-03 12:02:53 +00:00
1. Install Docker
```sh
curl https://get.docker.com/ | sh
2015-05-04 14:46:03 +00:00
```
2015-10-03 12:02:53 +00:00
2. Build a new image, create and start a container
2015-05-04 14:46:03 +00:00
```bash
2021-01-27 14:49:02 +00:00
curl -L https://raw.githubusercontent.com/ribaguifi/django-orchestra/docker/scripts/containers/Dockerfile > /tmp/Dockerfile
2015-10-03 12:02:53 +00:00
docker build -t orchestra /tmp/
2015-10-03 12:17:15 +00:00
docker create --name orchestra -i -t -u orchestra -w /home/orchestra orchestra bash
2015-10-03 12:02:53 +00:00
docker start orchestra
docker attach orchestra
2015-05-04 14:46:03 +00:00
```
2015-10-08 15:26:28 +00:00
3. Deploy django-orchestra development environment, inside the container
2015-05-04 14:46:03 +00:00
```bash
bash <( curl -L https://raw.githubusercontent.com/ribaguifi/django-orchestra/docker/scripts/containers/orchestra-deploy ) --dev
2015-05-04 14:46:03 +00:00
```
2015-10-03 12:02:53 +00:00
3. Nginx should be serving on port 80, but Django's development server can be used as well:
2015-05-04 14:46:03 +00:00
```bash
2015-10-03 12:02:53 +00:00
cd panel
python3 manage.py runserver 0.0.0.0:8888
2015-05-04 14:46:03 +00:00
```
2015-10-03 12:02:53 +00:00
2015-05-04 14:46:03 +00:00
5. To upgrade to current master just re-run the deploy script
```bash
2015-10-03 20:06:16 +00:00
git pull origin master
bash <( curl -L https://raw.githubusercontent.com/ribaguifi/django-orchestra/docker/scripts/containers/orchestra-deploy ) --dev
2015-05-04 14:46:03 +00:00
```