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

SCV-459 Migration to Emerald (work in progress) #287

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

sturufous
Copy link
Contributor

I'm adding this pull request at Wade's request to improve the visibility of my work.

@sturufous sturufous requested a review from WadeBarnes July 5, 2024 23:05
@sturufous sturufous marked this pull request as ready for review August 20, 2024 21:02
Copy link
Member

@WadeBarnes WadeBarnes left a comment

Choose a reason for hiding this comment

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

Please see my comments on this PR; bcgov#9 (review). I have the same concerns with the changes made here.

I'm very concerned that the build processes used in the manage scripts and in the GitHub workflows are diverging. This leads to inconsistencies between the code and images running on the developer's machine, compared to what's built and deployed to the deployment environments. This WILL lead to confusion in the future and the "works on my machine" issues that we're trying to avoid by using containers in the first place. To put is simply, the container builds should be consistent so what's running on a developers machine is basically identical to what's being deployed.

- name: Checkout Repo
uses: actions/checkout@v4
with:
ref: SCV-415 # Specifies the branch to checkout
Copy link
Member

Choose a reason for hiding this comment

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

This hard coded branch does not exist in the main repo.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a temporary solution that allows me to test the Pre-download functionality that only exists in my own repo at the moment. We can wait to merge until this is finalized.

api/Dockerfile Outdated
Copy link
Member

Choose a reason for hiding this comment

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

Dockerfiles should live in the docker folder.

username: ${{ secrets.ARTIFACTORY_USERNAME }}
password: ${{ secrets.ARTIFACTORY_PASSWORD }}

- name: Checkout Schema Spy Repo
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- name: Checkout Schema Spy Repo
- name: Checkout Backup-Container Repo

uses: actions/checkout@v4
with:
repository: BCDevOps/backup-container.git
ref: master
Copy link
Member

Choose a reason for hiding this comment

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

The ref should be using a tagged version of the backup-container rather than the master branch.

- name: Checkout Repo
uses: actions/checkout@v4
with:
ref: SCV-415 # Specifies the branch to checkout
Copy link
Member

Choose a reason for hiding this comment

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

This hard coded branch does not exist in the main repo.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a temporary solution that allows me to test the Pre-download functionality that only exists in my own repo at the moment. We can wait to merge until this is finalized.

@@ -0,0 +1,10 @@
FROM centos/nodejs-10-centos7:10
Copy link
Member

Choose a reason for hiding this comment

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

This should be using node 12 and it should not be hard coded.

Copy link
Member

Choose a reason for hiding this comment

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

Dockerfiles should live in the docker folder.

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