Skip to content

Conversation

@jadudm
Copy link
Contributor

@jadudm jadudm commented Nov 17, 2025

JIRA Ticket:
BB2-4232

What Does This PR Do?

Typing things over
and over and over, please
automate the things

This PR:

  • Moves msls-local into its own, top-level directory, as it is a stand-alone (albeit local-only) application
  • Adds targets to the top-level Makefile called build-local and run-local
  • Adds a Makefile to dev-local to support building and running the application
  • Adds support scripts (in Bash) to dev-local
  • Adds a new Dockerfile for the local development
  • Updates the local docker compose for local development

The goal is to be able to do the following:

kion f <your-alias-here>
make build-local
make run-local auth=live bfd=test

and be up-and-running with a local dev stack.

What Should Reviewers Watch For?

"On my machine...," I can stand up the stack under various configurations, and (perhaps most importantly), for live tests against test and sbx, can run all unit tests as well as navigate the test client for v2 and v3.

There may be further work with this local stack on the local/mock configuration, and future opportunity around integration of the Selenium tests.

If you follow the steps above/in the README in dev-local, and have a local dev experience that doesn't "just work," or worse, yields an application that is misconfigured or misbehaves in some way, then raise a 🎏 .

Validation

Try it. Specifically:

  1. Try running the commands.
  2. Interact with the stack as you normally would.
  3. Try using the debugger.

What Security Implications Does This PR Have?

None. This is strictly for local development.

Any Migrations?

No migrations.

This will configure and launch a stack. It isn't grabbing some things correctly, because of some more env-specific configuration that needs to be done. However, it's a solid start.
@jadudm jadudm marked this pull request as draft November 17, 2025 16:03
This worked for test. There is now more cleanup.

There's a notional split between "setting up to run" and "getting the variables into the container."

This moves all the work out of the container. It could, perhaps, all be moved into the container if the correct env was passed for secrets gathering?
@jadudm jadudm marked this pull request as ready for review November 17, 2025 21:59
@JamesDemeryNava
Copy link
Contributor

JamesDemeryNava commented Nov 18, 2025

@jadudm does this work assume you have an account number entered in your kion.yml? If so, what account number do I need in there? If I enter the account number for bluebutton-non-prod, will I still be able to test against SBX?

@JamesDemeryNava
Copy link
Contributor

JamesDemeryNava commented Nov 18, 2025

I get a 400 Invalid username or password. after updating my .kion.yml. I did just change my EUA password, I wonder if that's why. Could also be the github issues.

@JamesDemeryNava
Copy link
Contributor

Getting a 403 error now (Unable to generate short-term access keys for the requested role. Verify the role exists and you have sufficient permissions to access it.), could you point me towards you Confluence page on how you set up your kion.yml specifically?

Copy link
Contributor

@jimmyfagan jimmyfagan left a comment

Choose a reason for hiding this comment

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

A few comments and questions, but overall this seems to work well. Continuing a little testing, but in the meantime want to submit my initial review. Is it accurate that the ENV=test in the PR description should actually be bfd=test?

Copy link
Contributor

@jimmyfagan jimmyfagan left a comment

Choose a reason for hiding this comment

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

Just another batch of comments/questions coming out of a bit more testing.

@jadudm jadudm marked this pull request as draft November 19, 2025 17:41
@jadudm
Copy link
Contributor Author

jadudm commented Nov 20, 2025

A few comments and questions, but overall this seems to work well. Continuing a little testing, but in the meantime want to submit my initial review. Is it accurate that the ENV=test in the PR description should actually be bfd=test?

@jadudm jadudm closed this Nov 20, 2025
@jadudm jadudm reopened this Nov 20, 2025
@jadudm
Copy link
Contributor Author

jadudm commented Nov 20, 2025

Oops. Accidentally closed the PR. Reopened.

Copy link
Contributor

@jimmyfagan jimmyfagan left a comment

Choose a reason for hiding this comment

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

A few more minor comments, we can probably work through whatever is left in a huddle sometime today.

@jimmyfagan jimmyfagan marked this pull request as ready for review November 20, 2025 19:00
Copy link
Contributor

@jimmyfagan jimmyfagan left a comment

Choose a reason for hiding this comment

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

Works for me, with and without daemon=1 and also works on restart without having to take everything all the way down to start from scratch. I'll consider this approved, though this is likely the type of review that would warrant at least one more approval to ensure it works for other people too.

Comment on lines +15 to +22
msls:
image: msls-local:latest
platform: linux/amd64
command: /code/start-local.sh
ports:
- "8080:8080"
volumes:
- ../msls-local:/code
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm seeing that msls container starts up whether or not auth==mock. Maybe that's harmless enough though, not a blocker for approval, just pointing it out in case you want to consider addressing that.

@clewellyn-nava clewellyn-nava merged commit f03b648 into master Nov 24, 2025
8 checks passed
@clewellyn-nava clewellyn-nava deleted the jadudm-BB-4232 branch November 24, 2025 18:06
@JamesDemeryNava JamesDemeryNava restored the jadudm-BB-4232 branch December 3, 2025 15:06
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.

6 participants