New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do you use this docker image #2
Comments
Hi, You need to mount your current folder into the image You should run the image in the root folder of your project. The entrypoint will execute any command you pass to it. |
What's the recommended way to install protractor into this image? And for my curiosity, why is it not included as part of the image itself? Because the (default) user isn't root, I get this:
|
@simondrabble the recommended way is to add protractor to your devDependencies and install it alongside your project dependencies. |
That should work, thanks! It just seemed weird to me that this image doesn't have "batteries included" like I would expect. |
Most of the time, protractor and karma are installed via depDependencies, and would be installed two times if they were already installed globally. Not including them is the image reduce the image size for these users. |
Sounds reasonable. Thanks again! |
One more qq: where/ how should webdriver be installed? I don't see a way to start it under protractor. You might want to consider adding some more "getting started/ using this image" documentation :) |
On the debian based variants, just use webdriver installed by protractor. On the alpine based variants, this webdriver isn't compatible with musl, and we have to use one already installed in the image (in /usr/bin/chromedriver) |
Hi,
I've tried something like :
docker run weboaks/node-karma-protractor-chrome npm test
but I get :
Should I run the docker image in the root folder of my project and the
entrypoint
will execute any command I pass to it?cheers.
The text was updated successfully, but these errors were encountered: