Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terraform provider backed Juju model setup + associated charmed operators for API and backend #13

Merged
merged 105 commits into from
Jun 1, 2023
Merged
Changes from 1 commit
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
eeed378
Initial charming files
omar-selo May 24, 2023
e693549
Some more charming
mz2 May 24, 2023
573b788
Mark charm.py executable
mz2 May 24, 2023
5e4e2c2
Moved the charm resources to backend/charm
mz2 May 24, 2023
d515e37
Adds Docker image publishing to GitHub Packages
mz2 May 24, 2023
ade5fce
Moves publish.yml to the correct location
mz2 May 24, 2023
46efdef
Context from . to ./backend
mz2 May 24, 2023
2d2f3d9
Fix to an indentation error
mz2 May 25, 2023
6681a2c
A meaningless change to trigger rebuilding the image.
mz2 May 25, 2023
bb82a00
_pebble_layer was meant to be a property
mz2 May 25, 2023
3e44f93
README edits
mz2 May 25, 2023
df17bfd
Adds instructions for local charm development steps
mz2 May 25, 2023
305468b
Adds the needed step to restart microk8s
mz2 May 25, 2023
f7bccb5
Some aesthetic tweaks
mz2 May 25, 2023
5a0842f
Adds some trivial config change handling
mz2 May 25, 2023
e41d826
Add /version endpoint
mz2 May 25, 2023
235c59f
Attempt at getting the database URL from a database relation.
mz2 May 25, 2023
fc0f103
Import path tweak
mz2 May 25, 2023
422a768
Some more attempts
mz2 May 25, 2023
0b9131e
Database relation worketh!
mz2 May 26, 2023
4701e92
Working on DB migration
mz2 May 26, 2023
0746499
Adds the beginnings of a charm for the frontend.
mz2 May 26, 2023
7657853
README tweaks
mz2 May 26, 2023
6d4565d
Fix the HTTP verb used for the (not in use) version fetching.
mz2 May 26, 2023
7fc2ff9
Publish the frontend image on ghcr.io
mz2 May 26, 2023
773ee45
Separate the frontend and backend images and name them clearer
mz2 May 26, 2023
aa95e46
Oops, fixes to publish.yml
mz2 May 26, 2023
ebf263f
README corrections mostly
mz2 May 26, 2023
f2469b2
Frontend charm looks to be now happy
mz2 May 26, 2023
fc4a975
Modify the backend API URL at runtime
mz2 May 26, 2023
f72e21d
Frontend and backend charms can now be successfully related, and serv…
mz2 May 27, 2023
3e9d1fe
README updates
mz2 May 27, 2023
c6c0fb3
Switch to traefik as ingress
mz2 May 28, 2023
aa28962
Update the "upstream-source" fields ahead of an experimental charmhub…
mz2 May 29, 2023
a176296
Fix the handling of the port value
mz2 May 29, 2023
ba5078b
Initial state of terraform resources
mz2 May 29, 2023
bd3d3c4
Terraform driven deploy now fully functional
mz2 May 29, 2023
e25f14e
Drop the nginx_route reference
mz2 May 29, 2023
789f424
README updates
mz2 May 29, 2023
19e3d84
README updates and additional config param for the ingress external h…
mz2 May 30, 2023
594c83e
Refactor tests, use db migrations, correct session, rollback automati…
omar-selo May 25, 2023
594c32a
Add basic endpoints to fetch data from DB (#10)
nadzyah May 29, 2023
873effe
Add /version endpoint
mz2 May 25, 2023
cd3100a
Attempt at getting the database URL from a database relation.
mz2 May 25, 2023
99aac71
Pulls from origin/main
mz2 May 30, 2023
ad0c599
Update .github/workflows/publish.yml based on suggestion
mz2 May 30, 2023
b3f8856
Update frontend/charm/src/charm.py based on suggestion
mz2 May 30, 2023
91a1627
Update frontend/charm/src/charm.py based on suggestion
mz2 May 30, 2023
d045e46
Update README.md based on suggestion
mz2 May 30, 2023
7cbbdfa
Adds a production oriented Dockerfile, with setuptools_scm based vers…
mz2 May 30, 2023
ad30c2c
Adds back the "charm" branch temporarily
mz2 May 30, 2023
4d97ca6
Adds a rule to build images at tags
mz2 May 30, 2023
927ff61
Refer to version 0.0.3 of the API and frontend images
mz2 May 30, 2023
ab28317
Drop the redundant .venv from .gitignore
mz2 May 30, 2023
1667f05
Drops the DB migration script which was really a placeholder.
mz2 May 30, 2023
9a4041d
Sorts out the charm libs
mz2 May 30, 2023
13c0bda
Fixes up dynamic versioning + some remaining references to "src" vs "…
mz2 May 30, 2023
eac3892
Drops the "charm" branch again from .github/workflows/publish.yml
mz2 May 30, 2023
a0eb1cc
README tweaks
mz2 May 30, 2023
79af4ca
Makes the API URL handling a bit clearer
mz2 May 30, 2023
068cf7f
Some clarifying README edits
mz2 May 30, 2023
5828e2d
Some further README tweaks
mz2 May 30, 2023
862609e
Added a note about the Dockerfiles and the application versioning
mz2 May 30, 2023
e263776
README tweak for the frontend charm
mz2 May 30, 2023
4429ca1
Assorted README clarifications, linter, test failure fix related tweaks.
mz2 May 31, 2023
180dd65
Update backend/charm/src/charm.py based on review suggestion
mz2 May 31, 2023
b733c75
Update frontend/charm/metadata.yaml based on suggestion
mz2 May 31, 2023
ea8ab4e
Comments, README tweaks in response to suggestions.
mz2 May 31, 2023
95dbbec
Removes some redundant config change handler that was actually not co…
mz2 May 31, 2023
c4d6f38
Removes a redundant thing that was included in the boilerplate.
mz2 May 31, 2023
c02fe38
Fixes some metadata.yaml typos
mz2 May 31, 2023
c063485
Update README.md based on review suggestion
mz2 May 31, 2023
40f6373
Drops the .flake8 config files
mz2 May 31, 2023
b891c49
Merges in origin/main
mz2 May 31, 2023
cf1e8be
Adds a README section about releasing the charms
mz2 May 31, 2023
96ccda2
Drop the v1-access part from a terraform resource name
mz2 May 31, 2023
586983d
Fixed up enough import issues to get the backend running again
mz2 May 31, 2023
571c3af
Update image tag reference.
mz2 May 31, 2023
de1719d
Fix the relation name change induced bork
mz2 May 31, 2023
def0ad7
poetry build instead of pip3 install
mz2 May 31, 2023
dfc5e84
Update the image reference
mz2 May 31, 2023
5fc27fd
Adds back the version endpoint
mz2 May 31, 2023
ebda20a
GitHub action for releasing the charm
mz2 May 31, 2023
a7d03f3
Turn off publishing frontend images for now
mz2 May 31, 2023
174d10b
Drops some redundant files that were moved around.
mz2 May 31, 2023
ec32789
Drops some redundant imports
mz2 May 31, 2023
738a13c
Update backend image tag
mz2 May 31, 2023
b4d8f23
Get package name with __package__ instead of a hard coded name.
mz2 May 31, 2023
2d55b66
Fix an import path issue from an earlier merge.
mz2 May 31, 2023
84a6a14
Revert "Drops some redundant imports"
mz2 May 31, 2023
9efcd1e
Revert "Drops some redundant files that were moved around."
mz2 May 31, 2023
5d98ab3
Reinstates some files in places they were meant to be in
mz2 May 31, 2023
35ffa7d
Fixes one last import issue
mz2 May 31, 2023
3181f92
Drop the automated channel choice for now for charm releasing
mz2 May 31, 2023
6daa559
Drop the charm building for tags, add it for ghcr images
mz2 May 31, 2023
4dfc023
Update image reference ahead of rebuilding the charm
mz2 May 31, 2023
cee9f16
Divide backend and frontend builds
mz2 May 31, 2023
e38c3d9
Drops the charm releasing action for now.
mz2 May 31, 2023
0788f19
Drop the charm release and frontend image builds.
mz2 May 31, 2023
ef36b1e
Handles the VS Code settings files in a hopefully agreeable way.
mz2 Jun 1, 2023
6cc6912
Frontend build works again
mz2 Jun 1, 2023
51887ff
Merges with origin/charm
mz2 Jun 1, 2023
c2a7f33
Fixes the local dev Docker file and updates README accordingly
mz2 Jun 1, 2023
da10b54
Removes some redundant files
mz2 Jun 1, 2023
f1ac076
Removed one more redundant file.
mz2 Jun 1, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions charm/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.charm
2 changes: 2 additions & 0 deletions charm/src/charm.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3

from ops.charm import CharmBase
from ops.main import main
from ops.model import ActiveStatus