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

Dockerfile doesn't seems to work.. #1

Open
linfan opened this issue Aug 4, 2015 · 2 comments
Open

Dockerfile doesn't seems to work.. #1

linfan opened this issue Aug 4, 2015 · 2 comments

Comments

@linfan
Copy link

linfan commented Aug 4, 2015

Got several issues when trying to setup the app via the Dockerfile in repo.

1) entrypoint.sh do not have executable permission

$ docker build --tag yoo ./
... ...
$ docker run -P yoo
Error response from daemon: Cannot start container 5c7...153: [8] System error: exec: "/entrypoint.sh": permission denied

Put a RUN chmod +x /entrypoint.sh in Dockerfile will fix it.

2) npm install is necessary

I see there is a commented npm install in Dockerfile, it's necessary, otherwise nodejs app won't start up.

$ docker run -P yoo
module.js:340
    throw err;
          ^
Error: Cannot find module 'debug'

3) App not working without error log

After fix above two problem, container started up. However, accessing the exposed port don't get respond data. The log of the container is empty.

$ docker ps
CONTAINER ID   IMAGE   COMMAND    CREATED   STATUS    PORTS                           NAMES
886fc58021f0       yoo       "/entrypoint.sh"    21s ago    Up 20s      0.0.0.0:32771->8080/tcp  yoo
$ curl localhost:32771
curl: (52) Empty reply from server
$ docker logs yoo
(empty)
@wptad
Copy link
Member

wptad commented Aug 5, 2015

@linfan

Thanks for your issue. This Project is still under development. I will fix it ASAP. and then let you know.

Thanks.

@linfan
Copy link
Author

linfan commented Aug 5, 2015

Thanks.

I quick walked thought the code. The idea of downloading k8s binaries from intranet HTTP server during installation and starting services via cloudinit during OS start up is pretty clear. Even though there are still many questionable parts. Like why only production-central.ejs and production-worker.ejs content k8s units, and what's the purpose of yml_fleet folder.

Hope to see the repo get update soon : )

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

2 participants