Overview
Build the image, configure the Docker host, and push to the target registry for the selected environment.
- Connect to CyberArk.
- Connect to Host
cont16059. cd IMAGErm -rf <SERVICE-NAME-SHARED-BY-DEV-TEAM>-
Clone the Repository as shared by Dev/Admin:
git clone git@extio_git_srv1/<SERVICE-NAME>.git # OR git clone git@extio_git_srv2/<SERVICE-NAME>.git cd <MODULE-NAME> # Example: cd az-some-moduleClone issues (SSH/Network)
! Clone Issues? If “Host key verification failed”, confirm SSH keys and host trust; if “Connection timed out”, check firewall or use the alternate host; usessh -v git@extio_git_srv1for verbose debugging. -
Switch to the latest branch:
git branch --all git checkout <LATEST-BRANCH-NAME>! If the branch is not found, confirm the exact name with Dev/Admin and rungit fetch --all. -
Export the Docker Registry Host (see Table A):
export DOCKER_HOST=tcp://<DOCKER-HOST-IP>:2375Environment variable not set?
i Verify withecho $DOCKER_HOST; if empty, re-run export and add to shell profile for persistence (e.g.,~/.bashrc). -
Run Maven build & push:
mvn clean package fabric8:build fabric8:push -DskipTests! Build failures may indicate network/proxy issues, Docker daemon problems (docker info), disk space (df -h), or incompatible Maven/Java versions. - If it shows BUILD SUCCESS, proceed to Part 2; otherwise, escalate to Dev/Admin with logs.