Open estefafdez opened 7 years ago
Docker Version: 17.09.0-ce Local OS: ubuntu 16.04
Hi! It seems an error when you run the docker image. Are you linking properly the /src folder to the source one you have in your env?
Cheers!
Hello again,
First, we do:
docker build --build-arg JAVA_VERSION=8 --build-arg ANDROID_SDK_VERSION=23 --build-arg VNC_PASSWD=1234 -t agomezmoron/docker-appium . && docker rmi -f $(docker images -f "dangling=true" -q) &> **/dev/null**
And we get:
Successfully built bd3fe676a099
Successfully tagged agomezmoron/docker-appium:latest
Appium Project File Structure:
And then, to execute the test, we do:
docker run --privileged -v /opt/AppiumCore:/src -v /opt/AppiumCore:/src/target -e HOST_UID=$(id -u) -e HOST_GID=$(id -g) -e DOCKER_TESTS_COMMAND="mvn test" --rm -t -i -p 5900:5900 agomezmoron/docker-appium
We get the following console output:
Any idea of what the problem could be? Thanks!
It seems a maven issue. Could you please put the result of ls -l /opt/AppiumCore?
Also instead of running -e DOCKER_TESTS_COMMAND="mvn test" try to run -e DOCKER_TESTS_COMMAND="mvn test -X" to see a full stacktrace.
Thanks!
Hello again:
ls -la /opt/AppiumCore
Docker run with mvn test -X:
Hi @estefafdez,
After reviewing this it seems the Dockerfile has a typo. If you add there an execution like:
mkdir /src
rebuilds the image and run it back, does it work? If yes, please create a PR with that change.
Thanks!
Hello,
We follow all the instructions described into this project. We create an AppiumCore project with all the information necessary to run test using Appium. The test contained on the project run in our local environment (run the test on the IDE and by executing mvn test on the command line).
The pom.xml file is included on the /src directory as requested.
If we run this docker-appium along with our project, we get the following errors:
First error: there is no POM in this directory (/src):
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/src). Please verify you invoked Maven from the correct directory.
And then, if we create a new pom.xml file with the same content, we get the following error:
Any idea what could we do to resolve the problem?
Thank you.