Skip to content
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

Error with Docker Runner #16

Open
abusquets opened this issue Jul 7, 2017 · 1 comment
Open

Error with Docker Runner #16

abusquets opened this issue Jul 7, 2017 · 1 comment

Comments

@abusquets
Copy link

abusquets commented Jul 7, 2017

I have this error (below) when I try to test a python project with Docker Runner. This not happens with a node project.

$ git clone --recursive git@github.com:abusquets/django-coverage.git . --branch master github 11s
fatal: destination path '.' already exists and is not an empty directory.

I checked /home/strider/workspace folder in the image and is empty.

I think the problem is the python virtualenv folder.

"New python executable in /home/strider/workspace/.venv/bin/python"

Do you have any idea to solve this problem?

Thanks

@abusquets abusquets changed the title Errro with Docker Runnr Error with Docker Runnr Jul 7, 2017
@abusquets
Copy link
Author

abusquets commented Jul 7, 2017

Changing this line
https://github.com/Strider-CD/strider-python/blob/master/worker.js#L19
to
var venvDir = path.join(context.baseDir, '..', '.venv');
This problem is solved but I still have another problem, I don't have the environment enabled.

And I should install requirements like

/home/strider/.venv/bin/pip install -r requirements.txt

and run the tests like

/home/strider/.venv/bin/python manage.py test

Another way is use a Custom Script Plugin
captura_2017-07-08_00-11-17

@abusquets abusquets changed the title Error with Docker Runnr Error with Docker Runner Jul 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant