Code Monkey home page Code Monkey logo

s2irun's Introduction

S2IRun

Gitpod ready-to-code License Go Report Card S2IRun release Docker Pulls

Source to image is a command toolkit and workflow for building reproducible container images from source code. S2IRun is the instance that executes the s2i build process, and can be containerized so that it can run in any container environment. S2IRun produces ready-to-run images by injecting source code into a container image and letting the container prepare that source code for execution.

You've just built and run a new container image from source code in a git repository, no Dockerfile necessary.

Quick start

Prerequisites

Start

  1. Create your own fork of devops-java-sample, this is a web project with java8.

  2. Clone S2IRun repo to your machine

  3. Write a config file to set parameters used in build:

    {
      "builderImage": "kubesphere/java-8-centos7:v2.1.0",
      "pushAuthentication": {
        "username": "USERNAME_REPLACE",
        "password": "PASSWORD_REPLACE"
      },
      "imageName": "USERNAME_REPLACE/s2irun-sample",
      "tag": "USERNAME_REPLACE/s2irun-sample:tag",
      "builderPullPolicy": "if-not-present",
      "export": true,
      "sourceUrl": "https://github.com/GIT_USERNAME_REPLACE/devops-java-sample.git",	                                  
    }
  4. To build image in right, you'll need to set environment variables:

    export S2I_CONFIG_PATH=PATH/TO/config.json
  5. Run following command to start build.

    go run cmd/main.go --v=4 --logtostderr=true
    

    Process details:

    ​ 1. It will pull image that defined in field builderImage.

    ​ 2. clone source code.

    ​ 3. start build process

    ​ 4. after build completed, it will push ready-to-run image

  6. Finally, it will push image to your docker registry, please check it.

About more

s2irun's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

s2irun's Issues

lack image registry in deployments with dockerhub-secret in ks project

Describe the bug
image

image

image

To Reproduce
Steps to reproduce the behavior:

  1. create service in project
  2. setup image with dockerhub
  3. but, there is no registry in generated deployment

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • ks 3.4.1
  • kse 3.5.0

Additional context
Add any other context about the problem here.

The private image repository is ecr, pulling image fail

I0607 03:51:55.995263 1 docker.go:502] Image "xxx.dkr.ecr.us-east-1.amazonaws.com/kubesphere/java-8-centos7:v3.2.0" not available locally, pulling ... I0607 03:51:56.013969 1 docker.go:583] pulling image error : Error response from daemon: Head "https://xxx.dkr.ecr.us-east-1.amazonaws.com/v2/kubesphere/java-8-centos7/manifests/v3.2.0": no basic auth credentials I0607 03:51:56.014497 1 docker.go:473] error inspecting image xxx.dkr.ecr.us-east-1.amazonaws.com/kubesphere/java-8-centos7:v3.2.0: Error: No such image: xxx.dkr.ecr.us-east-1.amazonaws.com/kubesphere/java-8-centos7:v3.2.0 I0607 03:51:56.014949 1 docker.go:502] Image "xxx.dkr.ecr.us-east-1.amazonaws.com/kubesphere/java-8-centos7:v3.2.0" not available locally, pulling ... I0607 03:51:56.032205 1 docker.go:583] pulling image error : Error response from daemon: Head "https://xxx.dkr.ecr.us-east-1.amazonaws.com/v2/kubesphere/java-8-centos7/manifests/v3.2.0": no basic auth credentials I0607 03:51:56.032636 1 docker.go:473] error inspecting image xxx.dkr.ecr.us-east-1.amazonaws.com/kubesphere/java-8-centos7:v3.2.0: Error: No such image: xxx.dkr.ecr.us-east-1.amazonaws.com/kubesphere/java-8-centos7:v3.2.0 E0607 03:51:56.032684 1 errors.go:297] An error occurred: unable to get xxx.dkr.ecr.us-east-1.amazonaws.com/kubesphere/java-8-centos7:v3.2.0 E0607 03:51:56.032696 1 errors.go:298] Suggested solution: check image name, or if using a local image set the builder image pull policy to "never" I0607 03:51:56.032703 1 errors.go:300] Details: Error response from daemon: Head "https://xxx.dkr.ecr.us-east-1.amazonaws.com/v2/kubesphere/java-8-centos7/manifests/v3.2.0": no basic auth credentials E0607 03:51:56.032713 1 errors.go:302] If the problem persists consult the docs at https://kubesphere.io/docs/v2.1/zh-CN/quick-start/source-to-image/ Open an issue at https://github.com/kubesphere/s2irun/issues providing us with a log from your build using log output level 3.

