CentOS / container-pipeline-service

Code, infrastructure and deployment backend for the CentOS Container Pipeline backing up build system for registry.centos.org
https://registry.centos.org
GNU General Public License v3.0
49 stars 27 forks source link

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

Open navidshaikh opened 6 years ago

navidshaikh commented 6 years ago

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 dharmit@redhat.com -S smtp=smtp://smtp.redhat.com -s 'FAILED: Container build 192.168.122.182:5000/jboss/keycloak-ha-postgres:latest has failed' shahdharmit@gmail.com
[Pipeline] }
[Pipeline] // node
[Pipeline] }
[Pipeline] // podTemplate
[Pipeline] End of Pipeline
ERROR: script returned exit code 1
Finished: FAILURE