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

Install nodejs in workspace container. #314

Closed
johndiego opened this issue Sep 16, 2016 · 2 comments
Closed

Install nodejs in workspace container. #314

johndiego opened this issue Sep 16, 2016 · 2 comments

Comments

@johndiego
Copy link

johndiego commented Sep 16, 2016

My docker-compose.yml

        build:
            context: ./workspace
            args:
                - INSTALL_XDEBUG=false
                - INSTALL_MONGO=false
                - INSTALL_NODE=true
                - INSTALL_DRUSH=false
                - INSTALL_AEROSPIKE_EXTENSION=false
                - COMPOSER_GLOBAL_INSTALL=false
                - INSTALL_WORKSPACE_SSH=false
                - PUID=1000
                - PGID=1000
                - NODE_VERSION=stable
        volumes_from:
            - volumes_source
        extra_hosts:
            # IMPORTANT: Replace with your Docker Host IP (will be appended to /etc/hosts)
            - "dockerhost:127.0.0.1"
        ports:
           - "222:22"
        tty: true```


My console
---> 0efd35f6716e
Step 11 : RUN if [ ${INSTALL_WORKSPACE_SSH} = true ]; then rm -f /etc/service/sshd/down && cat /tmp/id_rsa.pub >> /root/.ssh/authorized_keys && cat /tmp/id_rsa.pub >> /root/.ssh/id_rsa.pub && cat /tmp/id_rsa >> /root/.ssh/id_rsa && rm -f /tmp/id_rsa* && chmod 644 /root/.ssh/authorized_keys /root/.ssh/id_rsa.pub && chmod 400 /root/.ssh/id_rsa ;fi
---> Using cache
---> 228f6dc590d0
Step 12 : ARG INSTALL_MONGO=true
---> Using cache
---> 12f124bfc8f9
Step 13 : ENV INSTALL_MONGO ${INSTALL_MONGO}
---> Using cache
---> 67884280cdcf
Step 14 : RUN if [ ${INSTALL_MONGO} = true ]; then pecl install mongodb && echo "extension=mongodb.so" >> /etc/php/7.0/cli/php.ini ;fi
---> Using cache
---> 4138f96b7012
Step 15 : ARG PUID=1000
---> Using cache
---> a53a5f0d6035
Step 16 : ARG PGID=1000
---> Using cache
---> baf6bebbbde2
Step 17 : RUN groupadd -g $PGID laradock && useradd -u $PUID -g laradock -m laradock
---> Using cache
---> d427309507e5
Step 18 : COPY ./composer.json /home/laradock/.composer/composer.json
---> Using cache
---> a75daed6349b
Step 19 : RUN chown -R laradock:laradock /home/laradock/.composer
---> Using cache
---> 94059071cd87
Step 20 : USER laradock
---> Using cache
---> fadc55f1f01d
Step 21 : ARG COMPOSER_GLOBAL_INSTALL=true
---> Using cache
---> 6a19457604f2
Step 22 : ENV COMPOSER_GLOBAL_INSTALL ${COMPOSER_GLOBAL_INSTALL}
---> Using cache
---> 354b97d86833
Step 23 : RUN if [ ${COMPOSER_GLOBAL_INSTALL} = true ]; then composer global install ;fi
---> Using cache
---> a8303c3fa118
Step 24 : USER root
---> Using cache
---> 2ef891fe7bda
Step 25 : ENV DRUSH_VERSION 8.1.2
---> Using cache
---> 35dbfa738607
Step 26 : ARG INSTALL_DRUSH=true
---> Using cache
---> 0fa42754fb50
Step 27 : ENV INSTALL_DRUSH ${INSTALL_DRUSH}
---> Using cache
---> c7a4d57cf1d9
Step 28 : RUN if [ ${INSTALL_DRUSH} = true ]; then curl -fsSL -o /usr/local/bin/drush https://github.com/drush-ops/drush/releases/download/$DRUSH_VERSION/drush.phar | bash && chmod +x /usr/local/bin/drush && drush core-status ;fi
---> Using cache
---> 45c429a7fc08
Step 29 : USER laradock
---> Using cache
---> 05d45e334d32
Step 30 : ARG NODE_VERSION=stable
---> Using cache
---> b0d96d756c4b
Step 31 : ENV NODE_VERSION ${NODE_VERSION}
---> Using cache
---> 211876aa5041
Step 32 : ARG INSTALL_NODE=true
---> Using cache
---> b1d9084cadc5
Step 33 : ENV INSTALL_NODE ${INSTALL_NODE}
---> Running in f61e01831f09
---> 4ece6c5d52d0
Removing intermediate container f61e01831f09
Step 34 : ENV NVM_DIR /home/laradock/.nvm
---> Running in 1c1ad8c04cd9
---> 4872588b315f
Removing intermediate container 1c1ad8c04cd9
Step 35 : RUN if [ ${INSTALL_NODE} = true ]; then curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.6/install.sh | bash && . ~/.nvm/nvm.sh && nvm install ${NODE_VERSION} && nvm use ${NODE_VERSION} && nvm alias ${NODE_VERSION} && npm install -g gulp bower vue-cli ;fi
---> Running in 8bbddbb280c9
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9321 100 9321 0 0 8436 0 0:00:01 0:00:01 --:--:-- 8442
=> Downloading nvm from git to '/home/laradock/.nvm'
=> Cloning into '/home/laradock/.nvm'...

  • (HEAD detached at v0.31.6)
    master

=> Appending source string to /home/laradock/.profile
=> Close and reopen your terminal to start using nvm or run the following to use it now:

export NVM_DIR="/home/laradock/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
Downloading https://nodejs.org/dist/v6.6.0/node-v6.6.0-linux-x64.tar.xz...

################################################################## 100.0%

Now using node v6.6.0 (npm v3.10.3)
Creating default alias: default -> stable (-> v6.6.0)
Now using node v6.6.0 (npm v3.10.3)
stable -> 6.6 (-> v6.6.0) (default)

npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated lodash@1.0.2: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
/home/laradock/.nvm/versions/node/v6.6.0/bin/bower -> /home/laradock/.nvm/versions/node/v6.6.0/lib/node_modules/bower/bin/bower
/home/laradock/.nvm/versions/node/v6.6.0/bin/gulp -> /home/laradock/.nvm/versions/node/v6.6.0/lib/node_modules/gulp/bin/gulp.js
/home/laradock/.nvm/versions/node/v6.6.0/bin/vue -> /home/laradock/.nvm/versions/node/v6.6.0/lib/node_modules/vue-cli/bin/vue
/home/laradock/.nvm/versions/node/v6.6.0/lib
├── bower@1.7.9
├─┬ gulp@3.9.1
│ ├── archy@1.0.0
│ ├─┬ chalk@1.1.3
│ │ ├── ansi-styles@2.2.1
│ │ ├── escape-string-regexp@1.0.5
│ │ ├─┬ has-ansi@2.0.0
│ │ │ └── ansi-regex@2.0.0
│ │ ├── strip-ansi@3.0.1
│ │ └── supports-color@2.0.0
│ ├── deprecated@0.0.1
│ ├─┬ gulp-util@3.0.7
│ │ ├── array-differ@1.0.0
│ │ ├── array-uniq@1.0.3
│ │ ├── beeper@1.1.0
│ │ ├─┬ dateformat@1.0.12
│ │ │ ├── get-stdin@4.0.1
│ │ │ └─┬ meow@3.7.0
│ │ │ ├─┬ camelcase-keys@2.1.0
│ │ │ │ └── camelcase@2.1.1
│ │ │ ├── decamelize@1.2.0
│ │ │ ├─┬ loud-rejection@1.6.0
│ │ │ │ ├─┬ currently-unhandled@0.4.1
│ │ │ │ │ └── array-find-index@1.0.1
│ │ │ │ └── signal-exit@3.0.1
│ │ │ ├── map-obj@1.0.1
│ │ │ ├─┬ normalize-package-data@2.3.5
│ │ │ │ ├── hosted-git-info@2.1.5
│ │ │ │ ├─┬ is-builtin-module@1.0.0
│ │ │ │ │ └── builtin-modules@1.1.1
│ │ │ │ └─┬ validate-npm-package-license@3.0.1
│ │ │ │ ├─┬ spdx-correct@1.0.2
│ │ │ │ │ └── spdx-license-ids@1.2.2
│ │ │ │ └── spdx-expression-parse@1.0.3
│ │ │ ├── object-assign@4.1.0
│ │ │ ├─┬ read-pkg-up@1.0.1
│ │ │ │ ├─┬ find-up@1.1.2
│ │ │ │ │ ├── path-exists@2.1.0
│ │ │ │ │ └─┬ pinkie-promise@2.0.1
│ │ │ │ │ └── pinkie@2.0.4
│ │ │ │ └─┬ read-pkg@1.1.0
│ │ │ │ ├─┬ load-json-file@1.1.0
│ │ │ │ │ ├── graceful-fs@4.1.6
│ │ │ │ │ ├─┬ parse-json@2.2.0
│ │ │ │ │ │ └─┬ error-ex@1.3.0
│ │ │ │ │ │ └── is-arrayish@0.2.1
│ │ │ │ │ ├── pify@2.3.0
│ │ │ │ │ └── strip-bom@2.0.0
│ │ │ │ └── path-type@1.1.0
│ │ │ ├─┬ redent@1.0.0
│ │ │ │ ├─┬ indent-string@2.1.0
│ │ │ │ │ └─┬ repeating@2.0.1
│ │ │ │ │ └─┬ is-finite@1.0.1
│ │ │ │ │ └── number-is-nan@1.0.0
│ │ │ │ └── strip-indent@1.0.1
│ │ │ └── trim-newlines@1.0.0
│ │ ├─┬ fancy-log@1.2.0
│ │ │ └── time-stamp@1.0.1
│ │ ├─┬ gulplog@1.0.0
│ │ │ └── glogg@1.0.0
│ │ ├─┬ has-gulplog@0.1.0
│ │ │ └── sparkles@1.0.0
│ │ ├── lodash._reescape@3.0.0
│ │ ├── lodash._reevaluate@3.0.0
│ │ ├── lodash._reinterpolate@3.0.0
│ │ ├─┬ lodash.template@3.6.2
│ │ │ ├── lodash._basecopy@3.0.1
│ │ │ ├── lodash._basetostring@3.0.1
│ │ │ ├── lodash._basevalues@3.0.0
│ │ │ ├── lodash._isiterateecall@3.0.9
│ │ │ ├─┬ lodash.escape@3.2.0
│ │ │ │ └── lodash._root@3.0.1
│ │ │ ├─┬ lodash.keys@3.1.2
│ │ │ │ ├── lodash._getnative@3.9.1
│ │ │ │ ├── lodash.isarguments@3.1.0
│ │ │ │ └── lodash.isarray@3.0.4
│ │ │ ├── lodash.restparam@3.6.1
│ │ │ └── lodash.templatesettings@3.1.1
│ │ ├─┬ multipipe@0.1.2
│ │ │ └─┬ duplexer2@0.0.2
│ │ │ └── readable-stream@1.1.14
│ │ ├── object-assign@3.0.0
│ │ ├── replace-ext@0.0.1
│ │ ├─┬ through2@2.0.1
│ │ │ ├─┬ readable-stream@2.0.6
│ │ │ │ ├── core-util-is@1.0.2
│ │ │ │ ├── inherits@2.0.3
│ │ │ │ ├── isarray@1.0.0
│ │ │ │ ├── process-nextick-args@1.0.7
│ │ │ │ ├── string_decoder@0.10.31
│ │ │ │ └── util-deprecate@1.0.2
│ │ │ └── xtend@4.0.1
│ │ └─┬ vinyl@0.5.3
│ │ ├── clone@1.0.2
│ │ └── clone-stats@0.0.1
│ ├── interpret@1.0.1
│ ├─┬ liftoff@2.3.0
│ │ ├── extend@3.0.0
│ │ ├─┬ findup-sync@0.4.2
│ │ │ ├─┬ detect-file@0.1.0
│ │ │ │ └── fs-exists-sync@0.1.0
│ │ │ ├─┬ is-glob@2.0.1
│ │ │ │ └── is-extglob@1.0.0
│ │ │ ├─┬ micromatch@2.3.11
│ │ │ │ ├─┬ arr-diff@2.0.0
│ │ │ │ │ └── arr-flatten@1.0.1
│ │ │ │ ├── array-unique@0.2.1
│ │ │ │ ├─┬ braces@1.8.5
│ │ │ │ │ ├─┬ expand-range@1.8.2
│ │ │ │ │ │ └─┬ fill-range@2.2.3
│ │ │ │ │ │ ├── is-number@2.1.0
│ │ │ │ │ │ ├─┬ isobject@2.1.0
│ │ │ │ │ │ │ └── isarray@1.0.0
│ │ │ │ │ │ ├── randomatic@1.1.5
│ │ │ │ │ │ └── repeat-string@1.5.4
│ │ │ │ │ ├── preserve@0.2.0
│ │ │ │ │ └── repeat-element@1.1.2
│ │ │ │ ├─┬ expand-brackets@0.1.5
│ │ │ │ │ └── is-posix-bracket@0.1.1
│ │ │ │ ├── extglob@0.3.2
│ │ │ │ ├── filename-regex@2.0.0
│ │ │ │ ├─┬ kind-of@3.0.4
│ │ │ │ │ └── is-buffer@1.1.4
│ │ │ │ ├── normalize-path@2.0.1
│ │ │ │ ├─┬ object.omit@2.0.0
│ │ │ │ │ ├─┬ for-own@0.1.4
│ │ │ │ │ │ └── for-in@0.1.6
│ │ │ │ │ └── is-extendable@0.1.1
│ │ │ │ ├─┬ parse-glob@3.0.4
│ │ │ │ │ ├─┬ glob-base@0.3.0
│ │ │ │ │ │ └── glob-parent@2.0.0
│ │ │ │ │ └── is-dotfile@1.0.2
│ │ │ │ └─┬ regex-cache@0.4.3
│ │ │ │ ├── is-equal-shallow@0.1.3
│ │ │ │ └── is-primitive@2.0.0
│ │ │ └─┬ resolve-dir@0.1.1
│ │ │ └─┬ global-modules@0.2.3
│ │ │ ├─┬ global-prefix@0.1.4
│ │ │ │ ├── ini@1.3.4
│ │ │ │ ├─┬ osenv@0.1.3
│ │ │ │ │ └── os-tmpdir@1.0.1
│ │ │ │ └─┬ which@1.2.11
│ │ │ │ └── isexe@1.1.2
│ │ │ └── is-windows@0.2.0
│ │ ├─┬ fined@1.0.1
│ │ │ ├── expand-tilde@1.2.2
│ │ │ ├── lodash.assignwith@4.2.0
│ │ │ ├── lodash.isarray@4.0.0
│ │ │ ├── lodash.isempty@4.4.0
│ │ │ ├── lodash.pick@4.4.0
│ │ │ └─┬ parse-filepath@1.0.1
│ │ │ ├─┬ is-absolute@0.2.5
│ │ │ │ ├─┬ is-relative@0.2.1
│ │ │ │ │ └─┬ is-unc-path@0.1.1
│ │ │ │ │ └── unc-path-regex@0.1.2
│ │ │ │ └── is-windows@0.1.1
│ │ │ ├── map-cache@0.2.2
│ │ │ └─┬ path-root@0.1.1
│ │ │ └── path-root-regex@0.1.2
│ │ ├── flagged-respawn@0.3.2
│ │ ├── lodash.isplainobject@4.0.6
│ │ ├── lodash.isstring@4.0.1
│ │ ├── lodash.mapvalues@4.6.0
│ │ ├── rechoir@0.6.2
│ │ └── resolve@1.1.7
│ ├── minimist@1.2.0
│ ├─┬ orchestrator@0.3.7
│ │ ├─┬ end-of-stream@0.1.5
│ │ │ └─┬ once@1.3.3
│ │ │ └── wrappy@1.0.2
│ │ ├── sequencify@0.0.7
│ │ └── stream-consume@0.1.0
│ ├── pretty-hrtime@1.0.2
│ ├── semver@4.3.6
│ ├─┬ tildify@1.2.0
│ │ └── os-homedir@1.0.1
│ ├─┬ v8flags@2.0.11
│ │ └── user-home@1.1.1
│ └─┬ vinyl-fs@0.3.14
│ ├── defaults@1.0.3
│ ├─┬ glob-stream@3.1.18
│ │ ├─┬ glob@4.5.3
│ │ │ └── inflight@1.0.5
│ │ ├─┬ glob2base@0.0.12
│ │ │ └── find-index@0.1.1
│ │ ├─┬ minimatch@2.0.10
│ │ │ └─┬ brace-expansion@1.1.6
│ │ │ ├── balanced-match@0.4.2
│ │ │ └── concat-map@0.0.1
│ │ ├── ordered-read-streams@0.1.0
│ │ ├─┬ through2@0.6.5
│ │ │ └── readable-stream@1.0.34
│ │ └── unique-stream@1.0.0
│ ├─┬ glob-watcher@0.0.6
│ │ └─┬ gaze@0.5.2
│ │ └─┬ globule@0.1.0
│ │ ├─┬ glob@3.1.21
│ │ │ ├── graceful-fs@1.2.3
│ │ │ └── inherits@1.0.2
│ │ ├── lodash@1.0.2
│ │ └─┬ minimatch@0.2.14
│ │ ├── lru-cache@2.7.3
│ │ └── sigmund@1.0.1
│ ├─┬ graceful-fs@3.0.11
│ │ └── natives@1.1.0
│ ├─┬ mkdirp@0.5.1
│ │ └── minimist@0.0.8
│ ├─┬ strip-bom@1.0.0
│ │ ├── first-chunk-stream@1.0.0
│ │ └── is-utf8@0.2.1
│ ├─┬ through2@0.6.5
│ │ └─┬ readable-stream@1.0.34
│ │ └── isarray@0.0.1
│ └─┬ vinyl@0.4.6
│ └── clone@0.2.0
└─┬ vue-cli@2.3.1
├─┬ async@2.0.1
│ └── lodash@4.15.0
├─┬ chalk@1.1.3
│ ├── ansi-styles@2.2.1
│ ├── escape-string-regexp@1.0.5
│ ├── has-ansi@2.0.0
│ ├── strip-ansi@3.0.1
│ └── supports-color@2.0.0
├─┬ commander@2.9.0
│ └── graceful-readlink@1.0.1
├─┬ consolidate@0.14.1
│ └── bluebird@3.4.6
├─┬ download-git-repo@0.1.2
│ ├─┬ download@4.4.3
│ │ ├─┬ caw@1.2.0
│ │ │ ├─┬ get-proxy@1.1.0
│ │ │ │ └─┬ rc@1.1.6
│ │ │ │ ├── deep-extend@0.4.1
│ │ │ │ ├── ini@1.3.4
│ │ │ │ └── strip-json-comments@1.0.4
│ │ │ ├── is-obj@1.0.1
│ │ │ └── object-assign@3.0.0
│ │ ├─┬ concat-stream@1.5.2
│ │ │ ├── readable-stream@2.0.6
│ │ │ └── typedarray@0.0.6
│ │ ├─┬ each-async@1.1.1
│ │ │ ├── onetime@1.1.0
│ │ │ └── set-immediate-shim@1.0.1
│ │ ├─┬ filenamify@1.2.1
│ │ │ ├── filename-reserved-regex@1.0.0
│ │ │ ├── strip-outer@1.0.0
│ │ │ └── trim-repeated@1.0.0
│ │ ├─┬ got@5.6.0
│ │ │ ├─┬ create-error-class@3.0.2
│ │ │ │ └── capture-stack-trace@1.0.0
│ │ │ ├── duplexer2@0.1.4
│ │ │ ├── is-plain-obj@1.1.0
│ │ │ ├── is-redirect@1.0.0
│ │ │ ├── is-retry-allowed@1.1.0
│ │ │ ├── is-stream@1.1.0
│ │ │ ├── lowercase-keys@1.0.0
│ │ │ ├── node-status-codes@1.0.0
│ │ │ ├─┬ parse-json@2.2.0
│ │ │ │ └─┬ error-ex@1.3.0
│ │ │ │ └── is-arrayish@0.2.1
│ │ │ ├── timed-out@2.0.0
│ │ │ ├── unzip-response@1.0.1
│ │ │ └─┬ url-parse-lax@1.0.0
│ │ │ └── prepend-http@1.0.4
│ │ ├─┬ gulp-decompress@1.2.0
│ │ │ ├─┬ archive-type@3.2.0
│ │ │ │ └── file-type@3.8.0
│ │ │ ├─┬ decompress@3.0.0
│ │ │ │ ├─┬ buffer-to-vinyl@1.1.0
│ │ │ │ │ └── uuid@2.0.2
│ │ │ │ ├─┬ decompress-tar@3.1.0
│ │ │ │ │ ├── is-tar@1.0.0
│ │ │ │ │ ├── object-assign@2.1.1
│ │ │ │ │ ├─┬ strip-dirs@1.1.1
│ │ │ │ │ │ ├─┬ is-absolute@0.1.7
│ │ │ │ │ │ │ └── is-relative@0.1.3
│ │ │ │ │ │ ├── is-natural-number@2.1.1
│ │ │ │ │ │ └── sum-up@1.0.3
│ │ │ │ │ ├─┬ tar-stream@1.5.2
│ │ │ │ │ │ └── end-of-stream@1.1.0
│ │ │ │ │ └─┬ vinyl@0.4.6
│ │ │ │ │ └── clone@0.2.0
│ │ │ │ ├─┬ decompress-tarbz2@3.1.0
│ │ │ │ │ ├── is-bzip2@1.0.0
│ │ │ │ │ ├── object-assign@2.1.1
│ │ │ │ │ ├─┬ seek-bzip@1.0.5
│ │ │ │ │ │ └── commander@2.8.1
│ │ │ │ │ └─┬ vinyl@0.4.6
│ │ │ │ │ └── clone@0.2.0
│ │ │ │ ├─┬ decompress-targz@3.1.0
│ │ │ │ │ ├── is-gzip@1.0.0
│ │ │ │ │ ├── object-assign@2.1.1
│ │ │ │ │ └─┬ vinyl@0.4.6
│ │ │ │ │ └── clone@0.2.0
│ │ │ │ ├─┬ decompress-unzip@3.4.0
│ │ │ │ │ ├── is-zip@1.0.0
│ │ │ │ │ ├─┬ through2@2.0.1
│ │ │ │ │ │ └── readable-stream@2.0.6
│ │ │ │ │ └─┬ yauzl@2.6.0
│ │ │ │ │ ├── buffer-crc32@0.2.5
│ │ │ │ │ └─┬ fd-slicer@1.0.1
│ │ │ │ │ └── pend@1.2.0
│ │ │ │ └── vinyl-assign@1.2.1
│ │ │ └─┬ gulp-util@3.0.7
│ │ │ ├── array-differ@1.0.0
│ │ │ ├── array-uniq@1.0.3
│ │ │ ├── beeper@1.1.0
│ │ │ ├─┬ dateformat@1.0.12
│ │ │ │ ├── get-stdin@4.0.1
│ │ │ │ └─┬ meow@3.7.0
│ │ │ │ ├─┬ camelcase-keys@2.1.0
│ │ │ │ │ └── camelcase@2.1.1
│ │ │ │ ├─┬ loud-rejection@1.6.0
│ │ │ │ │ ├─┬ currently-unhandled@0.4.1
│ │ │ │ │ │ └── array-find-index@1.0.1
│ │ │ │ │ └── signal-exit@3.0.1
│ │ │ │ ├── map-obj@1.0.1
│ │ │ │ ├─┬ normalize-package-data@2.3.5
│ │ │ │ │ ├── hosted-git-info@2.1.5
│ │ │ │ │ ├─┬ is-builtin-module@1.0.0
│ │ │ │ │ │ └── builtin-modules@1.1.1
│ │ │ │ │ └─┬ validate-npm-package-license@3.0.1
│ │ │ │ │ ├─┬ spdx-correct@1.0.2
│ │ │ │ │ │ └── spdx-license-ids@1.2.2
│ │ │ │ │ └── spdx-expression-parse@1.0.3
│ │ │ │ ├─┬ read-pkg-up@1.0.1
│ │ │ │ │ ├─┬ find-up@1.1.2
│ │ │ │ │ │ └── path-exists@2.1.0
│ │ │ │ │ └─┬ read-pkg@1.1.0
│ │ │ │ │ ├─┬ load-json-file@1.1.0
│ │ │ │ │ │ └── pify@2.3.0
│ │ │ │ │ └── path-type@1.1.0
│ │ │ │ ├─┬ redent@1.0.0
│ │ │ │ │ ├─┬ indent-string@2.1.0
│ │ │ │ │ │ └─┬ repeating@2.0.1
│ │ │ │ │ │ └── is-finite@1.0.1
│ │ │ │ │ └── strip-indent@1.0.1
│ │ │ │ └── trim-newlines@1.0.0
│ │ │ ├─┬ fancy-log@1.2.0
│ │ │ │ └── time-stamp@1.0.1
│ │ │ ├─┬ gulplog@1.0.0
│ │ │ │ └── glogg@1.0.0
│ │ │ ├─┬ has-gulplog@0.1.0
│ │ │ │ └── sparkles@1.0.0
│ │ │ ├── lodash._reescape@3.0.0
│ │ │ ├── lodash._reevaluate@3.0.0
│ │ │ ├── lodash._reinterpolate@3.0.0
│ │ │ ├─┬ lodash.template@3.6.2
│ │ │ │ ├── lodash._basecopy@3.0.1
│ │ │ │ ├── lodash._basetostring@3.0.1
│ │ │ │ ├── lodash._basevalues@3.0.0
│ │ │ │ ├── lodash._isiterateecall@3.0.9
│ │ │ │ ├─┬ lodash.escape@3.2.0
│ │ │ │ │ └── lodash._root@3.0.1
│ │ │ │ ├─┬ lodash.keys@3.1.2
│ │ │ │ │ ├── lodash._getnative@3.9.1
│ │ │ │ │ ├── lodash.isarguments@3.1.0
│ │ │ │ │ └── lodash.isarray@3.0.4
│ │ │ │ ├── lodash.restparam@3.6.1
│ │ │ │ └── lodash.templatesettings@3.1.1
│ │ │ ├── minimist@1.2.0
│ │ │ ├─┬ multipipe@0.1.2
│ │ │ │ └─┬ duplexer2@0.0.2
│ │ │ │ └─┬ readable-stream@1.1.14
│ │ │ │ └── isarray@0.0.1
│ │ │ ├── object-assign@3.0.0
│ │ │ ├─┬ through2@2.0.1
│ │ │ │ └── readable-stream@2.0.6
│ │ │ └── vinyl@0.5.3
│ │ ├── gulp-rename@1.2.2
│ │ ├── is-url@1.2.2
│ │ ├── read-all-stream@3.1.0
│ │ ├─┬ readable-stream@2.1.5
│ │ │ ├── buffer-shims@1.0.0
│ │ │ ├── core-util-is@1.0.2
│ │ │ ├── isarray@1.0.0
│ │ │ ├── process-nextick-args@1.0.7
│ │ │ ├── string_decoder@0.10.31
│ │ │ └── util-deprecate@1.0.2
│ │ ├── stream-combiner2@1.1.1
│ │ ├─┬ vinyl@1.2.0
│ │ │ ├── clone@1.0.2
│ │ │ ├── clone-stats@0.0.1
│ │ │ └── replace-ext@0.0.1
│ │ └─┬ vinyl-fs@2.4.3
│ │ ├─┬ duplexify@3.4.5
│ │ │ ├── end-of-stream@1.0.0
│ │ │ └── stream-shift@1.0.0
│ │ ├─┬ glob-stream@5.3.5
│ │ │ ├── glob@5.0.15
│ │ │ ├─┬ glob-parent@3.0.0
│ │ │ │ └─┬ is-glob@3.0.0
│ │ │ │ └── is-extglob@2.0.0
│ │ │ ├─┬ micromatch@2.3.11
│ │ │ │ ├─┬ arr-diff@2.0.0
│ │ │ │ │ └── arr-flatten@1.0.1
│ │ │ │ ├── array-unique@0.2.1
│ │ │ │ ├─┬ braces@1.8.5
│ │ │ │ │ ├─┬ expand-range@1.8.2
│ │ │ │ │ │ └─┬ fill-range@2.2.3
│ │ │ │ │ │ ├── is-number@2.1.0
│ │ │ │ │ │ ├── isobject@2.1.0
│ │ │ │ │ │ └── randomatic@1.1.5
│ │ │ │ │ ├── preserve@0.2.0
│ │ │ │ │ └── repeat-element@1.1.2
│ │ │ │ ├─┬ expand-brackets@0.1.5
│ │ │ │ │ └── is-posix-bracket@0.1.1
│ │ │ │ ├─┬ extglob@0.3.2
│ │ │ │ │ └── is-extglob@1.0.0
│ │ │ │ ├── filename-regex@2.0.0
│ │ │ │ ├── is-extglob@1.0.0
│ │ │ │ ├── is-glob@2.0.1
│ │ │ │ ├─┬ kind-of@3.0.4
│ │ │ │ │ └── is-buffer@1.1.4
│ │ │ │ ├── normalize-path@2.0.1
│ │ │ │ ├─┬ object.omit@2.0.0
│ │ │ │ │ └─┬ for-own@0.1.4
│ │ │ │ │ └── for-in@0.1.6
│ │ │ │ ├─┬ parse-glob@3.0.4
│ │ │ │ │ ├─┬ glob-base@0.3.0
│ │ │ │ │ │ ├── glob-parent@2.0.0
│ │ │ │ │ │ └─┬ is-glob@2.0.1
│ │ │ │ │ │ └── is-extglob@1.0.0
│ │ │ │ │ ├── is-dotfile@1.0.2
│ │ │ │ │ ├── is-extglob@1.0.0
│ │ │ │ │ └── is-glob@2.0.1
│ │ │ │ └─┬ regex-cache@0.4.3
│ │ │ │ ├── is-equal-shallow@0.1.3
│ │ │ │ └── is-primitive@2.0.0
│ │ │ ├── ordered-read-streams@0.3.0
│ │ │ ├─┬ through2@0.6.5
│ │ │ │ └─┬ readable-stream@1.0.34
│ │ │ │ └── isarray@0.0.1
│ │ │ ├── to-absolute-glob@0.1.1
│ │ │ └─┬ unique-stream@2.2.1
│ │ │ └─┬ json-stable-stringify@1.0.1
│ │ │ └── jsonify@0.0.0
│ │ ├── graceful-fs@4.1.6
│ │ ├─┬ gulp-sourcemaps@1.6.0
│ │ │ ├── convert-source-map@1.3.0
│ │ │ └─┬ through2@2.0.1
│ │ │ └── readable-stream@2.0.6
│ │ ├── is-valid-glob@0.3.0
│ │ ├── lazystream@1.0.0
│ │ ├── lodash.isequal@4.4.0
│ │ ├── merge-stream@1.0.0
│ │ ├── strip-bom@2.0.0
│ │ ├─┬ strip-bom-stream@1.0.0
│ │ │ └── first-chunk-stream@1.0.0
│ │ ├─┬ through2@2.0.1
│ │ │ └── readable-stream@2.0.6
│ │ ├─┬ through2-filter@2.0.0
│ │ │ └─┬ through2@2.0.1
│ │ │ └── readable-stream@2.0.6
│ │ └── vali-date@1.0.0
│ └── git-clone@0.1.0
├─┬ handlebars@4.0.5
│ ├── async@1.5.2
│ ├─┬ optimist@0.6.1
│ │ ├── minimist@0.0.10
│ │ └── wordwrap@0.0.3
│ ├─┬ source-map@0.4.4
│ │ └── amdefine@1.0.0
│ └─┬ uglify-js@2.7.3
│ ├── async@0.2.10
│ ├── source-map@0.5.6
│ ├── uglify-to-browserify@1.0.2
│ └─┬ yargs@3.10.0
│ ├── camelcase@1.2.1
│ ├─┬ cliui@2.1.0
│ │ ├─┬ center-align@0.1.3
│ │ │ ├─┬ align-text@0.1.4
│ │ │ │ ├── longest@1.0.1
│ │ │ │ └── repeat-string@1.5.4
│ │ │ └── lazy-cache@1.0.4
│ │ ├── right-align@0.1.3
│ │ └── wordwrap@0.0.2
│ ├── decamelize@1.2.0
│ └── window-size@0.1.0
├─┬ inquirer@0.12.0
│ ├── ansi-escapes@1.4.0
│ ├── ansi-regex@2.0.0
│ ├─┬ cli-cursor@1.0.2
│ │ └─┬ restore-cursor@1.0.1
│ │ └── exit-hook@1.1.1
│ ├── cli-width@2.1.0
│ ├── figures@1.7.0
│ ├─┬ readline2@1.0.1
│ │ ├─┬ code-point-at@1.0.0
│ │ │ └── number-is-nan@1.0.0
│ │ ├── is-fullwidth-code-point@1.0.0
│ │ └── mute-stream@0.0.5
│ ├─┬ run-async@0.1.0
│ │ └─┬ once@1.3.3
│ │ └── wrappy@1.0.2
│ ├── rx-lite@3.1.2
│ ├── string-width@1.0.2
│ └── through@2.3.8
├─┬ metalsmith@2.2.0
│ ├── absolute@0.0.1
│ ├── async@0.9.2
│ ├─┬ chalk@0.5.1
│ │ ├── ansi-styles@1.1.0
│ │ ├─┬ has-ansi@0.1.0
│ │ │ └── ansi-regex@0.2.1
│ │ ├── strip-ansi@0.3.0
│ │ └── supports-color@0.2.0
│ ├── clone@0.1.19
│ ├─┬ co-fs-extra@0.0.2
│ │ ├─┬ co-fs@1.2.0
│ │ │ ├─┬ co-from-stream@0.0.0
│ │ │ │ └── co-read@0.0.1
│ │ │ └── thunkify@0.0.1
│ │ └─┬ fs-extra@0.12.0
│ │ ├── jsonfile@2.4.0
│ │ └── ncp@0.6.0
│ ├─┬ fs-extra@0.10.0
│ │ ├── jsonfile@1.2.0
│ │ ├─┬ mkdirp@0.5.1
│ │ │ └── minimist@0.0.8
│ │ └── ncp@0.5.1
│ ├─┬ gray-matter@2.0.2
│ │ ├─┬ ansi-red@0.1.1
│ │ │ └── ansi-wrap@0.1.0
│ │ ├─┬ extend-shallow@2.0.1
│ │ │ └── is-extendable@0.1.1
│ │ └─┬ js-yaml@3.6.1
│ │ ├─┬ argparse@1.0.7
│ │ │ └── sprintf-js@1.0.3
│ │ └── esprima@2.7.3
│ ├── has-generators@1.0.1
│ ├── is@2.2.1
│ ├── is-utf8@0.2.1
│ ├─┬ recursive-readdir@1.3.0
│ │ └─┬ minimatch@0.3.0
│ │ ├── lru-cache@2.7.3
│ │ └── sigmund@1.0.1
│ ├── stat-mode@0.2.2
│ ├── thunkify@2.1.2
│ ├─┬ unyield@0.0.1
│ │ └── co@3.1.0
│ ├─┬ ware@1.3.0
│ │ └── wrap-fn@0.1.5
│ └── win-fork@1.1.1
├─┬ minimatch@3.0.3
│ └─┬ brace-expansion@1.1.6
│ ├── balanced-match@0.4.2
│ └── concat-map@0.0.1
├─┬ ora@0.2.3
│ ├── cli-spinners@0.1.2
│ └── object-assign@4.1.0
├─┬ read-metadata@1.0.0
│ └── yaml-js@0.0.8
├─┬ request@2.74.0
│ ├── aws-sign2@0.6.0
│ ├── aws4@1.4.1
│ ├─┬ bl@1.1.2
│ │ └── readable-stream@2.0.6
│ ├── caseless@0.11.0
│ ├─┬ combined-stream@1.0.5
│ │ └── delayed-stream@1.0.0
│ ├── extend@3.0.0
│ ├── forever-agent@0.6.1
│ ├── form-data@1.0.1
│ ├─┬ har-validator@2.0.6
│ │ ├─┬ is-my-json-valid@2.13.1
│ │ │ ├── generate-function@2.0.0
│ │ │ ├─┬ generate-object-property@1.2.0
│ │ │ │ └── is-property@1.0.2
│ │ │ ├── jsonpointer@2.0.0
│ │ │ └── xtend@4.0.1
│ │ └─┬ pinkie-promise@2.0.1
│ │ └── pinkie@2.0.4
│ ├─┬ hawk@3.1.3
│ │ ├── boom@2.10.1
│ │ ├── cryptiles@2.0.5
│ │ ├── hoek@2.16.3
│ │ └── sntp@1.0.9
│ ├─┬ http-signature@1.1.1
│ │ ├── assert-plus@0.2.0
│ │ ├─┬ jsprim@1.3.1
│ │ │ ├── extsprintf@1.0.2
│ │ │ ├── json-schema@0.2.3
│ │ │ └── verror@1.3.6
│ │ └─┬ sshpk@1.10.0
│ │ ├── asn1@0.2.3
│ │ ├── assert-plus@1.0.0
│ │ ├─┬ bcrypt-pbkdf@1.0.0
│ │ │ └── tweetnacl@0.14.3
│ │ ├─┬ dashdash@1.14.0
│ │ │ └── assert-plus@1.0.0
│ │ ├── ecc-jsbn@0.1.1
│ │ ├─┬ getpass@0.1.6
│ │ │ └── assert-plus@1.0.0
│ │ ├── jodid25519@1.0.2
│ │ ├── jsbn@0.1.0
│ │ └── tweetnacl@0.13.3
│ ├── is-typedarray@1.0.0
│ ├── isstream@0.1.2
│ ├── json-stringify-safe@5.0.1
│ ├─┬ mime-types@2.1.11
│ │ └── mime-db@1.23.0
│ ├── node-uuid@1.4.7
│ ├── oauth-sign@0.8.2
│ ├── qs@6.2.1
│ ├── stringstream@0.0.5
│ ├── tough-cookie@2.3.1
│ └── tunnel-agent@0.4.3
├─┬ rimraf@2.5.4
│ └─┬ glob@7.0.6
│ ├── fs.realpath@1.0.0
│ ├── inflight@1.0.5
│ ├── inherits@2.0.3
│ └── path-is-absolute@1.0.0
├── semver@5.3.0
├── uid@0.0.2
└─┬ validate-npm-package-name@2.2.2
└── builtins@0.0.7

---> cf4f2212235e
Removing intermediate container 8bbddbb280c9
Step 36 : RUN if [ ${INSTALL_NODE} = true ]; then echo "" >> ~/.bashrc && echo 'export NVM_DIR="$HOME/.nvm"' >> ~/.bashrc && echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc ;fi
---> Running in 03b3a5b1ea72
---> 54fcdc778b5c
Removing intermediate container 03b3a5b1ea72
Step 37 : USER root
---> Running in 8da65beaadca
---> 9eddf71175b7
Removing intermediate container 8da65beaadca
Step 38 : ARG INSTALL_AEROSPIKE_EXTENSION=true
---> Running in 826f7911e6cc
---> a5dfdd35716b
Removing intermediate container 826f7911e6cc
Step 39 : ENV INSTALL_AEROSPIKE_EXTENSION ${INSTALL_AEROSPIKE_EXTENSION}
---> Running in 2b13666ab21f
---> b54beecff2dc
Removing intermediate container 2b13666ab21f
Step 40 : COPY ./aerospike.ini /etc/php/7.0/cli/conf.d/aerospike.ini
---> 3aeb59f2e264
Removing intermediate container cea313bbfb7d
Step 41 : RUN if [ ${INSTALL_AEROSPIKE_EXTENSION} = true ]; then curl -L -o /tmp/aerospike-client-php.tar.gz "https://github.com/luciano-jr/aerospike-client-php/archive/master.tar.gz" && mkdir -p aerospike-client-php && tar -C aerospike-client-php -zxvf /tmp/aerospike-client-php.tar.gz --strip 1 && ( cd aerospike-client-php/src/aerospike && phpize && ./build.sh && make install ) && rm /tmp/aerospike-client-php.tar.gz ;fi
---> Running in 3efa23400b03
---> fab4dcb9983a
Removing intermediate container 3efa23400b03
Step 42 : RUN if [ ${INSTALL_AEROSPIKE_EXTENSION} = false ]; then rm /etc/php/7.0/cli/conf.d/aerospike.ini ;fi
---> Running in 7b0860f474c3
---> 2844929a7dee
Removing intermediate container 7b0860f474c3
Step 43 : USER root
---> Running in e15f998506d2
---> 9a353fadeeb6
Removing intermediate container e15f998506d2
Step 44 : RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
---> Running in fcba5ca6aff3
---> d377b7a32a86
Removing intermediate container fcba5ca6aff3
Step 45 : WORKDIR /var/www/laravel
---> Running in b91181084b71
---> 365d039822fb
Removing intermediate container b91181084b71
Successfully built 365d039822fb

root@71ab8208f278:/var/www/laravel# npm
bash: npm: command not found
root@71ab8208f278:/var/www/laravel# node
bash: node: command not found
root@71ab8208f278:/var/www/laravel#
???


Did I do something wrong?
@appleboy
Copy link
Member

appleboy commented Sep 16, 2016

@johndiego Please switch to laradock user.

$ su - laradock

Please see the detail information #243

@johndiego
Copy link
Author

Thanks @appleboy =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants