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

Add registry.centos.org in docker config on all builder nodes #628

Open
navidshaikh opened this issue Sep 13, 2018 · 0 comments
Open

Add registry.centos.org in docker config on all builder nodes #628

navidshaikh opened this issue Sep 13, 2018 · 0 comments
Labels

Comments

@navidshaikh
Copy link
Collaborator

Other base images are referenced from docker.io, or the build image stage might even fail if referenced base image is absent. For eg: jboss/keycloak-postgres is present only in r.c.o

OpenShift Build pipeline/jboss-keycloak-ha-postgres-latest-1 from https://github.com/jboss-dockerfiles/keycloak
[Pipeline] properties
[Pipeline] podTemplate
[Pipeline] {
[Pipeline] node
Still waiting to schedule task
Waiting for next available executor on ccp-pipeline-master
Running on ccp-pipeline-master-t3nvf-gbxp1 in /tmp/workspace/pipeline/pipeline-jboss-keycloak-ha-postgres-latest
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Checkout Source)
[Pipeline] checkout
Cloning the remote Git repository
Using shallow clone
Cloning repository https://github.com/jboss-dockerfiles/keycloak
 > git init /tmp/workspace/pipeline/pipeline-jboss-keycloak-ha-postgres-latest/jboss-keycloak-ha-postgres-latest # timeout=10
Fetching upstream changes from https://github.com/jboss-dockerfiles/keycloak
 > git --version # timeout=10
 > git fetch --tags --progress https://github.com/jboss-dockerfiles/keycloak +refs/heads/*:refs/remotes/origin/* --depth=1 # timeout=10
 > git config remote.origin.url https://github.com/jboss-dockerfiles/keycloak # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git config remote.origin.url https://github.com/jboss-dockerfiles/keycloak # timeout=10
Fetching upstream changes from https://github.com/jboss-dockerfiles/keycloak
 > git fetch --tags --progress https://github.com/jboss-dockerfiles/keycloak +refs/heads/*:refs/remotes/origin/* --depth=1 # timeout=10
 > git rev-parse origin/master^{commit} # timeout=10
Checking out Revision 4b7208732d0b96b266e8454033ba56f5c3150985 (origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 4b7208732d0b96b266e8454033ba56f5c3150985
Commit message: "Updated to 4.4.0.Final"
First time build. Skipping changelog.
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Prebuild source repo)
[Pipeline] echo
Prebuild is not requested
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Lint the Dockerfile)
[Pipeline] dir
Running in /tmp/workspace/pipeline/pipeline-jboss-keycloak-ha-postgres-latest/jboss-keycloak-ha-postgres-latest/server-ha-postgres
[Pipeline] {
[server-ha-postgres] Running shell script
+ dockerfile_lint Dockerfile
[Pipeline] sh
[server-ha-postgres] Running shell script
+ cat result

# Analyzing Dockerfile


--------ERRORS---------

ERROR: Required LABEL name/key 'Name' is not defined. 
Reference -> http://docs.projectatomic.io/container-best-practices/#_recommended_labels_for_your_project


ERROR: Required LABEL name/key 'Version' is not defined. 
Reference -> http://docs.projectatomic.io/container-best-practices/#_recommended_labels_for_your_project



--------INFO---------

INFO: There is no 'EXPOSE' instruction. Without exposed ports how will the service of the container be accessed?. 
Reference -> https://docs.docker.com/engine/reference/builder/#expose


[Pipeline] sh
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Build Docker image)
Running in /tmp/workspace/pipeline/pipeline-jboss-keycloak-ha-postgres-latest/jboss-keycloak-ha-postgres-latest/server-ha-postgres
[Pipeline] dir
[Pipeline] {
[Pipeline] sh
[server-ha-postgres] Running shell script
+ docker build --no-cache -t jboss/keycloak-ha-postgres:latest -f Dockerfile ./
Sending build context to Docker daemon 6.656 kB

Step 1/2 : FROM jboss/keycloak-postgres:4.4.0.Final
Trying to pull repository 192.168.122.182:5000/jboss/keycloak-postgres ... 
Pulling repository 192.168.122.182:5000/jboss/keycloak-postgres
Trying to pull repository docker.io/jboss/keycloak-postgres ... 
repository docker.io/jboss/keycloak-postgres not found: does not exist or no pull access
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[Pipeline] // stage
[Pipeline] sh
[pipeline-jboss-keycloak-ha-postgres-latest] Running shell script
+ echo -e 'Build request for 192.168.122.182:5000/jboss/keycloak-ha-postgres:latest was unsuccessful'
+ mail -r [email protected] -S smtp=smtp://smtp.redhat.com -s 'FAILED: Container build 192.168.122.182:5000/jboss/keycloak-ha-postgres:latest has failed' [email protected]
[Pipeline] }
[Pipeline] // node
[Pipeline] }
[Pipeline] // podTemplate
[Pipeline] End of Pipeline
ERROR: script returned exit code 1
Finished: FAILURE
@bamachrn bamachrn added the bug label Dec 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants