Strider-CD / strider-docker-runner

Strider runner that uses Docker
34 stars 19 forks source link

[master] Prepare on docker isn't running `npm install` #21

Closed cusspvz closed 9 years ago

cusspvz commented 9 years ago

... Could not resolve host: github.com

$  -1
An unexpected error occurred while executing this job. Please report at https://github.com/Strider-CD/strider/issues

Git clone failed with code 128
kfatehi commented 9 years ago

@cusspvz this might help https://docs.docker.com/installation/ubuntulinux/#docker-and-ufw

Docker uses a bridge to manage container networking. By default, UFW drops all forwarding traffic. As a result you will need to enable UFW forwarding:

$ sudo nano /etc/default/ufw

# Change:
# DEFAULT_FORWARD_POLICY="DROP"
# to
DEFAULT_FORWARD_POLICY="ACCEPT"
cusspvz commented 9 years ago

Thanks for your fast answer! :)

I've done that already, and after a sudo service ufw restart it told me that ufw is currently disabled. So possibly it wasn't that.

The environment that strider is running is an Ubuntu 14.04 on top of AWS EC2 Instance.

I did docker run base "ping google.com" without success, until i've set networking on host mode --net host.

After some reboots, and without any understandable explanation it seemed to have internet access with default net mode, but another problem appeared around npm test.

I use mocha as test framework, and i've placed it as a devDependency and binded npm test to a funky node_modules/mocha/bin/mocha ... script.

It isn't finding mocha module, perhaps it could be:

PoC

I've assigned this issue internally to @fernandoneto , if you don't mind he will talk about this issue with you from here.

cusspvz commented 9 years ago

Maybe related with #18. I will change the issue title to match the current problem status.

kfatehi commented 9 years ago

Closing this as it seems the original issue was unrelated to the plugin. #18 still persists though.