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.

docker-compose and urls.txt

See original GitHub issue

Hello,

I’m trying to test some urls using urls.txt file and send it to grafana…but it doesn’t work, this is the response in my terminal:

$ docker-compose run sitespeed.io "$(pwd)"/urls.txt --graphite.host=graphite Google Chrome 60.0.3112.78 Mozilla Firefox 54.0

/usr/src/app/lib/support/cliUtil.js:32 throw new Error(Couldn’t find url file at ${filePath}); ^ Error: Couldn't find url file at <pwd_path>/urls.txt at Object.getURLs (/usr/src/app/lib/support/cliUtil.js:32:19) at Object.parseCommandLine (/usr/src/app/lib/support/cli.js:683:19) at Object.<anonymous> (/usr/src/app/bin/sitespeed.js:22:18) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.runMain (module.js:604:10) at run (bootstrap_node.js:389:7) at startup (bootstrap_node.js:149:9) at bootstrap_node.js:504:3

thanks for your help 😃 Roberto

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
soulgalorecommented, Oct 7, 2017

Ok, the correct way is to add it to your docker-compose file:

...
     volumes:
            - ./sitespeed-result/:/sitespeed.io/sitespeed-result
            - ./urls.txt:/sitespeed.io/urls.txt
...

and then docker-compose run sitespeed.io urls.txt ...

Best Peter

0reactions
hunt3rcommented, Oct 17, 2017

👍 Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Compose specification - Docker Documentation
Compose file reference. ... References to other services (by links , extends or shared resource syntax ... my_config.txt my_other_config: external: true ...
Read more >
docker-compose how to reference files in other directories
I need to reference the following files (in the docker-compose.yml file) being in other directories rather than the .devcontainer: manage.py ...
Read more >
PyCharm - Configure an interpreter using Docker Compose
Copy and paste the following code into the docker-compose.yml file. version: '2' services: web: build: . ports: - "8000:8000" volumes: - .:/app links:...
Read more >
Injecting Files into your Image using ADD | dockerlabs
9) If STDIN method is used to pass a Dockerfile, there is no build context for this. So, we need to provide a...
Read more >
docker compose entrypoint cp using wildcard
Characters like * are interpreted by the shell, so you need to invoke a shell to handle it (e.g., sh -c 'cp /foo/*.txt...
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