How do i download the dependencies and run the code

I have cloned the code。After that should i download all dependencies by enter glide install or gilde up?I have ented glide install.But there are some errors.As follow:
[INFO] --> Found desired version locally sigs.k8s.io/controller-runtime 8941d18f48f7f27a939031df9bb891f733cc6726!
[INFO] --> Fetching github.com/docker/distribution.
[INFO] --> Fetching github.com/docker/docker.
[INFO] --> Fetching github.com/docker/go-connections.
[INFO] --> Fetching github.com/docker/go-units.
[INFO] --> Fetching github.com/docker/libtrust.
[INFO] --> Fetching github.com/go-logr/logr.
[INFO] --> Fetching github.com/gogo/protobuf.
[INFO] --> Fetching github.com/golang/glog.
[INFO] --> Fetching github.com/golang/protobuf.
[INFO] --> Fetching github.com/google/gofuzz.
[INFO] --> Fetching github.com/googleapis/gnostic.
[INFO] --> Fetching github.com/inconshreveable/mousetrap.
[INFO] --> Fetching github.com/json-iterator/go.
[INFO] --> Fetching github.com/Microsoft/go-winio.
[INFO] --> Fetching github.com/modern-go/reflect2.
[INFO] --> Fetching github.com/Nvveen/Gotty.
[INFO] --> Fetching github.com/opencontainers/go-digest.
[INFO] --> Fetching github.com/opencontainers/image-spec.
[INFO] --> Fetching github.com/opencontainers/runc.
[INFO] --> Fetching github.com/spf13/pflag.
[WARN] Unable to checkout github.com/golang/protobuf
[ERROR] Update failed for github.com/golang/protobuf: Unable to get repository
[INFO] --> Fetching golang.org/x/crypto.
[WARN] Unable to checkout github.com/gogo/protobuf
[ERROR] Update failed for github.com/gogo/protobuf: Unable to get repository
[INFO] --> Fetching golang.org/x/net.
[WARN] Unable to checkout github.com/go-logr/logr
[ERROR] Update failed for github.com/go-logr/logr: Unable to get repository
[INFO] --> Fetching golang.org/x/oauth2.
[WARN] Unable to checkout golang.org/x/oauth2
[ERROR] Update failed for golang.org/x/oauth2: Cannot detect VCS
[INFO] --> Fetching golang.org/x/sys.
[WARN] Unable to checkout github.com/golang/glog
[ERROR] Update failed for github.com/golang/glog: Unable to get repository
[INFO] --> Fetching golang.org/x/text.
[WARN] Unable to checkout golang.org/x/text
[ERROR] Update failed for golang.org/x/text: Cannot detect VCS
[INFO] --> Fetching golang.org/x/time.
[WARN] Unable to checkout golang.org/x/time
[ERROR] Update failed for golang.org/x/time: Cannot detect VCS
[INFO] --> Fetching google.golang.org/appengine.
[WARN] Unable to checkout google.golang.org/appengine
[ERROR] Update failed for google.golang.org/appengine: Cannot detect VCS
[INFO] --> Fetching k8s.io/apimachinery.
[WARN] Unable to checkout k8s.io/apimachinery
[ERROR] Update failed for k8s.io/apimachinery: Cannot detect VCS
[INFO] --> Fetching k8s.io/klog.
[WARN] Unable to checkout k8s.io/klog
[ERROR] Update failed for k8s.io/klog: Cannot detect VCS
[INFO] --> Fetching sigs.k8s.io/yaml.
[WARN] Unable to checkout sigs.k8s.io/yaml
[ERROR] Update failed for sigs.k8s.io/yaml: Cannot detect VCS
[WARN] Unable to checkout github.com/docker/libtrust
[ERROR] Update failed for github.com/docker/libtrust: Unable to get repository
[WARN] Unable to checkout github.com/docker/docker
[ERROR] Update failed for github.com/docker/docker: Unable to get repository
[WARN] Unable to checkout github.com/json-iterator/go
[ERROR] Update failed for github.com/json-iterator/go: Unable to get repository
[WARN] Unable to checkout github.com/docker/go-connections
[ERROR] Update failed for github.com/docker/go-connections: Unable to get repository
[WARN] Unable to checkout github.com/docker/go-units
[ERROR] Update failed for github.com/docker/go-units: Unable to get repository
[WARN] Unable to checkout github.com/docker/distribution
[ERROR] Update failed for github.com/docker/distribution: Unable to get repository
[WARN] Unable to checkout github.com/googleapis/gnostic
[ERROR] Update failed for github.com/googleapis/gnostic: Unable to get repository
[WARN] Unable to checkout github.com/modern-go/reflect2
[ERROR] Update failed for github.com/modern-go/reflect2: Unable to get repository
[WARN] Unable to checkout github.com/inconshreveable/mousetrap
[ERROR] Update failed for github.com/inconshreveable/mousetrap: Unable to get repository
[WARN] Unable to checkout github.com/Microsoft/go-winio
[ERROR] Update failed for github.com/Microsoft/go-winio: Unable to get repository
[WARN] Unable to checkout github.com/google/gofuzz
[ERROR] Update failed for github.com/google/gofuzz: Unable to get repository
[WARN] Unable to checkout github.com/opencontainers/image-spec
[ERROR] Update failed for github.com/opencontainers/image-spec: Unable to get repository
[WARN] Unable to checkout github.com/Nvveen/Gotty
[ERROR] Update failed for github.com/Nvveen/Gotty: Unable to get repository
[WARN] Unable to checkout github.com/opencontainers/go-digest
[ERROR] Update failed for github.com/opencontainers/go-digest: Unable to get repository
[WARN] Unable to checkout github.com/opencontainers/runc
[ERROR] Update failed for github.com/opencontainers/runc: Unable to get repository
[WARN] Unable to checkout github.com/spf13/pflag
[ERROR] Update failed for github.com/spf13/pflag: Unable to get repository
[WARN] Unable to checkout golang.org/x/sys
[ERROR] Update failed for golang.org/x/sys: Unable to get repository
[WARN] Unable to checkout golang.org/x/crypto
[ERROR] Update failed for golang.org/x/crypto: Unable to get repository
[WARN] Unable to checkout golang.org/x/net
[ERROR] Update failed for golang.org/x/net: Unable to get repository
[ERROR] Failed to install: Unable to get repository
Unable to get repository
Unable to get repository
Cannot detect VCS
Unable to get repository
Cannot detect VCS
Cannot detect VCS
Cannot detect VCS
Cannot detect VCS
Cannot detect VCS
Cannot detect VCS
Unable to get repository
Unable to get repository
Unable to get repository
Unable to get repository
Unable to get repository
Unable to get repository
Unable to get repository
Unable to get repository
Unable to get repository
Unable to get repository
Unable to get repository
Unable to get repository
Unable to get repository
Unable to get repository
Unable to get repository
Unable to get repository
Unable to get repository
Unable to get repository
Unable to get repository

Use S2i (War file)in the image builder of KS to configure the dockerhub secret problem

The environment is KS: v3.1.1-dirty k8s: 1.20.4

The following is in the pod log generated by the job

  I0924 14:27:25.865564 1 sti.go:718] Starting S2I Java Build .....

I0924 14:27:25.871385 1 sti.go:718] S2I source build for Gradle detected, due to presence of a *.gradle* in /tmp/src

I0924 14:27:26.059829 1 sti.go:718] Using GRADLE_OPTS '-XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:+ExitOnOutOfMemoryError'

I0924 14:27:26.060845 1 sti.go:718] Running './gradlew --no-daemon build -x test '

I0924 14:27:26.061188 1 sti.go:722] /usr/local/s2i/assemble: line 219: ./gradlew: Permission denied

I0924 14:27:26.061488 1 sti.go:718] Aborting due to error code 126 for Gradle build

I0924 14:27:26.152407 1 docker.go:1112] Waiting for container "6b10c29a21a2da19f2f8d6272ef1fa6c7004b2f2574e7aa691020bb6f0d4d241" to stop ...

I0924 14:27:26.261894 1 docker.go:1048] Removing container "6b10c29a21a2da19f2f8d6272ef1fa6c7004b2f2574e7aa691020bb6f0d4d241" ...

I0924 14:27:26.296774 1 docker.go:1058] Removed container "6b10c29a21a2da19f2f8d6272ef1fa6c7004b2f2574e7aa691020bb6f0d4d241"

I0924 14:27:26.296960 1 cleanup.go:33] Removing temporary directory /tmp/s2i396434986

I0924 14:27:26.296967 1 fs.go:302] Removing directory '/tmp/s2i396434986'

I0924 14:27:26.332214 1 s2i.go:75] Build failed

E0924 14:27:26.332245 1 errors.go:307] An error occurred: non-zero (13) exit code from kubesphere/java-8-centos7:v2.1.0

S2iBuilder push image error

Describe the bug
A clear and concise description of what the bug is.
S2ibuilder failed to push image to docerhub
It seems pushed to /library path, not my repository
To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error
    A clear and concise description of what you expected to happen.
    I0611 00:45:52.679208 1 postexecutorstep.go:396] Successfully built docker.io/library/test1:latest
    I0611 00:45:52.694123 1 docker.go:635] Begin to push image <docker.io/library/test1:latest>
    I0611 00:45:52.693949 1 docker.go:1058] Removed container "94c45ad557cdcca757524e47918ab23a9c1d3fb480433f0c26cfbd16a0b5c15f"
    I0611 00:45:55.506165 1 docker.go:674] pushing image error : denied: requested access to the resource is denied
    E0611 00:45:55.510549 1 errors.go:302] If the problem persists consult the docs at https://kubesphere.io/docs/v2.1/zh-CN/quick-start/source-to-image/ Open an issue at https://github.com/kubesphere/s2irun/issues providing us with a log from your build using log output level 3.
    I0611 00:45:55.510539 1 errors.go:300] Details: denied: requested access to the resource is denied
    I0611 00:45:55.509590 1 fs.go:302] Removing directory '/tmp/s2i706209131'
    I0611 00:45:55.509547 1 cleanup.go:33] Removing temporary directory /tmp/s2i706209131
    I0611 00:45:55.510504 1 s2i.go:75] Build failed
    E0611 00:45:55.510523 1 errors.go:297] An error occurred: unable to push docker.io/library/test1:latest
    E0611 00:45:55.510531 1 errors.go:298] Suggested solution: check image name, or check if username and password provided are corrected

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. windows]
  • Command Tool [e.g. cmd]
  • Version [e.g. v0.0.16]

Additional context
Add any other context about the problem here.

vue project build failed

I0310 14:20:23.483210       1 docker.go:800] Image sha256:94aae0fdd58a9cacb722b3ef38256bbc34c4ec4e53e0929460db925d2b1565d0 contains scripts-url set to "image:///usr/libexec/s2i"

 I0310 14:20:23.483227       1 docker.go:872] Base directory for S2I scripts is '/usr/libexec/s2i'. Untarring destination is '/tmp'.

 I0310 14:20:23.483344       1 docker.go:1038] Creating container with options {Name:"s2i_kubesphere_nodejs_8_centos7_v3_2_0_ac2d60d1" Config:{Hostname: Domainname: User: AttachStdin:false AttachStdout:true AttachStderr:false ExposedPorts:map[] Tty:false OpenStdin:true StdinOnce:true Env:[NPM_MIRROR=https://registry.npmmirror.com NPM_RUN=npm install NPM_RUN=npm run dev] Cmd:[/bin/sh -c tar -C /tmp -xf - && /usr/libexec/s2i/assemble] Healthcheck:<nil> ArgsEscaped:false Image:kubesphere/nodejs-8-centos7:v3.2.0 Volumes:map[] WorkingDir: Entrypoint:[] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal: StopTimeout:<nil> Shell:[]} HostConfig:&{Binds:[] ContainerIDFile: LogConfig:{Type: Config:map[]} NetworkMode: PortBindings:map[] RestartPolicy:{Name: MaximumRetryCount:0} AutoRemove:false VolumeDriver: VolumesFrom:[] CapAdd:[] CapDrop:[] DNS:[] DNSOptions:[] DNSSearch:[] ExtraHosts:[] GroupAdd:[] IpcMode: Cgroup: Links:[] OomScoreAdj:0 PidMode: Privileged:false PublishAllPorts:false ReadonlyRootfs:false SecurityOpt:[] StorageOpt:map[] Tmpfs:map[] UTSMode: UsernsMode: ShmSize:67108864 Sysctls:map[] Runtime: ConsoleSize:[0 0] Isolation: Resources:{CPUShares:0 Memory:0 NanoCPUs:0 CgroupParent: BlkioWeight:0 BlkioWeightDevice:[] BlkioDeviceReadBps:[] BlkioDeviceWriteBps:[] BlkioDeviceReadIOps:[] BlkioDeviceWriteIOps:[] CPUPeriod:0 CPUQuota:0 CPURealtimePeriod:0 CPURealtimeRuntime:0 CpusetCpus: CpusetMems: Devices:[] DeviceCgroupRules:[] DiskQuota:0 KernelMemory:0 MemoryReservation:0 MemorySwap:0 MemorySwappiness:<nil> OomKillDisable:<nil> PidsLimit:0 Ulimits:[] CPUCount:0 CPUPercent:0 IOMaximumIOps:0 IOMaximumBandwidth:0} Mounts:[] Init:<nil>}} ...

 I0310 14:20:23.739151       1 docker.go:1070] Attaching to container "f285924d095c0ec8296e3c52372e760749455bec2f68337eab170d7e77595e3d" ...

 I0310 14:20:23.742083       1 docker.go:1081] Starting container "f285924d095c0ec8296e3c52372e760749455bec2f68337eab170d7e77595e3d" ...

 I0310 14:20:24.791009       1 sti.go:718] ---> Installing application source ...

 I0310 14:20:25.042821       1 sti.go:718] ---> Installing all dependencies

 I0310 14:20:28.112808       1 sti.go:722] npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142

 I0310 14:20:32.050289       1 sti.go:722] npm WARN deprecated [email protected]: this library is no longer supported

 I0310 14:21:33.208235       1 sti.go:718] 

 I0310 14:21:33.208255       1 sti.go:718] > [email protected] install /opt/app-root/src/node_modules/chromedriver

 I0310 14:21:33.208262       1 sti.go:718] > node install.js

 I0310 14:21:33.208266       1 sti.go:718] 

 I0310 14:21:33.572162       1 sti.go:718] Downloading https://chromedriver.storage.googleapis.com/2.27/chromedriver_linux64.zip

 I0310 14:21:33.572188       1 sti.go:718] Saving to /tmp/chromedriver/chromedriver_linux64.zip

 I0310 14:21:34.104563       1 sti.go:718] Receiving...

 I0310 14:21:34.674640       1 sti.go:718] Received 781K...

 I0310 14:21:34.778564       1 sti.go:718] Received 1568K...

 I0310 14:21:34.840714       1 sti.go:718] Received 2352K...

 I0310 14:21:34.882097       1 sti.go:718] Received 3136K...

 I0310 14:21:34.889345       1 sti.go:718] Received 3259K total.

 I0310 14:21:34.889772       1 sti.go:718] Extracting zip contents

 I0310 14:21:35.018286       1 sti.go:718] Copying to target path /opt/app-root/src/node_modules/chromedriver/lib/chromedriver

 I0310 14:21:35.041158       1 sti.go:718] Fixing file permissions

 I0310 14:21:35.041176       1 sti.go:718] Done. ChromeDriver binary available at /opt/app-root/src/node_modules/chromedriver/lib/chromedriver/chromedriver

 I0310 14:21:35.169262       1 sti.go:718] 

 I0310 14:21:35.169277       1 sti.go:718] > [email protected] install /opt/app-root/src/node_modules/node-sass

 I0310 14:21:35.169281       1 sti.go:718] > node scripts/install.js

 I0310 14:21:35.169285       1 sti.go:718] 

 I0310 14:21:35.500121       1 sti.go:722] Unable to save binary /opt/app-root/src/node_modules/node-sass/vendor/linux-x64-57 : { Error: ENOENT: no such file or directory, mkdir '/opt/app-root/src/node_modules/node-sass/vendor/linux-x64-57'

 I0310 14:21:35.500146       1 sti.go:722]     at Object.fs.mkdirSync (fs.js:885:18)

 I0310 14:21:35.500154       1 sti.go:722]     at checkAndDownloadBinary (/opt/app-root/src/node_modules/node-sass/scripts/install.js:113:8)

 I0310 14:21:35.500161       1 sti.go:722]     at Object.<anonymous> (/opt/app-root/src/node_modules/node-sass/scripts/install.js:156:1)

 I0310 14:21:35.500166       1 sti.go:722]     at Module._compile (module.js:653:30)

 I0310 14:21:35.500173       1 sti.go:722]     at Object.Module._extensions..js (module.js:664:10)

 I0310 14:21:35.500182       1 sti.go:722]     at Module.load (module.js:566:32)

 I0310 14:21:35.500188       1 sti.go:722]     at tryModuleLoad (module.js:506:12)

 I0310 14:21:35.500193       1 sti.go:722]     at Function.Module._load (module.js:498:3)

 I0310 14:21:35.500198       1 sti.go:722]     at Function.Module.runMain (module.js:694:10)

 I0310 14:21:35.500203       1 sti.go:722]     at startup (bootstrap_node.js:204:16)

 I0310 14:21:35.500208       1 sti.go:722]   errno: -2,

 I0310 14:21:35.500213       1 sti.go:722]   code: 'ENOENT',

 I0310 14:21:35.500227       1 sti.go:722]   syscall: 'mkdir',

 I0310 14:21:35.500233       1 sti.go:722]   path: '/opt/app-root/src/node_modules/node-sass/vendor/linux-x64-57' }

 I0310 14:21:37.066905       1 sti.go:718] 

 I0310 14:21:37.066921       1 sti.go:718] > [email protected] postinstall /opt/app-root/src/node_modules/webpack/node_modules/uglifyjs-webpack-plugin

 I0310 14:21:37.066927       1 sti.go:718] > node lib/post_install.js

 I0310 14:21:37.066932       1 sti.go:718] 

 I0310 14:21:37.209190       1 sti.go:718] 

 I0310 14:21:37.209209       1 sti.go:718] > [email protected] postinstall /opt/app-root/src/node_modules/node-sass

 I0310 14:21:37.209216       1 sti.go:718] > node scripts/build.js

 I0310 14:21:37.209220       1 sti.go:718] 

 I0310 14:21:37.422197       1 sti.go:718] Building: /opt/rh/rh-nodejs8/root/usr/bin/node /opt/app-root/src/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=

 I0310 14:21:37.547866       1 sti.go:722] gyp info it worked if it ends with ok

 I0310 14:21:37.549259       1 sti.go:722] gyp verb cli [ '/opt/rh/rh-nodejs8/root/usr/bin/node',

 I0310 14:21:37.549343       1 sti.go:722] gyp verb cli   '/opt/app-root/src/node_modules/node-gyp/bin/node-gyp.js',

 I0310 14:21:37.549427       1 sti.go:722] gyp verb cli   'rebuild',

 I0310 14:21:37.549435       1 sti.go:722] gyp verb cli   '--verbose',

 I0310 14:21:37.549449       1 sti.go:722] gyp verb cli   '--libsass_ext=',

 I0310 14:21:37.549515       1 sti.go:722] gyp verb cli   '--libsass_cflags=',

 I0310 14:21:37.549636       1 sti.go:722] gyp verb cli   '--libsass_ldflags=',

 I0310 14:21:37.549646       1 sti.go:722] gyp verb cli   '--libsass_library=' ]

 I0310 14:21:37.549803       1 sti.go:722] gyp info using [email protected]

 I0310 14:21:37.549866       1 sti.go:722] gyp info using [email protected] | linux | x64

 I0310 14:21:37.550151       1 sti.go:722] gyp verb command rebuild []

 I0310 14:21:37.551212       1 sti.go:722] gyp verb command clean []

 I0310 14:21:37.559983       1 sti.go:722] gyp verb clean removing "build" directory

 I0310 14:21:37.562558       1 sti.go:722] gyp verb command configure []

 I0310 14:21:37.590462       1 sti.go:722] gyp verb find Python Python is not set from command line or npm configuration

 I0310 14:21:37.590633       1 sti.go:722] gyp verb find Python Python is not set from environment variable PYTHON

 I0310 14:21:37.590686       1 sti.go:722] gyp verb find Python checking if "python3" can be used

 I0310 14:21:37.590876       1 sti.go:722] gyp verb find Python - executing "python3" to get executable path

 I0310 14:21:37.597341       1 sti.go:722] gyp verb find Python - "python3" is not in PATH or produced an error

 I0310 14:21:37.597358       1 sti.go:722] gyp verb find Python checking if "python" can be used

 I0310 14:21:37.597367       1 sti.go:722] gyp verb find Python - executing "python" to get executable path

 I0310 14:21:37.614244       1 sti.go:722] gyp verb find Python - executable path is "/usr/bin/python"

 I0310 14:21:37.614461       1 sti.go:722] gyp verb find Python - executing "/usr/bin/python" to get version

 I0310 14:21:37.626259       1 sti.go:722] gyp verb find Python - version is "2.7.5"

 I0310 14:21:37.629838       1 sti.go:722] gyp info find Python using Python version 2.7.5 found at "/usr/bin/python"

 I0310 14:21:37.630081       1 sti.go:722] gyp verb get node dir no --target version specified, falling back to host node version: 8.16.1

 I0310 14:21:37.630298       1 sti.go:722] gyp verb command install [ '8.16.1' ]

 I0310 14:21:37.769549       1 sti.go:722] gyp verb install input version string "8.16.1"

 I0310 14:21:37.769736       1 sti.go:722] gyp verb install installing version: 8.16.1

 I0310 14:21:37.769750       1 sti.go:722] gyp verb install --ensure was passed, so won't reinstall if already installed

 I0310 14:21:37.770194       1 sti.go:722] gyp verb install version not already installed, continuing with install 8.16.1

 I0310 14:21:37.770571       1 sti.go:722] gyp verb ensuring nodedir is created /opt/app-root/src/.cache/node-gyp/8.16.1

 I0310 14:21:37.771245       1 sti.go:722] gyp WARN install got an error, rolling back install

 I0310 14:21:37.771352       1 sti.go:722] gyp verb command remove [ '8.16.1' ]

 I0310 14:21:37.771897       1 sti.go:722] gyp verb remove using node-gyp dir: /opt/app-root/src/.cache/node-gyp

 I0310 14:21:37.772999       1 sti.go:722] gyp verb remove removing target version: 8.16.1

 I0310 14:21:37.773012       1 sti.go:722] gyp verb remove removing development files for version: 8.16.1

 I0310 14:21:37.773018       1 sti.go:722] gyp ERR! configure error 

 I0310 14:21:37.773024       1 sti.go:722] gyp ERR! stack Error: ENOENT: no such file or directory, mkdir '/opt/app-root/src/.cache/node-gyp/8.16.1'

 I0310 14:21:37.773029       1 sti.go:722] gyp ERR! System Linux 5.4.170-1.el7.elrepo.x86_64

 I0310 14:21:37.773350       1 sti.go:722] gyp ERR! command "/opt/rh/rh-nodejs8/root/usr/bin/node" "/opt/app-root/src/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="

 I0310 14:21:37.773363       1 sti.go:722] gyp ERR! cwd /opt/app-root/src/node_modules/node-sass

 I0310 14:21:37.773373       1 sti.go:722] gyp ERR! node -v v8.16.1

 I0310 14:21:37.773380       1 sti.go:722] gyp ERR! node-gyp -v v7.1.2

 I0310 14:21:37.773385       1 sti.go:722] gyp ERR! not ok 

 I0310 14:21:37.778296       1 sti.go:722] Build failed with error code: 1

 I0310 14:21:40.669893       1 sti.go:722] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):

 I0310 14:21:40.669918       1 sti.go:722] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

 I0310 14:21:40.669937       1 sti.go:722] 

 I0310 14:21:40.694033       1 sti.go:722] npm ERR! code ELIFECYCLE

 I0310 14:21:40.694189       1 sti.go:722] npm ERR! errno 1

 I0310 14:21:40.694344       1 sti.go:722] npm ERR! [email protected] postinstall: `node scripts/build.js`

 I0310 14:21:40.694355       1 sti.go:722] npm ERR! Exit status 1

 I0310 14:21:40.694494       1 sti.go:722] npm ERR! 

 I0310 14:21:40.694506       1 sti.go:722] npm ERR! Failed at the [email protected] postinstall script.

 I0310 14:21:40.694513       1 sti.go:722] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

 I0310 14:21:40.826310       1 sti.go:722] 

 I0310 14:21:40.826327       1 sti.go:722] npm ERR! A complete log of this run can be found in:

 I0310 14:21:40.826334       1 sti.go:722] npm ERR!     /opt/app-root/src/.npm/_logs/2022-03-10T14_21_40_774Z-debug.log

 I0310 14:21:40.923347       1 docker.go:1112] Waiting for container "f285924d095c0ec8296e3c52372e760749455bec2f68337eab170d7e77595e3d" to stop ...

 I0310 14:21:41.259138       1 docker.go:1048] Removing container "f285924d095c0ec8296e3c52372e760749455bec2f68337eab170d7e77595e3d" ...

 I0310 14:21:42.202189       1 docker.go:1058] Removed container "f285924d095c0ec8296e3c52372e760749455bec2f68337eab170d7e77595e3d"

 I0310 14:21:42.202694       1 cleanup.go:33] Removing temporary directory /tmp/s2i251979216

 I0310 14:21:42.202708       1 fs.go:302] Removing directory '/tmp/s2i251979216'

 I0310 14:21:42.226179       1 s2i.go:75] Build failed

 E0310 14:21:42.226200       1 errors.go:307] An error occurred: non-zero (13) exit code from kubesphere/nodejs-8-centos7:v3.2.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.