https://github.com/cohoe/havana
Container deployments for Amari
https://github.com/cohoe/havana
Last synced: about 1 year ago
JSON representation
Container deployments for Amari
- Host: GitHub
- URL: https://github.com/cohoe/havana
- Owner: cohoe
- Created: 2020-01-18T01:15:25.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-16T05:30:08.000Z (over 3 years ago)
- Last Synced: 2025-02-12T15:00:06.239Z (over 1 year ago)
- Homepage:
- Size: 19.5 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Havana
======
Podman/Docker app stack.
Requirements
------------
* Podman (or Docker)
* podman-compose (or docker-compose)
* Python 3 with pip & virtualenv (virtualenvwrapper is encouraged for easy setup)
* Local copies of the other repos:
* [cohoe/jamaica](https://github.com/cohoe/jamaica)
* [cohoe/barbados](https://github.com/cohoe/barbados)
* [cohoe/tortuga](https://github.com/cohoe/tortuga)
* [cohoe/england](https://github.com/cohoe/england)
Setup
-----
### Python Virtualenv
Ensure you have a venv based on python3.
```
mkvirtualenv amari -p python3
```
Install all requirements from this repo's `requirements.txt`.
```
pip install -r requirements.txt
```
In each repo directory of [barbados, england, jamaica]:
```
pip install -e .
```
Execution
---------
### Start the stack
From the Havana `docker-compose.yml`
```
podman-compose up -d
```
### Bootstrap the Database
```
DATABASE_USERNAME=postgres DATABASE_PASSWORD=putthedbpasshere DATABASE_NAME=amari amari init
```
The password and database name should match whats in the `docker-compose.yml`. Edit it if you want to.
### Fill in the Tables
Ensure you're still in the virtualenv (it usually prefixes your shell).
```
amari import ingredients ../tortuga/ingredients/
amari import recipe ../tortuga/recipes/
```
### Run API
From the Jamaica repo:
```
python3 jamaica/app.py
```