-
Notifications
You must be signed in to change notification settings - Fork 0
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
Phase 2: Develop CI/CD for NPM/React projects #69
Comments
Quick question: In this comment @eddiesarevalo suggests using I have no feelings either way. What would you prefer? @anilnatha, do you have a preference? |
📆 03/2024 status: In work. On schedule |
📆 04/2024 status: Updated end date to better reflect the work needed to complete continuous deployment for these applications. No impact on delivery. |
📆 05/2024 status: In work. On track for 6/20 delivery. |
This epic talks about using GitHub Actions for CI and CD. CI PartI've indentified the following repositories as using Node.js (based on presence of the
CD PartThese repositories are using Terraform (based on the presence of
OverlapNote: there is no overlap. The Node.js projects don't have Terraform files, and the Terraform projects aren't Node.js. Question: do you want me to provide the GitHub Actions for "CD" for the Node.js projects even though they don't have any Terraform files, or provide the GitHub Actions for "CD" for the Terraform projects even though they're not Node.js? Or both? |
@nutjob4life to query @anilnatha which of the above "CI" repositories is ripest for CD and to provide the Terraform files + the GitHub Action to run them for CD. |
@anilnatha consider this your official query: of the repositories under "CI Part" in this comment, which one would you like me to ① create some Terraform files for and ② add GitHub Actions to use those Terraform files to make an automatic dev-tier deployment? |
@nutjob4life None of the |
I would imagine that we need terraform for the |
@anilnatha to rephrase the question, if we wanted to be able to view and/or test what you and Eddie are currently working on, what repository would benefit from continuous deployment and/or containerization? Note: This may change in the future once we get wordpress in the loop. |
I think it's in our best interest to focus on flushing out the cloud architecture I initially proposed and building out the |
Okay so is the idea to make portal-wp be like a template repo that you duplicate so you can stand-up Wordpress sites easily or more as just a "model", as in, "here's how you'd do it as a fully-fleshed example"? |
@nutjob4life this will be the one and only. we don't care about other wordpress sites and how to deploy this. this can be as application specific as needed. |
The build is broken, Sean will try to fix it since @anilnatha is busy and he wants to learn that. |
@nutjob4life The icons do still build when the CC: @eddiesarevalo |
@nutjob4life I created a ticket to track the issue you reported, but it shouldn't be a blocker. Let me know if you are in fact blocked though so I can prioritize the bug fix. Reference: NASA-PDS/wds-react#52 |
@nutjob4life I fixed the build-icons issue, PR to get that reviewed and merged is here. |
@anilnatha getting closer! I'm not up to the
What do you think? |
@nutjob4life With where we are with the MVP I think we should skip trying to get the WordPress set up and focus on just getting the frontend application up and running. We will be starting on the wordpress set up soon, but it's not needed for the MVP. Should I comment out the wordpress configuration(s) |
@anilnatha I was just following the instructions in the README, I swear! 😇 |
Terraform for portal-wp
@jordanpadams @tloubrieu-jpl I know we're trying to reduce the S3 buckets in use, but in order to turn this from a "technology demonstration" to an actual hosted app, I'll need a bucket. What's the process for procuring one? |
@nutjob4life I have no problem with all the buckets we need, just not stale/unused/undocumented buckets :-) @viviant100 @sjoshi-jpl how should we put requests in for this? If this is in MCP-Dev, is there an FAQ somewhere we can direct users when they ask "How can I create an S3 bucket?" |
@jordanpadams copy that! 😁 |
@sjoshi-jpl @viviant100 @tloubrieu-jpl ping! can we get a bucket created ASAP in Dev? This is both for @nutjob4life testing, as well as @eddiesarevalo to deploy manually for testing |
@viviant100 is fast 🏎️💨 The bucket was just created, |
When running
This is using MCP credentials from "Kion":
|
📆 08/2024 status: Work continues. On schedule to have a deployed NPM project by end of sprint. |
@sjoshi-jpl is helping on that. Developers can not PUT to s3 buckets. We will need support from SAs on that. |
Working "by hand", finally have first success using In order to still make a "proof of concept", I'll work next to see if I can hook up CloudFront. Meanwhile work on OIDC continues in parallel. |
CloudFront update: I'm not exactly sure what's wrong. In CloudFront instance But visiting https://pds-sit.mcp.nasa.gov/portal gives <Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>2RZ44QYTN6MSYYXB</RequestId>
<HostId>
tqqqiPJRIWD96jInhV7IcHLzl0KpPy3MD+GjnUMoRh2XU9zVHb/ELh2KA3X0bFCGI1MzYkMtYe8=
</HostId>
</Error> Gonna need some AWS experts to chime in 🙏 @viviant100 @sjoshi-jpl @tloubrieu-jpl |
Thanks to @viviant100 in this thread I can get closer—but thanks to JPL Cyber Security I can't actually access VPN (or even public |
Okay, once again kudos to @viviant100 for getting things configured. I'm happy to report that visiting https://pds-sit.mcp.nasa.gov/portal/ (note you must use the trailing Next steps are to ① use a more recent update to the |
@anilnatha @eddiesarevalo I've updated my local In In In
Ideas? Thanks in advance! |
Thanks @eddiesarevalo for your help 🎉 The next issue now is: when you visit https://pds-sit.mcp.nasa.gov/portal/ the line This was working before, so I think something might've changed |
Waiting for @sjoshi-jpl regarding the status of the ODC authentication. Will see that next week. |
📆 09/2024 status: delayed several sprints working out OIDC privileges. operations task. no impact on delivery. |
Calling this phase completed. Moving remaining sub-tasks to B15.1 to work with Drupal CICD |
💡 Description
Follow on to #67
Laying the groundwork for a future roundup requirement, let's create a new GitHub Action in a repo using NPM and test our what we want/need in order to support it.
For now, let's just build out the branch testing, unstable, and stable deliveries:
branch-cicd.yaml - install dependencies, build, verify success:
unstable-cicd.yaml - install dependencies, build, deploy to dev npm (NOTE: requires package.json to already be updated as indicated in README):
npm publish --tag beta
stable-cicd.yaml - install dependencies, build, deploy to dev npm (NOTE: requires package.json to already be updated as indicated in README):
npm publish
Sub-tasks
The text was updated successfully, but these errors were encountered: