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

build not working #1

Closed
andywenk opened this issue Jun 19, 2014 · 5 comments
Closed

build not working #1

andywenk opened this issue Jun 19, 2014 · 5 comments
Labels

Comments

@andywenk
Copy link

Hi,

first of all - nice idea - thanks for creating this :).

I ran into the following error:

~/p/dockerhtml5validator git:master ❯❯❯ ./build.sh
Password:
2014/06/19 22:29:53 Post http:///var/run/docker.sock/build?  
rm=1&t=magnetikonline%2Fhtml5validator: dial unix /var/run/docker.sock: no such file or 
directory

Any idea what's wrong? As you have written in the README, trying to use docker pull did not work.

Thanks

Andy

@andywenk
Copy link
Author

ok since I am on mac I had to start boot2docker. I was still not able to run build.sh but I was able to run docker pull magnetikonline/html5validator. But ./run.sh is still not working - I think this is expected. But I am able to run the image with docker run magnetikonline/html5validator:

docker run magnetikonline/html5validator
2014-06-16 22:45:52,835 CRIT Supervisor running as root (no user in config file)
2014-06-16 22:45:52,835 WARN Included extra file "/etc/supervisor/conf.d/supervisord.conf" during parsing
2014-06-16 22:45:52,854 INFO RPC interface 'supervisor' initialized
2014-06-16 22:45:52,855 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2014-06-16 22:45:52,855 INFO supervisord started with pid 1
2014-06-16 22:45:53,859 INFO spawned: 'validatornu' with pid 9
2014-06-16 22:45:53,861 INFO spawned: 'apache2' with pid 10
2014-06-16 22:45:54,908 INFO success: validatornu entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2014-06-16 22:45:54,908 INFO success: apache2 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

So that look's not too bad. But nothing is running at localhost:8080 ... Am I missing sth?

EDIT: after inspecting the code: docker run -p 8080:80 magnetikonline/html5validator does work but I don't see sth at localhost:8080 in the browser

@magnetikonline
Copy link
Owner

Hey @andywenk - thanks for the comments :)

Yep - docker pull isn't working - I think it might be due to some Ubuntu repo issues over the last few days - I might kick off another build from their console - see if it rights itself.

Anyway - for your issue - try the following from a fresh clone - see if this works.

$ docker build -t magnetikonline/html5validator .
$ docker run -dp 8080:80 magnetikonline/html5validator

Basically same build/run commands without the sudo - this is more for my Ubuntu dev boxes where sudo is needed when calling Docker. From memory a friend that tried this on OSX had to drop those.

Obviously you can use whatever tag you like in the magnetikonline/html5validator bit.

See how you go - if it works, I'll try to write something better in the README.md notes.

Pete

@magnetikonline
Copy link
Owner

@andywenk I just did another build to the Docker hub - so doing a docker pull magnetikonline/html5validator might be successful now too.

@andywenk
Copy link
Author

Hey Peter,

awesome thanks. I will try both ways when I find a time slot. I will report back :)

Cheers

Andy

@magnetikonline
Copy link
Owner

Hey @andywenk - I'll close this issue out, let me know if you are still having troubles :)

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

No branches or pull requests

2 participants