GoogleContainerTools / kaniko

Build Container Images In Kubernetes
Apache License 2.0
14.25k stars 1.4k forks source link

Build fails when context is mounted to /tmp #999

Open cvgw opened 4 years ago

cvgw commented 4 years ago

Actual behavior

Build fails when the context is mounted to /tmp

Expected behavior The build success regardless of where the context is mounted or the rules for mounting a context are documented

To Reproduce Steps to reproduce the behavior: IMAGE=gcr.io/kaniko-project/executor:793

This fails

docker run \
    -v  `pwd`/context:/tmp \
    $IMAGE \
          --context dir:///tmp/ \
          --dockerfile Dockerfile \
          -v trace \
          --no-push

This succeeds

docker run \
    -v  `pwd`/context:/workspace \
    $IMAGE \
          --context dir:///workspace/ \
          --dockerfile Dockerfile \
          -v trace \
          --no-push

Dockerfile used

FROM botpress/server:v12_0_0
RUN chmod -R gou+rw /botpress
WORKDIR /botpress

RUN apt-get update \
&& apt-get -y install curl gnupg \
&& curl -sL https://deb.nodesource.com/setup_11.x | bash \
&& apt-get -y install nodejs \
&& apt-get -y install rsync \
&& apt-get upgrade -y

RUN cd /botpress && npm install && npm install node-sp-auth --save-dev && npm install sp-request --save-dev && npm install activedirectory --save-dev

EXPOSE 3000-55000
CMD ["./bp"]

Additional Information

cvgw commented 4 years ago

related to #793