-
Notifications
You must be signed in to change notification settings - Fork 44
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
ci, dev: remove frontend nginx version, dev stack with bundled front … #10502
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## dev #10502 +/- ##
=======================================
Coverage 81.89% 81.89%
=======================================
Files 1078 1079 +1
Lines 107178 107205 +27
Branches 724 729 +5
=======================================
+ Hits 87771 87795 +24
- Misses 19367 19370 +3
Partials 40 40
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
0cbd80a
to
26def6a
Compare
2cb59cf
to
7327fa6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Maybe we should delete the scripts/host-compose.sh
file?
7327fa6
to
cf4852e
Compare
cf4852e
to
9ca9543
Compare
9ca9543
to
46fc9d4
Compare
46fc9d4
to
c1ea288
Compare
96338f2
to
1b70748
Compare
Various updates : the order of the overrides matters more than I thought, so I switched the way I pars env flags. |
Either way we must use additional contexts:
No matter how we integrate it, it does require additional contexts that can reference a specific stage of a docker file, a feature allowed by bakefiles but not compose file. Since in production the front doesn't exist as a service but is bundled in the gateway, I've put the front building in the gateway dockerfile. |
Sorry, I still don't understand why we need to reference a specific stage in I'd prefer to keep the NPM commands inside |
From my understanding you can give it a path but not the built result of another dockerfile. If you find a way to achieve this without a bakefile we can do so, but I've tried without any success.
I'd prefer too. |
Eh, you're correct. It seems like this is compose-spec/compose-spec#336. |
a88e08a
to
5623b9b
Compare
Is host+front mode really useful? If one runs in host mode and wants to hack on the front, they'll probably just run it outside docker, no? |
I feel that making this assumption is risky : we do not know each configuration the user is going to have relative to Docker and I believe we should keep it as unopinionated as possible on those subjects. Also, the same issue exists with Single Worker and Front, there is no guarantee that someone working on Core could not require modifications on the front. I feel we should not remove an easy option for the developers, starting the stack outside docker can be cumbersome. |
5623b9b
to
fe1b2d6
Compare
fe1b2d6
to
488354a
Compare
I think we need to update the README ? EDIT (by @bougue-pe ): |
488354a
to
864e740
Compare
864e740
to
1767027
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ✅
…by default - Use the gateway-front in the e2e tests - Simplify the integration tests step removing gateway and front images - Use the gateway front image for the front, removing the container front of the default stack - Create a Docker compose for the front devel stack Signed-off-by: Élyse Viard <[email protected]> Signed-off-by: Élyse Viard <[email protected]>
1767027
to
4c75436
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on Mac, Docker desktop, works great 💪
The goal of this PR is to simplify the stack by:
Due to a limitation in Docker Compose not supporting targeting custom targets inside other Dockerfile in additional contexts, I've moved a part of the building system for the front on the Gateway Dockerfile. Not ideal, but does the trick.
NOTE : Before merging we should modify the protrected branch requirement