Skip to content
This repository has been archived by the owner on Sep 15, 2018. It is now read-only.

Slow test execution on docker-for-mac #27

Open
raytung opened this issue Sep 4, 2017 · 3 comments
Open

Slow test execution on docker-for-mac #27

raytung opened this issue Sep 4, 2017 · 3 comments

Comments

@raytung
Copy link
Contributor

raytung commented Sep 4, 2017

On docker:

$ time ./go test
# ...
$ ./go test  0.02s user 0.02s system 0% cpu 52.833 total

Without docker:

$ time npm test
# ...
$ npm test  5.89s user 0.56s system 93% cpu 6.898 total
@raytung raytung changed the title Slow test execution Slow test execution on docker Sep 4, 2017
@raytung
Copy link
Contributor Author

raytung commented Sep 4, 2017

@raytung raytung changed the title Slow test execution on docker Slow test execution on docker-for-mac Sep 4, 2017
@z0u
Copy link

z0u commented Sep 4, 2017

Can you try the docker-sync branch? It attempts to deal with this according to the suggestions in this comment:

  • A special container is set up to receive source files.
  • A daemon on the host syncs files to that container.
  • The sync container's volume is mounted into the app container.

See README-docker.md for more details.

@raytung
Copy link
Contributor Author

raytung commented Sep 5, 2017

We just tried it out and it's still taking ~55secs

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants