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

MAS Patches #120

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

MAS Patches #120

wants to merge 1 commit into from

Conversation

riprasad
Copy link
Member

MAS Jenkins instances doesn't have node installed. hence cannot fetch App name from package.json. This change provides flexibility to:-

  • provide APP_NAME, SERVER_NAME, and DIST_DIR from parent pr_check.sh script
  • push images to to RHOAS quay org

export APP_NAME=$(node -e "console.log(require(\"${WORKSPACE:-.}${APP_DIR:-}/package.json\").insights.appname)")
export CONTAINER_NAME="$APP_NAME-build-main"
# Flexibilty to provide APP_NAME from pr_check.sh parent file.
export APP_NAME=${APP_NAME:=$(node -e "console.log(require(\"${NODE_ROOT}/package.json\").insights.appname)")}
Copy link
Member Author

Choose a reason for hiding this comment

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

MAS Jenkins instances doesn;t have node installed. so the pipeline fails at this step.

DOCKER_CONF="$PWD/.docker"
mkdir -p "$DOCKER_CONF"

if [ $QUAY_ORG == "rhoas" ] ; then
Copy link
Member Author

Choose a reason for hiding this comment

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

All our images are in RHOAS org, so we want to push our images there.

@@ -83,6 +117,9 @@ docker run -i --name $CONTAINER_NAME \
-e SERVER_NAME=$SERVER_NAME \
-e INCLUDE_CHROME_CONFIG \
-e CHROME_CONFIG_BRANCH \
-e APP_NAME=$APP_NAME \
Copy link
Member Author

Choose a reason for hiding this comment

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

Flexibility to specify APP_NAME, SERVER_NAME and DIST_DIR from parent pr_check.sh file.
related PR: https://gitlab.cee.redhat.com/insights-platform/frontend-build-container/-/merge_requests/24

@riprasad riprasad marked this pull request as draft February 10, 2023 12:54
@riprasad riprasad marked this pull request as ready for review February 10, 2023 12:55
@riprasad
Copy link
Member Author

@adamrdrew Please review

@adamrdrew
Copy link
Collaborator

I will take a look at this today. Thanks!

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