Skip to content

Invalid option name: set: pipefail #110

Open
@hanstsangcwc

Description

@hanstsangcwc

trying to build php image but not working.

PS C:\code\gitlab-ci-pipeline-php> docker build --compress -f php/7.4/Dockerfile .
error during connect: Post http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.40/build?buildargs=%7B%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=php%2F7.4%2FDockerfile&labels=%7B%7D&memory=0&memswap=0&networkmode=default&rm=1&session=qe9ysrmr6vvmzvuvwqe8i2wyk&shmsize=0&target=&ulimits=null&version=1: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.
PS C:\code\gitlab-ci-pipeline-php> docker build --compress -f php/7.4/Dockerfile .
Sending build context to Docker daemon  6.079kB
Step 1/18 : FROM php:7.4
7.4: Pulling from library/php
bb79b6b2107f: Pull complete
80f7a64e4b25: Pull complete
da391f3e81f0: Pull complete
8199ae3052e1: Pull complete
06bd7d815b87: Pull complete
0b3dde639b22: Pull complete
0d2baf28aa11: Pull complete
97a00bacf13c: Pull complete
3066b2d21161: Pull complete
Digest: sha256:edf6ecb356d76e0be95f61f4e79ac40515b9af8f15d0e916953492fb65a33c0a
Status: Downloaded newer image for php:7.4
 ---> f4f453029716
Step 2/18 : ARG BUILD_DATE
 ---> Running in 6a14add9bd3d
Removing intermediate container 6a14add9bd3d
 ---> a9bb9be55b72
Step 3/18 : ARG VCS_REF
 ---> Running in af0094cb3811
Removing intermediate container af0094cb3811
 ---> 256f85f88b2d
Step 4/18 : LABEL maintainer="Eduardo Bizarro <edbizarro@gmail.com>"   PHP="7.4"   NODE="14"   org.label-schema.name="edbizarro/gitlab-ci-pipeline-php"   org.label-schema.description=":coffee: Docker images for build and test PHP applications with Gitlab CI (or any other CI plataform!)"   org.label-schema.build-date=$BUILD_DATE   org.label-schema.schema-version="1.0"   org.label-schema.vcs-url="https://github.com/edbizarro/gitlab-ci-pipeline-php"   org.label-schema.vcs-ref=$VCS_REF
 ---> Running in 87168ffbcb6f
Removing intermediate container 87168ffbcb6f
 ---> 95544d88e7c4
Step 5/18 : ENV IMAGE_USER=php
 ---> Running in a14a7942383d
Removing intermediate container a14a7942383d
 ---> 21aecc1470ad
Step 6/18 : ENV HOME=/home/$IMAGE_USER
 ---> Running in ad046c3aec4b
Removing intermediate container ad046c3aec4b
 ---> 4bce20dcd7ca
Step 7/18 : ENV COMPOSER_HOME=$HOME/.composer
 ---> Running in 65ca5db7f084
Removing intermediate container 65ca5db7f084
 ---> 0e8bbf378337
Step 8/18 : ENV PATH=$HOME/.yarn/bin:$PATH
 ---> Running in 522d031aa2e4
Removing intermediate container 522d031aa2e4
 ---> 0cc901dc6c73
Step 9/18 : ENV GOSS_VERSION="0.3.8"
 ---> Running in d0243849d9e6
Removing intermediate container d0243849d9e6
 ---> 5c2f932de19d
Step 10/18 : ENV PHP_VERSION=7.4
 ---> Running in 8464b4213ded
Removing intermediate container 8464b4213ded
 ---> 919aa1719be0
Step 11/18 : USER root
 ---> Running in 657dd7646420
Removing intermediate container 657dd7646420
 ---> 5652b78204f2
Step 12/18 : WORKDIR /tmp
 ---> Running in e14f7786a643
Removing intermediate container e14f7786a643
 ---> 8ef7e154ba04
Step 13/18 : COPY --from=composer:1 /usr/bin/composer /usr/bin/composer
1: Pulling from library/composer
188c0c94c7c5: Pull complete
45f8bf6cfdbe: Pull complete
ce5be7974012: Pull complete
a99dd6507fe5: Pull complete
84ab7a98c2ef: Pull complete
07fa46c284ad: Pull complete
7ae9397c88ea: Pull complete
5e4748577090: Pull complete
36fcf1c47c04: Pull complete
0e7ab985a9bd: Pull complete
587323d75f78: Pull complete
5d927604c025: Pull complete
c18a39bfedf9: Pull complete
75dfe5229db8: Pull complete
33c89e0b5301: Pull complete
Digest: sha256:7b7b6aa414b68416bafaa08ed40bf89e03beadaaa774d211a492d0559ba129c2
Status: Downloaded newer image for composer:1
 ---> f77306b81c25
Step 14/18 : COPY ./php/scripts/*.sh /tmp/
 ---> b9a7ad716a5a
Step 15/18 : RUN chmod +x /tmp/*.sh
 ---> Running in ecff54a37161
Removing intermediate container ecff54a37161
 ---> 702278b71dd7
Step 16/18 : RUN bash ./packages.sh   && bash ./extensions.sh   && bash ./node.sh   && adduser --disabled-password --gecos "" $IMAGE_USER &&   echo "PATH=$(yarn global bin):$PATH" >> /root/.profile &&   echo "PATH=$(yarn global bin):$PATH" >> /root/.bashrc &&   echo "$IMAGE_USER  ALL = ( ALL ) NOPASSWD: ALL" >> /etc/sudoers &&   mkdir -p /var/www/html   && composer global require "hirak/prestissimo:^0.3"    && rm -rf ~/.composer/cache/*   && chown -R $IMAGE_USER:$IMAGE_USER /var/www $HOME   && curl -fsSL https://goss.rocks/install | GOSS_VER=v${GOSS_VERSION} sh   && bash ./cleanup.sh
 ---> Running in 1febc9615f5d
./packages.sh: line 2: $'\r': command not found
: invalid option name: set: pipefail
The command '/bin/sh -c bash ./packages.sh   && bash ./extensions.sh   && bash ./node.sh   && adduser --disabled-password --gecos "" $IMAGE_USER &&   echo "PATH=$(yarn global bin):$PATH" >> /root/.profile &&   echo "PATH=$(yarn global bin):$PATH" >> /root/.bashrc &&   echo "$IMAGE_USER  ALL = ( ALL ) NOPASSWD: ALL" >> /etc/sudoers &&   mkdir -p /var/www/html   && composer global require "hirak/prestissimo:^0.3"    && rm -rf ~/.composer/cache/*   && chown -R $IMAGE_USER:$IMAGE_USER /var/www $HOME   && curl -fsSL https://goss.rocks/install | GOSS_VER=v${GOSS_VERSION} sh   && bash ./cleanup.sh' returned a non-zero code: 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions