``` # cd scripts/docker/build-image/ root@k8smaster:~/asif/src/github.com/apache/incubator-servicecomb-service-center/scripts/docker/build-image# ll total 24 drwxr-xr-x 2 root root 4096 Aug 21 22:03 ./ drwxr-xr-x 4 root root 4096 Aug 21 22:03 ../ -rw-r--r-- 1 root root 929 Aug 21 22:03 Dockerfile.tmpl -rw-r--r-- 1 root root 565 Aug 21 22:03 README.md -rw-r--r-- 1 root root 2013 Aug 21 22:03 build.sh -rw-r--r-- 1 root root 1140 Aug 21 22:03 start.sh root@k8smaster:~/asif/src/github.com/apache/incubator-servicecomb-service-center/scripts/docker/build-image# root@k8smaster:~/asif/src/github.com/apache/incubator-servicecomb-service-center/scripts/docker/build-image# root@k8smaster:~/asif/src/github.com/apache/incubator-servicecomb-service-center/scripts/docker/build-image# root@k8smaster:~/asif/src/github.com/apache/incubator-servicecomb-service-center/scripts/docker/build-image# root@k8smaster:~/asif/src/github.com/apache/incubator-servicecomb-service-center/scripts/docker/build-image# bash -x build.sh + set -e + umask 027 +++ dirname build.sh ++ cd . ++ pwd + SCRIPT_DIR=/root/asif/src/github.com/apache/incubator-servicecomb-service-center/scripts/docker/build-image + BASE_DIR=/root/asif/src/github.com/apache/incubator-servicecomb-service-center/scripts/docker/build-image/../../../ + PACKAGE=latest + PACKAGE_PREFIX=apache-servicecomb-incubating-service-center + PACKAGE_DIR=/root/asif/src/github.com/apache/incubator-servicecomb-service-center/scripts/docker/build-image/../apache-servicecomb-incubating-service-center-latest-linux-amd64 + source /root/asif/src/github.com/apache/incubator-servicecomb-service-center/scripts/docker/build-image/../../build/tools.sh ++ set -e + '[' '!' -d /root/asif/src/github.com/apache/incubator-servicecomb-service-center/scripts/docker/build-image/../apache-servicecomb-incubating-service-center-latest-linux-amd64 ']' + docker_builder_pattern /root/asif/src/github.com/apache/incubator-servicecomb-service-center/scripts/docker/build-image/../../../ /root/asif/src/github.com/apache/incubator-servicecomb-service-center/scripts/docker/build-image/../ + local dockerfile_dir=/root/asif/src/github.com/apache/incubator-servicecomb-service-center/scripts/docker/build-image/../../../ + local output=/root/asif/src/github.com/apache/incubator-servicecomb-service-center/scripts/docker/build-image/../ + local builder_name=servicecomb/service-center:build + local builder_path=/go/src/github.com/apache/incubator-servicecomb-service-center + local app=apache-servicecomb-incubating-service-center-latest-linux-amd64 + set +e + docker rmi servicecomb/service-center:build Error response from daemon: No such image: servicecomb/service-center:build + set -e + cd /root/asif/src/github.com/apache/incubator-servicecomb-service-center/scripts/docker/build-image/../../../ + docker build -t servicecomb/service-center:build . -f Dockerfile.build Sending build context to Docker daemon 136.7 MB Step 1/4 : FROM golang:1.8.3 1.8.3: Pulling from library/golang aa18ad1a0d33: Pull complete 15a33158a136: Pull complete f67323742a64: Pull complete 1b4531640cb0: Pull complete 3e7f1f935f2c: Pull complete a4db2a724d81: Pull complete 9a798ef77d30: Pull complete Digest: sha256:32c769bf92205580d6579d5b93c3c705f787f6c648105f00bb88a35024c7f8e4 Status: Downloaded newer image for golang:1.8.3 ---> 7e62a8729fa7 Step 2/4 : WORKDIR /go/src/github.com/apache/incubator-servicecomb-service-center ---> 0fb61925899d Removing intermediate container df38d8734a36 Step 3/4 : COPY . . ---> 3b9a70a894ec Removing intermediate container 596ba7399447 Step 4/4 : RUN bash -x scripts/build/local.sh linux 1.0.0 latest ---> Running in 220a5f4867a7 + set -e + export GOOS=linux + GOOS=linux + export GOARCH=amd64 + GOARCH=amd64 + RELEASE=1.0.0 + PACKAGE=latest + PACKAGE_PREFIX=apache-servicecomb-incubating-service-center +++ dirname scripts/build/local.sh ++ cd scripts/build ++ pwd + script_path=/go/src/github.com/apache/incubator-servicecomb-service-center/scripts/build + source /go/src/github.com/apache/incubator-servicecomb-service-center/scripts/build/tools.sh ++ set -e + personal_build + source /go/src/github.com/apache/incubator-servicecomb-service-center/scripts/build/deps.sh ++ set -e ++++ dirname scripts/build/local.sh +++ cd scripts/build +++ pwd ++ script_path=/go/src/github.com/apache/incubator-servicecomb-service-center/scripts/build ++ project_path=/go/src/github.com/apache/incubator-servicecomb-service-center/scripts/build/../.. ++ source /go/src/github.com/apache/incubator-servicecomb-service-center/scripts/build/tools.sh +++ set -e ++ prepare_env ++ local force= ++ cd /go/src/github.com/apache/incubator-servicecomb-service-center/scripts/build/../.. ++ mkdir -p vendor ++ '[' X '!=' X-f ']' +++ ls vendor +++ wc -l ++ '[' '!' 5 -gt 0 ']' ++ '[' '!' -d frontend/app/bower_components ']' ++ frontend_deps ++ install_bower ++ set +e +++ which bower ++ BOWER= ++ '[' 1 == 1 ']' ++ set -e ++ curl -sL https://deb.nodesource.com/setup_8.x ++ bash -
## Installing the NodeSource Node.js 8.x LTS Carbon repo... ## Populating apt-get cache... + apt-get update Get:1 http://security.debian.org jessie/updates InRelease [44.9 kB] Get:2 http://security.debian.org jessie/updates/main amd64 Packages [646 kB] Ign http://deb.debian.org jessie InRelease Get:3 http://deb.debian.org jessie-updates InRelease [145 kB] Get:4 http://deb.debian.org jessie Release.gpg [2420 B] Get:5 http://deb.debian.org jessie Release [148 kB] Get:6 http://deb.debian.org jessie-updates/main amd64 Packages [23.0 kB] Get:7 http://deb.debian.org jessie/main amd64 Packages [9098 kB] Fetched 10.1 MB in 13s (773 kB/s) Reading package lists... ## Installing packages required for setup: apt-transport-https lsb-release... + apt-get install -y apt-transport-https lsb-release > /dev/null 2>&1 ## You seem to be using Devuan version jessie. ## This maps to Debian "jessie"... Adjusting for you... ## Confirming "jessie" is supported... + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_8.x/dists/jessie/Release' ## Adding the NodeSource signing key to your keyring... + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - OK ## Creating apt sources list file for the NodeSource Node.js 8.x LTS Carbon repo... + echo 'deb https://deb.nodesource.com/node_8.x jessie main' > /etc/apt/sources.list.d/nodesource.list + echo 'deb-src https://deb.nodesource.com/node_8.x jessie main' >> /etc/apt/sources.list.d/nodesource.list ## Running `apt-get update` for you... + apt-get update Get:1 https://deb.nodesource.com jessie InRelease [4646 B] Hit http://security.debian.org jessie/updates InRelease Ign http://deb.debian.org jessie InRelease Hit http://deb.debian.org jessie-updates InRelease Get:2 https://deb.nodesource.com jessie/main Sources [762 B] Hit http://deb.debian.org jessie Release.gpg Get:3 http://security.debian.org jessie/updates/main amd64 Packages [646 kB] Hit http://deb.debian.org jessie Release Get:4 https://deb.nodesource.com jessie/main amd64 Packages [1008 B] Get:5 http://deb.debian.org jessie-updates/main amd64 Packages [23.0 kB] Get:6 http://deb.debian.org jessie/main amd64 Packages [9098 kB] Fetched 9773 kB in 10s (931 kB/s) Reading package lists... ## Run `sudo apt-get install -y nodejs` to install Node.js 8.x LTS Carbon and npm ## You may also need development tools to build native addons: sudo apt-get install gcc g++ make ## To install the Yarn package manager, run: curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt-get update && sudo apt-get install yarn ++ apt-get install -y nodejs Reading package lists... Building dependency tree... Reading state information... The following NEW packages will be installed: nodejs 0 upgraded, 1 newly installed, 0 to remove and 58 not upgraded. Need to get 13.7 MB of archives. After this operation, 67.5 MB of additional disk space will be used. Get:1 https://deb.nodesource.com/node_8.x/ jessie/main nodejs amd64 8.11.4-1nodesource1 [13.7 MB] debconf: delaying package configuration, since apt-utils is not installed Fetched 13.7 MB in 8s (1622 kB/s) Selecting previously unselected package nodejs. (Reading database ... 14800 files and directories currently installed.) Preparing to unpack .../nodejs_8.11.4-1nodesource1_amd64.deb ... Unpacking nodejs (8.11.4-1nodesource1) ... Setting up nodejs (8.11.4-1nodesource1) ... ++ npm install -g bower npm WARN deprecated [email protected]: We don't recommend using Bower for new projects. Please consider Yarn and Webpack or Parcel. You can read how to migrate legacy project here: https://bower.io/blog/2017/how-to-migrate-away-from-bower/ /usr/bin/bower -> /usr/lib/node_modules/bower/bin/bower + [email protected] added 1 package in 3.063s ++ cd frontend/app ++ bower install bower ESUDO Cannot be run with sudo Additional error details: Since bower is a user command, there is no need to execute it with superuser permissions. If you're having permission errors when using bower without sudo, please spend a few minutes learning more about how your system should work and make any necessary repairs. http://www.joyent.com/blog/installing-node-and-npm https://gist.github.com/isaacs/579814 You can however run a command with sudo using "--allow-root" option The command '/bin/sh -c bash -x scripts/build/local.sh linux 1.0.0 latest' returned a non-zero code: 1 ``` [ Full content available at: https://github.com/apache/incubator-servicecomb-service-center/issues/425 ] This message was relayed via gitbox.apache.org for [email protected]
