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

Added docker build & push scripts to package.json #17

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sparksam
Copy link
Contributor

@sparksam sparksam commented Jan 21, 2025

Added docker build & push scripts to package.json

@sparksam sparksam requested a review from a team January 21, 2025 18:44

aws ecr get-login-password --region "$AWS_REGION" | docker login --username AWS --password-stdin "$AWS_ACCOUNT".dkr.ecr."$AWS_REGION".amazonaws.com
docker build -t "$DOCKER_IMAGE" .
aws ecr describe-repositories --repository-names setup-app --profile $AWS_PROFILE --region $AWS_REGION || aws ecr create-repository --repository-name setup-app --profile "$AWS_PROFILE" --region "$AWS_REGION"
Copy link
Contributor

Choose a reason for hiding this comment

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

🤔 -- This kind of conflicts (or at least muddies the water IMHO) with the "ownership" of creating repositories in the IAC here. Are we okay with that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In the TOA we have the repository creation, image build and push as part of the npm scripts, which I assume aims to easy build and deployment for devs, but we can bring it up tomorrow with the team and see how we want to go about it and how that can work with future CI-CD pipelines.

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