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

psmdb-image-preparation #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

nmarukovich
Copy link
Contributor

No description provided.

@nmarukovich nmarukovich requested a review from jvpasinatto July 4, 2024 12:37
@@ -0,0 +1,59 @@
repo='percona'

Choose a reason for hiding this comment

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

Can we change the extension to .sh and put the shebang #!/usr/bin/env bash?

Comment on lines +12 to +15
export PSMDB_IMAGES_PROJECT_ID="5e627846b6bf136294e8bb8b"
export PSMDB_OPERATOR_PROJECT_ID="5e62470102235d3f505f60e3"
export PSMDB_IMAGES_PROJECT_USER="redhat-isv-containers+5e627846b6bf136294e8bb8b-robot"
export PSMDB_OPERATOR_PROJECT_USER="redhat-isv-containers+5e62470102235d3f505f60e3-robot"

Choose a reason for hiding this comment

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

Are these private?
Also ,we can simplify to PSMDB_IMAGES_PROJECT_USER="redhat-isv-containers+$PSMDB_IMAGES_PROJECT_ID-robot" and the same for the operator

operator_image_id=`docker images | grep "${release} " | awk '{print $3}'`
echo $operator_image_id
docker tag $operator_image_id quay.io/redhat-isv-containers/${PSMDB_OPERATOR_PROJECT_ID}:${release} && docker push quay.io/redhat-isv-containers/${PSMDB_OPERATOR_PROJECT_ID}:${release}
preflight check container --platform=linux/amd64 quay.io/redhat-isv-containers/${PSMDB_OPERATOR_PROJECT_ID}:${release} --docker-config=/Users/marukovich/.docker/config.json --submit --pyxis-api-token=$PYXIS_API_TOKEN --certification-project-id=$PSMDB_OPERATOR_PROJECT_ID

Choose a reason for hiding this comment

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

I think we should create an env var for the docker config file. Please check the same in the cmds below

@@ -0,0 +1,59 @@
repo='percona'
psmdb-operator="percona-server-mongodb-operator"

Choose a reason for hiding this comment

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

change to psmdb_operator here and in line 27

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