This repository has been archived on 2020-09-13. You can view files and clone it, but cannot push or open issues or pull requests.
magic-app/README.md

40 lines
1.1 KiB
Markdown
Raw Normal View History

2020-06-30 18:37:10 +00:00
# Magic App
2020-06-30 18:08:20 +00:00
2020-06-30 18:37:10 +00:00
[![Build Status](https://drone.autonomic.zone/api/badges/autonomic-cooperative/magic-app/status.svg)](https://drone.autonomic.zone/autonomic-cooperative/magic-app)
2020-06-30 18:29:57 +00:00
2020-06-30 18:08:20 +00:00
A swarm of dreams.
2020-06-30 18:28:47 +00:00
2020-06-30 19:10:52 +00:00
## Proof-of-concept
2020-06-30 19:13:48 +00:00
- [ ] List apps from an `app.json` (points to https://git.autonomic.zone/compose-stacks)
2020-06-30 19:10:52 +00:00
- [ ] Clone selected app template and parse configuration for inputs (env vars and secrets)
- [ ] Generate a form so those values can be filled out
- [ ] Save the form inputs to a `db.json`
- [ ] Deploy an applicaiton to a local swarm (assumes access to local docker socket)
- [ ] Create an "edit app" page where the `db.json` is re-called and can be updated
- [ ] Make sure re-deploy works (taking care of updating secret and app versions)
## Run It
### Go Go Go No Docker
2020-06-30 18:28:47 +00:00
```bash
$ python3 -m venv .venv && source .venv/bin/activate
$ pip install -r requirements.txt
$ make python-run
2020-06-30 18:28:47 +00:00
```
2020-06-30 19:10:52 +00:00
### Go Go Go Yes Docker
2020-06-30 18:28:47 +00:00
```bash
$ make docker-build
$ make docker-run
2020-06-30 18:28:47 +00:00
```
2020-06-30 18:48:47 +00:00
2020-06-30 19:10:52 +00:00
### Go Go Go Yes Docker Compose
2020-06-30 18:48:47 +00:00
```bash
$ pip install "docker-compose>=1.26.0,<2"
$ make compose-run
```