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

Nginx UI integration #278

Merged

Conversation

falquaddoomi
Copy link
Collaborator

Related issues

Summary

This PR adds a Dockerfile to build an nginx-based container to serve the UI; the v3 deployment stack will deploy this image alongside the rest of the stack. The built UI bundle is baked into the image for ease of deployment.

The PR piggybacks off of the existing .github/workflows/deploy-frontend.yaml workflow, since the frontend is built there. In that workflow, the Dockerfile mentioned previously is built as us-central1-docker.pkg.dev/monarch-initiative/monarch-api/monarch-ui. During the build, the UI bundle is copied into the image. The image is then pushed to the GCP Artifact registry, where it can be pulled by the v3 stack deployer.

Checks

  • All tests have passed (or issues created for failing tests)

@falquaddoomi falquaddoomi merged commit ef43997 into monarch-initiative:main Aug 15, 2023
9 checks passed
@netlify
Copy link

netlify bot commented Aug 15, 2023

Deploy Preview for monarch-app ready!

Name Link
🔨 Latest commit b6e301b
🔍 Latest deploy log https://app.netlify.com/sites/monarch-app/deploys/64dbdf5c3505b7000874c7a8
😎 Deploy Preview https://deploy-preview-278--monarch-app.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

kevinschaper pushed a commit that referenced this pull request Aug 16, 2023
This is a quick hotfix for PR #278. The previous version didn't pull all
tags on checkout, so the workflow failed when it attempted to find the
most recent git tag to set the image's tag.
kevinschaper pushed a commit that referenced this pull request Aug 22, 2023
### Related issues

- Addresses #235 

### Summary

This PR adds a Dockerfile to build an nginx-based container to serve the
UI; the v3 deployment stack will deploy this image alongside the rest of
the stack. The built UI bundle is baked into the image for ease of
deployment.

The PR piggybacks off of the existing
`.github/workflows/deploy-frontend.yaml` workflow, since the frontend is
built there. In that workflow, the Dockerfile mentioned previously is
built as
`us-central1-docker.pkg.dev/monarch-initiative/monarch-api/monarch-ui`.
During the build, the UI bundle is copied into the image. The image is
then pushed to the GCP Artifact registry, where it can be pulled by the
v3 stack deployer.

### Checks

- [x] All tests have passed (or issues created for failing tests)
kevinschaper pushed a commit that referenced this pull request Aug 22, 2023
This is a quick hotfix for PR #278. The previous version didn't pull all
tags on checkout, so the workflow failed when it attempted to find the
most recent git tag to set the image's tag.
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