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

Add support for development environment with docker #659

Merged
merged 10 commits into from
Aug 22, 2023
Merged

Conversation

anarute
Copy link
Member

@anarute anarute commented Aug 16, 2023

  • Add images for all 3 apps: current phpreport app, react front end and the new API.
  • Add several minor fixes in other for the apps to work in this environment and the frontend work well after the refresh token logic was added

There should be no whitespace between the groups or they will be
added in the group name.
Not every provider uses the same prop, so better to make this
configurable.
After the refresh token logic was added, the access token is the
one valid in the API
@anarute anarute requested a review from dmtrek14 August 16, 2023 11:19
Copy link
Collaborator

@dmtrek14 dmtrek14 left a comment

Choose a reason for hiding this comment

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

I have a nit (in the dev.app.Dockerfile) and some thoughts on additions to the docs for running with this new setup.

And one more general comment/question: In the dev docker compose, we are not setting up a volume for the database, which will be fine in a lot of cases, but I could see someone also wanting to persist data during development. Should we change the docker compose to have a volume for the data? Maybe commented out so that if someone wants to persist data, all they need to do is uncomment a couple things? If that's something we want to do, then we should also make note of it in the documentation.

docker/dev.app.Dockerfile Outdated Show resolved Hide resolved
docs/src/developer/devel-setup.md Show resolved Hide resolved
@anarute
Copy link
Member Author

anarute commented Aug 17, 2023

And one more general comment/question: In the dev docker compose, we are not setting up a volume for the database, which will be fine in a lot of cases, but I could see someone also wanting to persist data during development. Should we change the docker compose to have a volume for the data? Maybe commented out so that if someone wants to persist data, all they need to do is uncomment a couple things? If that's something we want to do, then we should also make note of it in the documentation.

By default the postgresql image already creates an anonymous volume, but that's a good point, I'll add it to make it more explicit, good catch!

Add files for the 3 apps: phpreport legacy, the front end and
the API. Also spawns a postgres container with initial data.
This way it can be accessible when running the app with docker
Copy link
Collaborator

@dmtrek14 dmtrek14 left a comment

Choose a reason for hiding this comment

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

I added one more suggestion to the developer docs regarding some environment variables. Everything else looks good.

docs/src/developer/devel-setup.md Show resolved Hide resolved
Copy link
Collaborator

@dmtrek14 dmtrek14 left a comment

Choose a reason for hiding this comment

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

Looks good - thanks for all the additions to the docs!

@anarute anarute merged commit de011e7 into main Aug 22, 2023
1 check passed
@anarute anarute deleted the docker-dev branch August 22, 2023 17:18
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.

2 participants