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

Docker updates #104

Merged
merged 2 commits into from
Apr 19, 2017
Merged

Docker updates #104

merged 2 commits into from
Apr 19, 2017

Conversation

minrk
Copy link
Member

@minrk minrk commented Apr 19, 2017

  • base default docker image on node:6-alpine for reduced size (removes separate alpine Dockerfile)
  • Change default api ip in the image to all interfaces,
    so that the API port is accessible via port forwarding, etc.
    without having to also specify --api-ip by hand.

closes #101
closes #102

minrk added 2 commits April 19, 2017 13:16
removing separate alpine file
Otherwise, the API isn't accessible even when ports are forwarded
without manually requesting `--api-ip`

An entrypoint wrapper is used so that only the default behavior is changed,
but `--api-ip` can still be passed to the command.
# Default api-ip to all interfaces in docker,
# so that it is accessible to other containers
# and when port-forwarding is requested.
ARGS="--api-ip=0.0.0.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the ip address need to be in quotes? ARGS="--api-ip='0.0.0.0'"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it does not

@willingc willingc merged commit 484df1e into jupyterhub:master Apr 19, 2017
@minrk minrk deleted the dockerfile branch April 20, 2017 08:36
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

Successfully merging this pull request may close these issues.

Using node:alpine as base image? Help running the docker container
2 participants