-
Notifications
You must be signed in to change notification settings - Fork 7
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
except localhost, nothing else is working #8
Comments
Thanks for the issue post @boistordu - but I'm not quite sure I understand the problem here? Since you're in a Docker container runtime listening on Can you maybe provide a screenshot of what the issue is to help explain? |
well if I try the tool, when I entered something it will return to me a localhost address so not the adress of the server.... SO of course i would have a 404 error |
Yeah I'm still not understanding. I just re-built the image from
I guess we might have a communication breakdown here? |
if you want to understand better I can pm you the adres and you can test by yourself |
there are no interface on the host. the run command was |
So after that run line - if you visit |
@magnetikonline, do you have an idea how I'd deploy this with now.sh? I can start it by simply running |
@magnetikonline sorry for the delay of answer. for bug debugging purposes, I've installed docker on one of the workstation and as @backflip have said, your html code is redirecting to localhost:8888 which is unusable for docker of course! You have to use environment variable or something else to retain the port redirection and your code html have to point it with this variable. |
@boistordu right, so finally I understand what you're saying now. (For others reading):
As you say, will probably need to solve this with an environment variable to inject an alternative hostname/port as the environment itself can't possibly work this hostname out itself, also:
I think I have given you the steps you need to solve this - so go at it! I might tackle this in the future if time allows, but for me personally - it's low use. Thanks. |
@backflip seems your issue is very much related. Yeah I don't have a fix for now - short of hacking this: https://github.com/magnetikonline/dockerhtml5validator/blob/master/resource/configure.sh#L82-L85 But that's not very flexible - so injecting a hostname/port via |
I'll close this for now, as mentioned if I feel inspired I'll try to write an enhancement. |
Hey @magnetikonline, I decided on exposing 8888 instead of 80 since I need the HTML5 validator only. Works like a charm. |
@backflip nice one.... yep, that would do the trick 💃 |
May I ask you why you download the old validator too in place of just the new one? Since it is standalone with a webui |
Okey so the vnu is working as expected in standalone. This is your combination with something which is not maintained anymore which cause the problem: w3c/markup-validator#17 |
hi,
except localhost, it's not working because your apacheserver is always resend result in localhost.
So I know that you certainly only want the usecase of a docker engine installed on the localmachine where you are working out but there are a lot more usecase;
For example, you can imagine someone working on a tablet or a phone to rapidly make changes to an html file and he want to test it. So because of your one usecase, he will have to connect to the online website to validate the modification he just did.
Other usercase, every windows computer doesn't allow to use docker because of the CPU which has not vt-x etc. ... And sometimes you don't have internet but just your intranet so it could be great if you could change it to make it work on 0.0.0.0 and not only localhost? if it is possible. If I had the time right now I would gladly do it myself but I will have to wat a few more weeks if I have to do it myself and it would be great if I could use it right now....
The text was updated successfully, but these errors were encountered: