You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FROM fabric8/java-jboss-openjdk8-jdk:1.2
ENV JAVA_APP_DIR=/deployments
COPY target/*.jar /deployments/
run mkdir target && echo app.jar > target/app.jar
run skaffold build
Bug Report
Replace line COPY target/*.jar /deployments/ with COPY target\\app.jar \\deployments\\ in Dockerfile
run skaffold build -v debug will work now. :)
$ DOCKER_CERT_PATH=C:\Users\Igor\.minikube\certs
DOCKER_API_VERSION=1.23
, stderr:
DEBU[0000] skipPush value not present. defaulting to cluster default true (minikube=true, d4d=true, gke=false)
Starting build...
Found [minikube] context, using local docker daemon.
DEBU[0000] Running docker build: context: ., dockerfile: Dockerfile
DEBU[0000] Checking base image fabric8/java-jboss-openjdk8-jdk:1.2 for ONBUILD triggers.
DEBU[0000] Found onbuild triggers [] in image fabric8/java-jboss-openjdk8-jdk:1.2
INFO[0000] Found dependencies for dockerfile [target\app.jar]
Sending build context to Docker daemon 3.072kB
Step 1/3 : FROM fabric8/java-jboss-openjdk8-jdk:1.2
---> 2fd9950a1808
Step 2/3 : ENV JAVA_APP_DIR=/deployments
---> Using cache
---> 7c31edae3fc5
Step 3/3 : COPY target\\app.jar \\deployments\
---> Using cache
---> b393edadb501
Successfully built b393edadb501
Successfully tagged 7d1aaf620b7d86c787c79ed7cb041ab1:latest
Successfully tagged image:810c4a1-dirty-f9bf0708473a6322
Build complete in 398.8942ms
image -> image:810c4a1-dirty-f9bf0708473a6322
The text was updated successfully, but these errors were encountered:
igdianov
changed the title
Skaffold build fails on COPY target/*.jar /deployments/ on Windows 10
Skaffold build fails with COPY target/*.jar /deployments/ on Windows 10
Jun 11, 2018
Expected behavior
Running
skaffold build
command should sucesfully build docker container image from Dockerfile containingADD or COPY target/*.jar /destination
instructions with source wildcards.Actual behavior
The build command fails with the error:
Building image with
docker image build .
command works OK:Information
Steps to reproduce the behavior
mkdir target && echo app.jar > target/app.jar
skaffold build
Bug Report
COPY target/*.jar /deployments/
withCOPY target\\app.jar \\deployments\\
in Dockerfileskaffold build -v debug
will work now. :)The text was updated successfully, but these errors were encountered: