Hide Forgot
Description of problem: No npm install command runs or no other feedback with what I can do to achieve a different outcome (the build running) Version-Release number of selected component (if applicable): https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=485439 How reproducible: Import the image, set as builder image and perform the build. Actual results: I0405 14:47:50.219939 1 builder.go:57] Master version "v3.2.0.6", Builder version "v3.2.0.6" I0405 14:47:50.226244 1 builder.go:145] Running build with cgroup limits: api.CGroupLimits{MemoryLimitBytes:536870912, CPUShares:61, CPUPeriod:100000, CPUQuota:100000, MemorySwap:536870912} I0405 14:47:50.232504 1 sti.go:195] The value of ALLOWED_UIDS is [1-] I0405 14:47:50.232539 1 sti.go:203] The value of DROP_CAPS is [KILL,MKNOD,SETGID,SETUID,SYS_CHROOT] I0405 14:47:50.234747 1 docker.go:352] Image "172.30.60.197:5000/sspeiche-microservices/nodejs4@sha256:bd80a77353ec6b3310ad4fa45aeed0a560d40c8c950341f2b7ffdd0fd53cf1f5" not available locally, pulling ... I0405 14:47:50.234773 1 docker.go:374] Pulling Docker image 172.30.60.197:5000/sspeiche-microservices/nodejs4@sha256:bd80a77353ec6b3310ad4fa45aeed0a560d40c8c950341f2b7ffdd0fd53cf1f5 ... I0405 14:47:51.137083 1 sti.go:222] Creating a new S2I builder with build config: "Builder Image:\t\t\t172.30.60.197:5000/sspeiche-microservices/nodejs4@sha256:bd80a77353ec6b3310ad4fa45aeed0a560d40c8c950341f2b7ffdd0fd53cf1f5\nSource:\t\t\t\tfile:///tmp/s2i-build684327455/upload/src\nOutput Image Tag:\t\tsspeiche-microservices/frontend-28:3876a1d9\nEnvironment:\t\t\tOPENSHIFT_BUILD_SOURCE=https://github.com/openshift/nodejs-ex.git,OPENSHIFT_BUILD_NAME=frontend-28,OPENSHIFT_BUILD_NAMESPACE=sspeiche-microservices\nIncremental Build:\t\tdisabled\nRemove Old Build:\t\tdisabled\nBuilder Pull Policy:\t\tif-not-present\nPrevious Image Pull Policy:\talways\nQuiet:\t\t\t\tdisabled\nLayered Build:\t\t\tdisabled\nWorkdir:\t\t\t/tmp/s2i-build684327455\nDocker NetworkMode:\t\tcontainer:16813e30a3b4d74f4893fb394693021d6257f392bad3fd6f7b10ea91415b5823\nDocker Endpoint:\t\tunix:///var/run/docker.sock\nDocker Pull Config:\t\t/var/run/secrets/openshift.io/pull\nDocker Pull User:\t\tserviceaccount\n" I0405 14:47:51.139052 1 docker.go:356] Using locally available image "172.30.60.197:5000/sspeiche-microservices/nodejs4@sha256:bd80a77353ec6b3310ad4fa45aeed0a560d40c8c950341f2b7ffdd0fd53cf1f5" I0405 14:47:51.145948 1 docker.go:356] Using locally available image "172.30.60.197:5000/sspeiche-microservices/nodejs4@sha256:bd80a77353ec6b3310ad4fa45aeed0a560d40c8c950341f2b7ffdd0fd53cf1f5" W0405 14:47:51.145978 1 docker.go:474] Image does not contain a value for the io.openshift.s2i.scripts-url label I0405 14:47:51.146018 1 sti.go:140] Preparing to build sspeiche-microservices/frontend-28:3876a1d9 I0405 14:47:51.150252 1 source.go:197] Downloading "https://github.com/openshift/nodejs-ex.git" ... I0405 14:47:51.446722 1 source.go:208] Cloning source from https://github.com/openshift/nodejs-ex.git I0405 14:47:51.868288 1 cleanup.go:23] Removing temporary directory /tmp/s2i-build684327455 I0405 14:47:51.868327 1 fs.go:156] Removing directory '/tmp/s2i-build684327455' F0405 14:47:51.870107 1 builder.go:204] Error: build error: failed to install [assemble run] Expected results: Build runs (npm install). Additional info:
key issue is this: Image does not contain a value for the io.openshift.s2i.scripts-url label since there's no label, s2i doesn't know where to find the assemble and run scripts. https://github.com/openshift/sti-base/blob/master/Dockerfile#L10
I didn't manage to reproduce the bug.
I confirmed from docker pull setup on OpenShift 3.2.0.41 that this works: docker pull brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/rhscl_beta/nodejs-4-rhel7 docker tag brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/rhscl_beta/nodejs-4-rhel7 registry.dev-preview-int.openshift.com/sspeiche-microservices/nodejs-4-rhel7 docker push registry.dev-preview-int.openshift.com/sspeiche-microservices/nodejs-4-rhel7 oc get is nodejs-4-rhel7 -o yaml apiVersion: v1 kind: ImageStream metadata: creationTimestamp: 2016-05-04T16:25:23Z generation: 1 name: nodejs-4-rhel7 namespace: sspeiche-microservices resourceVersion: "4016395" selfLink: /oapi/v1/namespaces/sspeiche-microservices/imagestreams/nodejs-4-rhel7 uid: cd75a49b-1214-11e6-abb2-0ada84b8265d spec: {} status: dockerImageRepository: 172.30.94.234:5000/sspeiche-microservices/nodejs-4-rhel7 tags: - items: - created: 2016-05-04T16:25:23Z dockerImageReference: 172.30.94.234:5000/sspeiche-microservices/nodejs-4-rhel7@sha256:5488d05f38964d490453fad5b2303da247557cde36a7a8a70bafb6e333218ce2 generation: 1 image: sha256:5488d05f38964d490453fad5b2303da247557cde36a7a8a70bafb6e333218ce2 tag: latest