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

"Illegal instruction" fail on workspace build with node (Windows only) #2537

Closed
elite6adger opened this issue Mar 14, 2020 · 1 comment
Closed

Comments

@elite6adger
Copy link

Description:

trying to build the workspace Dockerfile results in a error after the node install

Expected Behavior:

Can successfully build and run on Mac and Linux machines

Context information:

Running : Git Bash for Windows (v2.25 latest)

  • Selected all default options during install for Git Bash for Windows (including symbolic links)

Error Message given at build time

Step 143/256 : RUN if [ ${INSTALL_NODE} = true ]; then     mkdir -p $NVM_DIR &&     curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash         && . $NVM_DIR/nvm.sh         && nvm install ${NODE_VERSION}         && nvm use ${NODE_VERSION}         && if [ ${NPM_REGISTRY} ]; then         npm config set registry ${NPM_REGISTRY}         ;fi         && if [ ${INSTALL_NPM_GULP} = true ]; then         npm install -g gulp         ;fi         && if [ ${INSTALL_NPM_BOWER} = true ]; then         npm install -g bower         ;fi         && if [ ${INSTALL_NPM_VUE_CLI} = true ]; then         npm install -g @vue/cli         ;fi         && if [ ${INSTALL_NPM_ANGULAR_CLI} = true ]; then         npm install -g @angular/cli         ;fi         && ln -s `npm bin --global` /home/laradock/.node-bin ;fi
 ---> Running in d9ecc89503e7
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 12819  100 12819    0     0  40602      0 --:--:-- --:--:-- --:--:-- 40566
=> Downloading nvm from git to '/home/laradock/.nvm'
=> Cloning into '/home/laradock/.nvm'...
=> Compressing and cleaning up git repository

=> Appending nvm source string to /home/laradock/.bashrc
=> Appending bash_completion source string to /home/laradock/.bashrc
=> Installing Node.js version node
Downloading and installing node v13.11.0...
Downloading https://nodejs.org/dist/v13.11.0/node-v13.11.0-linux-x64.tar.xz...
######################################################################## 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v13.11.0 (npm v6.13.7)
Creating default alias: default -> node (-> v13.11.0)
=> Node.js version node has been successfully installed
=> Close and reopen your terminal to start using nvm or run the following to use it now:

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
v13.11.0 is already installed.
Now using node v13.11.0 (npm v6.13.7)
Now using node v13.11.0 (npm v6.13.7)
Illegal instruction
Service 'workspace' failed to build: The command '/bin/sh -c if [ ${INSTALL_NODE} = true ]; then     mkdir -p $NVM_DIR &&     curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash         && . $NVM_DIR/nvm.sh         && nvm install ${NODE_VERSION}         && nvm use ${NODE_VERSION}         && if [ ${NPM_REGISTRY} ]; then         npm config set registry ${NPM_REGISTRY}         ;fi         && if [ ${INSTALL_NPM_GULP} = true ]; then         npm install -g gulp         ;fi         && if [ ${INSTALL_NPM_BOWER} = true ]; then         npm install -g bower         ;fi         && if [ ${INSTALL_NPM_VUE_CLI} = true ]; then         npm install -g @vue/cli         ;fi         && if [ ${INSTALL_NPM_ANGULAR_CLI} = true ]; then         npm install -g @angular/cli         ;fi         && ln -s `npm bin --global` /home/laradock/.node-bin ;fi' returned a non-zero code: 132

Output of docker version

Docker version 19.03.8, build afacb8b

Output of docker-compose version

docker-compose version 1.25.4, build 8d51620a

System info: Mac, Windows or Linux. Include which disto/version

Windows 10 Pro - 64 Bit
Version 10.0.18363 Build 18363

Steps to reproduce the issue:

  1. Download laradock
  2. docker-compose build apache2 mysql php-fpm php-worker workspace
  3. it will error trying to install node (default .env settings)

Stacktrace & Additional info:

Building workspace
Step 1/256 : ARG LARADOCK_PHP_VERSION
Step 2/256 : FROM laradock/workspace:2.6.1-${LARADOCK_PHP_VERSION}
 ---> 9e3231c96fa9
Step 3/256 : LABEL maintainer="Mahmoud Zalt <mahmoud@zalt.me>"
 ---> Using cache
 ---> 744521739c5d
Step 4/256 : ARG LARADOCK_PHP_VERSION
 ---> Using cache
 ---> f4fa61f216eb
Step 5/256 : ENV DEBIAN_FRONTEND noninteractive
 ---> Using cache
 ---> 0af18039dba3
Step 6/256 : ARG CHANGE_SOURCE=false
 ---> Using cache
 ---> a68fa7c90646
Step 7/256 : RUN if [ ${CHANGE_SOURCE} = true ]; then     sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/' /etc/apt/sources.list &&     sed -i 's/security.debian.org/mirrors.tuna.tsinghua.edu.cn/' /etc/apt/sources.list &&     sed -i 's/security-cdn.debian.org/mirrors.tuna.tsinghua.edu.cn/' /etc/apt/sources.list ;fi
 ---> Using cache
 ---> a2e2e1694c0d
Step 8/256 : USER root
 ---> Using cache
 ---> 0a133964fd68
Step 9/256 : ARG PUID=1000
 ---> Using cache
 ---> e76a2cf9c060
Step 10/256 : ENV PUID ${PUID}
 ---> Using cache
 ---> 491df4a50363
Step 11/256 : ARG PGID=1000
 ---> Using cache
 ---> 15f7bf28eb76
Step 12/256 : ENV PGID ${PGID}
 ---> Using cache
 ---> 3cf39fd09375
Step 13/256 : ARG CHANGE_SOURCE=false
 ---> Using cache
 ---> 00dec8840ebb
Step 14/256 : ARG UBUNTU_SOURCE
 ---> Using cache
 ---> 5e0638319287
Step 15/256 : COPY ./sources.sh /tmp/sources.sh
 ---> Using cache
 ---> 153ef6f4e690
Step 16/256 : RUN if [ ${CHANGE_SOURCE} = true ]; then     /bin/sh -c /tmp/sources.sh &&     rm -rf /tmp/sources.sh ;fi
 ---> Using cache
 ---> 08dee213cde3
Step 17/256 : RUN set -xe;     apt-get update -yqq &&     pecl channel-update pecl.php.net &&     groupadd -g ${PGID} laradock &&     useradd -u ${PUID} -g laradock -m laradock -G docker_env &&     usermod -p "*" laradock -s /bin/bash &&     apt-get install -yqq       apt-utils       libzip-dev zip unzip       php${LARADOCK_PHP_VERSION}-zip       nasm &&       php -m | grep -q 'zip'
 ---> Using cache
 ---> 59d8844402da
Step 18/256 : ARG TZ=UTC
 ---> Using cache
 ---> 7813377eb091
Step 19/256 : ENV TZ ${TZ}
 ---> Using cache
 ---> fb8bd08a452f
Step 20/256 : RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
 ---> Using cache
 ---> 74c16a4ac1ab
Step 21/256 : USER root
 ---> Using cache
 ---> 7c73b7c34781
Step 22/256 : COPY ./aliases.sh /root/aliases.sh
 ---> Using cache
 ---> 9bbf4a21bdcf
Step 23/256 : COPY ./aliases.sh /home/laradock/aliases.sh
 ---> Using cache
 ---> 78a0af8984d5
Step 24/256 : RUN sed -i 's/\r//' /root/aliases.sh &&     sed -i 's/\r//' /home/laradock/aliases.sh &&     chown laradock:laradock /home/laradock/aliases.sh &&     echo "" >> ~/.bashrc &&     echo "# Load Custom Aliases" >> ~/.bashrc &&     echo "source ~/aliases.sh" >> ~/.bashrc &&           echo "" >> ~/.bashrc
 ---> Using cache
 ---> d5fe3cc449c9
Step 25/256 : USER laradock
 ---> Using cache
 ---> 0ac265f48cbe
Step 26/256 : RUN echo "" >> ~/.bashrc &&     echo "# Load Custom Aliases" >> ~/.bashrc &&     echo "source ~/aliases.sh" >> ~/.bashrc &&         echo "" >> ~/.bashrc
 ---> Using cache
 ---> dfd2ee9c8e74
Step 27/256 : USER root
 ---> Using cache
 ---> 0e1048c733a5
Step 28/256 : COPY ./composer.json /home/laradock/.composer/composer.json
 ---> Using cache
 ---> 245972d3f76d
Step 29/256 : COPY ./auth.json /home/laradock/.composer/auth.json
 ---> Using cache
 ---> decdeb404ea4
Step 30/256 : RUN chown -R laradock:laradock /home/laradock/.composer
 ---> Using cache
 ---> bb4af64151b6
Step 31/256 : RUN echo "" >> ~/.bashrc &&     echo 'export PATH="$HOME/.composer/vendor/bin:$PATH"' >> ~/.bashrc
 ---> Using cache
 ---> 644d6347065e
Step 32/256 : USER laradock
 ---> Using cache
 ---> 64ebd72d6e70
Step 33/256 : ARG COMPOSER_GLOBAL_INSTALL=false
 ---> Using cache
 ---> 2944cb3be68b
Step 34/256 : ENV COMPOSER_GLOBAL_INSTALL ${COMPOSER_GLOBAL_INSTALL}
 ---> Using cache
 ---> 0a0d0459266e
Step 35/256 : RUN if [ ${COMPOSER_GLOBAL_INSTALL} = true ]; then     composer global install ;fi
 ---> Using cache
 ---> 0d4b8d430418
Step 36/256 : ARG COMPOSER_AUTH=false
 ---> Using cache
 ---> 6f25f9f787d4
Step 37/256 : ENV COMPOSER_AUTH ${COMPOSER_AUTH}
 ---> Using cache
 ---> 6d91af21235c
Step 38/256 : RUN if [ ${COMPOSER_AUTH} = false ]; then     rm /home/laradock/.composer/auth.json ;fi
 ---> Using cache
 ---> 120336bed0f6
Step 39/256 : ARG COMPOSER_REPO_PACKAGIST
 ---> Using cache
 ---> 0502067b0409
Step 40/256 : ENV COMPOSER_REPO_PACKAGIST ${COMPOSER_REPO_PACKAGIST}
 ---> Using cache
 ---> 002c9e3f2af9
Step 41/256 : RUN if [ ${COMPOSER_REPO_PACKAGIST} ]; then     composer config -g repo.packagist composer ${COMPOSER_REPO_PACKAGIST} ;fi
 ---> Using cache
 ---> 6c7507261524
Step 42/256 : RUN echo "" >> ~/.bashrc &&     echo 'export PATH="~/.composer/vendor/bin:$PATH"' >> ~/.bashrc
 ---> Using cache
 ---> b4a478c33d31
Step 43/256 : USER laradock
 ---> Using cache
 ---> ec31e84dc3a7
Step 44/256 : RUN echo "" >> ~/.bashrc &&     echo 'export PATH="/var/www/vendor/bin:$PATH"' >> ~/.bashrc
 ---> Using cache
 ---> adbc76457a79
Step 45/256 : USER root
 ---> Using cache
 ---> 3907df7e5bae
Step 46/256 : COPY ./crontab /etc/cron.d
 ---> Using cache
 ---> 621eb0de0b64
Step 47/256 : RUN chmod -R 644 /etc/cron.d
 ---> Using cache
 ---> 57a2082986d4
Step 48/256 : USER root
 ---> Using cache
 ---> 7faa32b8f165
Step 49/256 : ARG INSTALL_DRUSH=false
 ---> Using cache
 ---> 0d096f39c701
Step 50/256 : ARG DRUSH_VERSION
 ---> Using cache
 ---> 7e515cf9faf1
Step 51/256 : ENV DRUSH_VERSION ${DRUSH_VERSION}
 ---> Using cache
 ---> b7258456e9b0
Step 52/256 : RUN if [ ${INSTALL_DRUSH} = true ]; then     apt-get -y install mysql-client &&     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
 ---> 903cb377b4e4
Step 53/256 : USER root
 ---> Using cache
 ---> 75202d809073
Step 54/256 : ARG INSTALL_WP_CLI=false
 ---> Using cache
 ---> 9b3f084f3ef6
Step 55/256 : RUN if [ ${INSTALL_WP_CLI} = true ]; then     curl -fsSL -o /usr/local/bin/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar | bash &&     chmod +x /usr/local/bin/wp ;fi
 ---> Using cache
 ---> eacbe8d3b9eb
Step 56/256 : ARG INSTALL_BZ2=false
 ---> Using cache
 ---> a63ee6b6d89b
Step 57/256 : RUN if [ ${INSTALL_BZ2} = true ]; then   apt-get -y install php${LARADOCK_PHP_VERSION}-bz2 ;fi
 ---> Using cache
 ---> 71b06b523be7
Step 58/256 : USER root
 ---> Using cache
 ---> 173a42e969bf
Step 59/256 : ARG INSTALL_GMP=false
 ---> Using cache
 ---> b6119efb29c4
Step 60/256 : ARG PHP_VERSION=${LARADOCK_PHP_VERSION}
 ---> Using cache
 ---> e5d1ca954155
Step 61/256 : RUN if [ ${INSTALL_GMP} = true ]; then   apt-get -y install php${LARADOCK_PHP_VERSION}-gmp ;fi
 ---> Using cache
 ---> 07043e35bf03
Step 62/256 : USER root
 ---> Using cache
 ---> c93adbe62aa3
Step 63/256 : ARG INSTALL_SSH2=false
 ---> Using cache
 ---> fcbb7929e4f0
Step 64/256 : RUN if [ ${INSTALL_SSH2} = true ]; then   apt-get -y install libssh2-1-dev php${LARADOCK_PHP_VERSION}-ssh2 ;fi
 ---> Using cache
 ---> 6d3820672381
Step 65/256 : USER root
 ---> Using cache
 ---> 0c77f20c83cf
Step 66/256 : ARG INSTALL_SOAP=false
 ---> Using cache
 ---> 8713025cc8e0
Step 67/256 : RUN if [ ${INSTALL_SOAP} = true ]; then   apt-get -y install libxml2-dev php${LARADOCK_PHP_VERSION}-soap ;fi
 ---> Using cache
 ---> d6a7e0ea41c6
Step 68/256 : USER root
 ---> Using cache
 ---> 7c30324c1f19
Step 69/256 : ARG INSTALL_XSL=false
 ---> Using cache
 ---> 472507399e1f
Step 70/256 : RUN if [ ${INSTALL_XSL} = true ]; then   apt-get -y install libxslt-dev php${LARADOCK_PHP_VERSION}-xsl ;fi
 ---> Using cache
 ---> fe6090dceb6e
Step 71/256 : ARG INSTALL_LDAP=false
 ---> Using cache
 ---> d52af63661ad
Step 72/256 : RUN if [ ${INSTALL_LDAP} = true ]; then     apt-get install -y libldap2-dev &&     apt-get install -y php${LARADOCK_PHP_VERSION}-ldap ;fi
 ---> Using cache
 ---> a906516ec2a9
Step 73/256 : ARG INSTALL_SMB=false
 ---> Using cache
 ---> c5eb682a814b
Step 74/256 : RUN if [ ${INSTALL_SMB} = true ]; then     apt-get install -y smbclient php-smbclient coreutils ;fi
 ---> Using cache
 ---> 01477de969c4
Step 75/256 : ARG INSTALL_IMAP=false
 ---> Using cache
 ---> 8c35e944972d
Step 76/256 : RUN if [ ${INSTALL_IMAP} = true ]; then     apt-get install -y php${LARADOCK_PHP_VERSION}-imap ;fi
 ---> Using cache
 ---> 51eff5146d02
Step 77/256 : USER root
 ---> Using cache
 ---> d8d1bd277e4c
Step 78/256 : ARG INSTALL_SUBVERSION=false
 ---> Using cache
 ---> 3119fcf06d08
Step 79/256 : RUN if [ ${INSTALL_SUBVERSION} = true ]; then     apt-get install -y subversion ;fi
 ---> Using cache
 ---> 6ba2be59057f
Step 80/256 : USER root
 ---> Using cache
 ---> 8a60c1d18e72
Step 81/256 : ARG INSTALL_XDEBUG=false
 ---> Using cache
 ---> 12c25dc5e228
Step 82/256 : RUN if [ ${INSTALL_XDEBUG} = true ]; then     apt-get install -y php${LARADOCK_PHP_VERSION}-xdebug &&     sed -i 's/^;//g' /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/20-xdebug.ini ;fi
 ---> Using cache
 ---> ffe0bc8b4a3a
Step 83/256 : COPY ./xdebug.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/xdebug.ini
 ---> Using cache
 ---> 73436238ea81
Step 84/256 : RUN sed -i "s/xdebug.remote_autostart=0/xdebug.remote_autostart=1/" /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/xdebug.ini &&     sed -i "s/xdebug.remote_enable=0/xdebug.remote_enable=1/" /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/xdebug.ini &&     sed -i "s/xdebug.cli_color=0/xdebug.cli_color=1/" /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/xdebug.ini
 ---> Using cache
 ---> 0defc806dfab
Step 85/256 : USER root
 ---> Using cache
 ---> b4ae0f6ba445
Step 86/256 : ARG INSTALL_PCOV=false
 ---> Using cache
 ---> 291433b217a7
Step 87/256 : RUN if [ ${INSTALL_PCOV} = true ]; then   if [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ]; then     if [ $(php -r "echo PHP_MINOR_VERSION;") != "0" ]; then       pecl install pcov &&       echo "extension=pcov.so" >> /etc/php/${LARADOCK_PHP_VERSION}/cli/php.ini &&       echo "pcov.enabled" >> /etc/php/${LARADOCK_PHP_VERSION}/cli/php.ini     ;fi   ;fi ;fi
 ---> Using cache
 ---> 6de2a9072fea
Step 88/256 : USER root
 ---> Using cache
 ---> 72ed32d99de3
Step 89/256 : ARG INSTALL_PHPDBG=false
 ---> Using cache
 ---> 7fcb62b2672f
Step 90/256 : RUN if [ ${INSTALL_PHPDBG} = true ]; then     apt-get install -y --force-yes php${LARADOCK_PHP_VERSION}-phpdbg ;fi
 ---> Using cache
 ---> d3fb1e945664
Step 91/256 : ARG INSTALL_BLACKFIRE=false
 ---> Using cache
 ---> f3c443a075dd
Step 92/256 : ARG BLACKFIRE_CLIENT_ID
 ---> Using cache
 ---> df4a588cb71d
Step 93/256 : ENV BLACKFIRE_CLIENT_ID ${BLACKFIRE_CLIENT_ID}
 ---> Using cache
 ---> cd43cc857c77
Step 94/256 : ARG BLACKFIRE_CLIENT_TOKEN
 ---> Using cache
 ---> d4f7d7ebd20d
Step 95/256 : ENV BLACKFIRE_CLIENT_TOKEN ${BLACKFIRE_CLIENT_TOKEN}
 ---> Using cache
 ---> 3e95902587e0
Step 96/256 : RUN if [ ${INSTALL_XDEBUG} = false -a ${INSTALL_BLACKFIRE} = true ]; then     curl -L https://packages.blackfire.io/gpg.key | apt-key add - &&     echo "deb http://packages.blackfire.io/debian any main" | tee /etc/apt/sources.list.d/blackfire.list &&     apt-get update -yqq &&     apt-get install blackfire-agent ;fi
 ---> Using cache
 ---> a09547501cc1
Step 97/256 : ARG INSTALL_WORKSPACE_SSH=false
 ---> Using cache
 ---> 7cec66da3346
Step 98/256 : COPY insecure_id_rsa /tmp/id_rsa
 ---> Using cache
 ---> 853f1245e0c3
Step 99/256 : COPY insecure_id_rsa.pub /tmp/id_rsa.pub
 ---> Using cache
 ---> e70824c4aa89
Step 100/256 : 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     && cp -rf /root/.ssh /home/laradock     && chown -R laradock:laradock /home/laradock/.ssh ;fi
 ---> Using cache
 ---> 3f4111256c2a
Step 101/256 : ARG INSTALL_MONGO=false
 ---> Using cache
 ---> d213448066e1
Step 102/256 : RUN if [ ${INSTALL_MONGO} = true ]; then     if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then       pecl install mongo &&       echo "extension=mongo.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/mongo.ini &&       ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/mongo.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/30-mongo.ini     ;fi &&     pecl install mongodb &&     echo "extension=mongodb.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/mongodb.ini &&     ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/mongodb.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/30-mongodb.ini ;fi
 ---> Using cache
 ---> 0cbf5b506113
Step 103/256 : ARG INSTALL_AMQP=false
 ---> Using cache
 ---> 4d974941592c
Step 104/256 : RUN if [ ${INSTALL_AMQP} = true ]; then     apt-get install librabbitmq-dev -y &&     pecl -q install amqp &&     echo "extension=amqp.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/amqp.ini &&     ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/amqp.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/30-amqp.ini ;fi
 ---> Using cache
 ---> 65fe6d369c8f
Step 105/256 : ARG INSTALL_CASSANDRA=false
 ---> Using cache
 ---> 5f15bb4f83da
Step 106/256 : RUN if [ ${INSTALL_CASSANDRA} = true ]; then     apt-get install libgmp-dev -y &&     curl https://downloads.datastax.com/cpp-driver/ubuntu/18.04/dependencies/libuv/v1.28.0/libuv1-dev_1.28.0-1_amd64.deb -o libuv1-dev.deb &&     curl https://downloads.datastax.com/cpp-driver/ubuntu/18.04/dependencies/libuv/v1.28.0/libuv1_1.28.0-1_amd64.deb -o libuv1.deb &&     curl https://downloads.datastax.com/cpp-driver/ubuntu/18.04/cassandra/v2.12.0/cassandra-cpp-driver-dev_2.12.0-1_amd64.deb -o cassandra-cpp-driver-dev.deb &&     curl https://downloads.datastax.com/cpp-driver/ubuntu/18.04/cassandra/v2.12.0/cassandra-cpp-driver_2.12.0-1_amd64.deb -o cassandra-cpp-driver.deb &&     dpkg -i libuv1.deb &&     dpkg -i libuv1-dev.deb &&     dpkg -i cassandra-cpp-driver.deb &&     dpkg -i cassandra-cpp-driver-dev.deb &&     rm libuv1.deb libuv1-dev.deb cassandra-cpp-driver-dev.deb cassandra-cpp-driver.deb &&     cd /usr/src &&     git clone https://github.com/datastax/php-driver.git &&     cd /usr/src/php-driver/ext &&     phpize &&     mkdir /usr/src/php-driver/build &&     cd /usr/src/php-driver/build &&     ../ext/configure > /dev/null &&     make clean >/dev/null &&     make >/dev/null 2>&1 &&     make install &&     echo "extension=cassandra.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/cassandra.ini &&     ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/cassandra.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/30-cassandra.ini ;fi
 ---> Using cache
 ---> 87f12673dcfe
Step 107/256 : ARG INSTALL_GEARMAN=false
 ---> Using cache
 ---> 356a15da11cc
Step 108/256 : RUN if [ ${INSTALL_GEARMAN} = true ]; then     add-apt-repository -y ppa:ondrej/pkg-gearman &&     apt-get update &&     apt-get install php-gearman -y  ;fi
 ---> Using cache
 ---> d30e5a288ec5
Step 109/256 : ARG INSTALL_PHPREDIS=false
 ---> Using cache
 ---> 51cfaa7a8012
Step 110/256 : RUN if [ ${INSTALL_PHPREDIS} = true ]; then     apt-get update -yqq &&     apt-get install -yqq php-redis ;fi
 ---> Using cache
 ---> ffe6d4f99c4b
Step 111/256 : ARG INSTALL_SWOOLE=false
 ---> Using cache
 ---> 1352253215cb
Step 112/256 : RUN if [ ${INSTALL_SWOOLE} = true ]; then     if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then       pecl -q install swoole-2.0.10;     else       if [ $(php -r "echo PHP_MINOR_VERSION;") = "0" ]; then         pecl install swoole-2.2.0;       else         pecl install swoole;       fi     fi &&     echo "extension=swoole.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/swoole.ini &&     ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/swoole.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/20-swoole.ini     && php -m | grep -q 'swoole' ;fi
 ---> Using cache
 ---> 3d78ae539ba3
Step 113/256 : ARG INSTALL_TAINT=false
 ---> Using cache
 ---> 0ec66bfe69d8
Step 114/256 : RUN if [ "${INSTALL_TAINT}" = true ]; then     if [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ]; then       pecl install taint &&       echo "extension=taint.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/taint.ini &&       ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/taint.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/20-taint.ini &&       php -m | grep -q 'taint';     fi ;fi
 ---> Using cache
 ---> 69af01fa96bd
Step 115/256 : ARG INSTALL_LIBPNG=false
 ---> Using cache
 ---> bc909a88d171
Step 116/256 : RUN if [ ${INSTALL_LIBPNG} = true ]; then     apt-get update &&     apt-get install libpng16-16 ;fi
 ---> Using cache
 ---> c690975a2f4b
Step 117/256 : ARG INSTALL_INOTIFY=false
 ---> Using cache
 ---> c948b5b1b4d8
Step 118/256 : RUN if [ ${INSTALL_INOTIFY} = true ]; then     pecl -q install inotify &&     echo "extension=inotify.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/inotify.ini &&     ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/inotify.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/20-inotify.ini ;fi
 ---> Using cache
 ---> f6fb58b123c5
Step 119/256 : ARG INSTALL_AST=false
 ---> Using cache
 ---> c83394c55f61
Step 120/256 : ARG AST_VERSION=1.0.3
 ---> Using cache
 ---> 110cf6dc018c
Step 121/256 : ENV AST_VERSION ${AST_VERSION}
 ---> Using cache
 ---> 41d1fab0e990
Step 122/256 : RUN if [ ${INSTALL_AST} = true ]; then     printf "\n" | pecl -q install ast-${AST_VERSION} &&     echo "extension=ast.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/ast.ini &&     phpenmod -v ${LARADOCK_PHP_VERSION} -s cli ast ;fi
 ---> Using cache
 ---> d9cc829eeb9e
Step 123/256 : ARG INSTALL_FSWATCH=false
 ---> Using cache
 ---> 3c5a4c162000
Step 124/256 : RUN if [ ${INSTALL_FSWATCH} = true ]; then     apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 47FE03C1     && add-apt-repository -y ppa:hadret/fswatch     || apt-get update -yqq     && apt-get -y install fswatch ;fi
 ---> Using cache
 ---> 22d10972936f
Step 125/256 : ARG INSTALL_IONCUBE=false
 ---> Using cache
 ---> d067939a6ced
Step 126/256 : RUN if [ ${INSTALL_IONCUBE} = true ]; then     curl -L -o /tmp/ioncube_loaders_lin_x86-64.tar.gz https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz     && tar zxpf /tmp/ioncube_loaders_lin_x86-64.tar.gz -C /tmp     && mv /tmp/ioncube/ioncube_loader_lin_${LARADOCK_PHP_VERSION}.so $(php -r "echo ini_get('extension_dir');")/ioncube_loader.so     && echo "zend_extension=ioncube_loader.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/0ioncube.ini     && rm -rf /tmp/ioncube* ;fi
 ---> Using cache
 ---> 6919afdec284
Step 127/256 : USER root
 ---> Using cache
 ---> e217e05ac3ac
Step 128/256 : ARG INSTALL_DRUPAL_CONSOLE=false
 ---> Using cache
 ---> be2b13c2a0af
Step 129/256 : RUN if [ ${INSTALL_DRUPAL_CONSOLE} = true ]; then     apt-get -y install mysql-client &&     curl https://drupalconsole.com/installer -L -o drupal.phar &&     mv drupal.phar /usr/local/bin/drupal &&     chmod +x /usr/local/bin/drupal ;fi
 ---> Using cache
 ---> 33745ef1f5e2
Step 130/256 : USER laradock
 ---> Using cache
 ---> 50283e9a3860
Step 131/256 : ARG NODE_VERSION=node
 ---> Using cache
 ---> 5ee9b37d00b1
Step 132/256 : ENV NODE_VERSION ${NODE_VERSION}
 ---> Using cache
 ---> 9acfab085b4c
Step 133/256 : ARG INSTALL_NODE=false
 ---> Using cache
 ---> 73e7071fa3fc
Step 134/256 : ARG INSTALL_NPM_GULP=false
 ---> Using cache
 ---> 7d9d42640f7e
Step 135/256 : ARG INSTALL_NPM_BOWER=false
 ---> Using cache
 ---> 3defeef6cba1
Step 136/256 : ARG INSTALL_NPM_VUE_CLI=false
 ---> Using cache
 ---> 0bbea7fd0ccd
Step 137/256 : ARG INSTALL_NPM_ANGULAR_CLI=false
 ---> Using cache
 ---> 971c74ebab4a
Step 138/256 : ARG NPM_REGISTRY
 ---> Using cache
 ---> 1db765b85d23
Step 139/256 : ENV NPM_REGISTRY ${NPM_REGISTRY}
 ---> Using cache
 ---> 6b1edb3a3628
Step 140/256 : ENV NVM_DIR /home/laradock/.nvm
 ---> Using cache
 ---> f3d576112f75
Step 141/256 : ARG NVM_NODEJS_ORG_MIRROR
 ---> Using cache
 ---> dce91a7543be
Step 142/256 : ENV NVM_NODEJS_ORG_MIRROR ${NVM_NODEJS_ORG_MIRROR}
 ---> Using cache
 ---> b455a4ca74fa
Step 143/256 : RUN if [ ${INSTALL_NODE} = true ]; then     mkdir -p $NVM_DIR &&     curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash         && . $NVM_DIR/nvm.sh         && nvm install ${NODE_VERSION}         && nvm use ${NODE_VERSION}         && if [ ${NPM_REGISTRY} ]; then         npm config set registry ${NPM_REGISTRY}         ;fi         && if [ ${INSTALL_NPM_GULP} = true ]; then         npm install -g gulp         ;fi         && if [ ${INSTALL_NPM_BOWER} = true ]; then         npm install -g bower         ;fi         && if [ ${INSTALL_NPM_VUE_CLI} = true ]; then         npm install -g @vue/cli         ;fi         && if [ ${INSTALL_NPM_ANGULAR_CLI} = true ]; then         npm install -g @angular/cli         ;fi         && ln -s `npm bin --global` /home/laradock/.node-bin ;fi
 ---> Running in d9ecc89503e7
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 12819  100 12819    0     0  40602      0 --:--:-- --:--:-- --:--:-- 40566
=> Downloading nvm from git to '/home/laradock/.nvm'
=> Cloning into '/home/laradock/.nvm'...
=> Compressing and cleaning up git repository

=> Appending nvm source string to /home/laradock/.bashrc
=> Appending bash_completion source string to /home/laradock/.bashrc
=> Installing Node.js version node
Downloading and installing node v13.11.0...
Downloading https://nodejs.org/dist/v13.11.0/node-v13.11.0-linux-x64.tar.xz...
######################################################################## 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v13.11.0 (npm v6.13.7)
Creating default alias: default -> node (-> v13.11.0)
=> Node.js version node has been successfully installed
=> Close and reopen your terminal to start using nvm or run the following to use it now:

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
v13.11.0 is already installed.
Now using node v13.11.0 (npm v6.13.7)
Now using node v13.11.0 (npm v6.13.7)
Illegal instruction
Service 'workspace' failed to build: The command '/bin/sh -c if [ ${INSTALL_NODE} = true ]; then     mkdir -p $NVM_DIR &&     curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash         && . $NVM_DIR/nvm.sh         && nvm install ${NODE_VERSION}         && nvm use ${NODE_VERSION}         && if [ ${NPM_REGISTRY} ]; then         npm config set registry ${NPM_REGISTRY}         ;fi         && if [ ${INSTALL_NPM_GULP} = true ]; then         npm install -g gulp         ;fi         && if [ ${INSTALL_NPM_BOWER} = true ]; then         npm install -g bower         ;fi         && if [ ${INSTALL_NPM_VUE_CLI} = true ]; then         npm install -g @vue/cli         ;fi         && if [ ${INSTALL_NPM_ANGULAR_CLI} = true ]; then         npm install -g @angular/cli         ;fi         && ln -s `npm bin --global` /home/laradock/.node-bin ;fi' returned a non-zero code: 132

@elite6adger elite6adger changed the title "Illegal instruction" fail on workspace build with node "Illegal instruction" fail on workspace build with node (Windows only) Mar 15, 2020
@elite6adger
Copy link
Author

#update - found the issue..

It turns out the node v13+ is leveraging some CPU vectorization that my CPU (older machine) does not have. This created this issue.

I set the Node version to v12.16.1 (which is the latest v12 at the time) and this started to work again.

Just adding this for people in the future that may run into this problem

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

No branches or pull requests

1 participant