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

Css 4587 backport generic fixes #965

Merged
merged 8 commits into from
Jun 26, 2023

Conversation

kian99
Copy link
Contributor

@kian99 kian99 commented Jun 23, 2023

Description

This PR backports all the work done on feature-rebac to enable JIMM to work in a local setup with docker compose and a locally deployed Juju controller.

It also backports some minor fixes to the snapcraft.yaml file for JIMM and other miscellaneous fixes.

Engineering checklist

Check only items that apply

  • Documentation updated
  • Covered by unit tests
  • Covered by integration tests


> Any changes made inside the repo will automatically restart the JIMM server via a volume mount. So there's no need
to re-run the compose continuously, but note, if you do bring the compose down, remove the volumes otherwise
vault will not behave correctly, this can be done via `docker compose down -v`

If all was successful, you should seen an output similar to:
```
NAME COMMAND SERVICE STATUS PORTS
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed this because it felt unnecessary to show in the readme and just made it longer and harder to scan for the section you need.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah fair, it was a bit too "full" i agree

exec /root/candidsrv /etc/candid/config.yaml
Copy link
Contributor Author

@kian99 kian99 Jun 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This now ensures candid immediately exits when you kill the compose because the shell isn't running Candid as a background job.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah sounds good to me, what would be better is a proper compose healthcheck ideally though

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a new script I added that automates the setup of the juju controller. We should bring these improvements to feature-rebac too.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice nice

Copy link
Contributor

@ale8k ale8k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, please propose the scripts for feature-rebac too

@kian99 kian99 merged commit 5a2af0d into canonical:main Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants