Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save jwmatthews/4b2318aec891bda972c532f330a5d323 to your computer and use it in GitHub Desktop.

Select an option

Save jwmatthews/4b2318aec891bda972c532f330a5d323 to your computer and use it in GitHub Desktop.

Container build and run of semver workflow

Prereqs

Install Node 18 and Node 20 (assumes nvm)

  • nvm install 18 && nvm exec 18 bash -c 'export NODE_ENV=development && corepack enable'
  • nvm install 20 && nvm exec 20 bash -c 'export NODE_ENV=development && corepack enable'

corepack enable

  • It is important you have run the above with corepack enable for the node versions used

Build Container

  1. git clone https://github.com/pranavgaikwad/semver-ansible.git
  2. cd pf-tools-builder
  3. build the image
podman build --no-cache \
     --build-arg PF_REACT_TO=v6.4.1 \
     --build-arg PF_REACT_FROM=v5.3.3 \
     --build-arg PF_DEP_FROM=v5.3.0 \
     --build-arg PF_DEP_TO=v6.4.0 \
     --build-arg TO_NODE_VERSION=20 \
     --build-arg FROM_NODE_VERSION=18 \
     --build-arg FROM_INSTALL_CMD="corepack yarn install" \
     -f Containerfile \
     -t pf-tools-from533-$(date +%Y%m%d) .

Run Container

Checkout app to run against

Run container

export IMAGE="pf-tools-from533-20260504:latest"
export GCP_PROJECT_ID="$ANTHROPIC_VERTEX_PROJECT_ID"
export GCP_LOCATION="$CLOUD_ML_REGION"
time ./run_container.sh --migrate patternfly6-migration-bench --image ${IMAGE} 2>&1 | tee run_container_pf_tools_from_$(date +%Y%m%d).log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment