question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Building docker fails with "COPY failed: no source files were specified"

See original GitHub issue

I tried building the docker

git clone https://github.com/sitespeedio/throttle.git
cd throttle
cd test
docker build -t throttle-docker .

It ends with an error

Sending build context to Docker daemon  3.072kB
Step 1/10 : FROM sitespeedio/node:ubuntu-18.04-nodejs8.11.1
 ---> 52f5b0d0bb0f
Step 2/10 : RUN apt-get update && apt-get install libnss3-tools iproute2 sudo net-tools -y
 ---> Using cache
 ---> 4e0415b2ad4b
Step 3/10 : RUN mkdir -p /usr/src/app
 ---> Using cache
 ---> a243958c7ce7
Step 4/10 : WORKDIR /usr/src/app
 ---> Using cache
 ---> 77363c4b1136
Step 5/10 : VOLUME /browsertime
 ---> Using cache
 ---> 13b706872893
Step 6/10 : COPY package.* /usr/src/app/
COPY failed: no source files were specified

Is this normal? am I missing something?

A little background here. I want to run the network tests on a windows machine, I already know what throttle only works on Mac and Linux but there was a section about running this from inside a docker. And this is important for me to get cross platform consistency of running this test. Also it’s nice to run everything in a docker if I wish to automate this on a CI like circle.

The docs wasn’t 100% clear if this was the strategy, to build a docker that has support for throttle from there to build the docker networks and run the performance tests.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
george-haddadcommented, Nov 12, 2018

Alright no problem, yeah I’ll look into that. I was thinking that I can definitely get this self-contained in a Linux VM image, though I wanted something that can be run a bit easier so I thought if I stuffed it all in a docker. It’s not the best thing to have a docker spawn dockers inside it.

Thanks for that article though, was super helpful and really appreciate you replying to this thread so quickly!

0reactions
soulgalorecommented, Nov 12, 2018

I think it’s really hard to do it platform independent. What you can do is setup a Linux box and then share that network to boxes (if you run it locally on your own servers).

For CircleCi (or Travis or whatever) you should be able to run it on Linux as long as you have the right privileges, but I haven’t tried it myself 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Docker build fails "COPY failed: no source files were specified"
Remove the /target(source file path from there you are copying) from them. Save the changes. Run the docker build command.
Read more >
Docker COPY failed: stat no source files were specified - Jhooq
6 Ways to fix – Docker COPY failed: stat no source files were specified · Source path is incorrect · Incorrect file ·...
Read more >
Docker Integration: COPY failed: no source files were specified
Create a .dockerignore with contents below: !build/libs/*.jar !Dockerfile · Create a Dockerfile like this: FROM openjdk:jdk-8-alpine. COPY build/libs/*.jar /app.
Read more >
COPY failed: no source files were specified #750 - GitHub
The error says that you are trying to copy all the .csproj files from SanSa directory. And no such files exist. You don't...
Read more >
Docker Build Service failed to build: COPY failed: no source ...
The two most common seem to be (1) a .dockerignore file that is causing the build context to ignore the file you are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found