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

Allow using Hostname in PeerAddress #57

Closed
softtech-geoff opened this issue Feb 3, 2019 · 2 comments
Closed

Allow using Hostname in PeerAddress #57

softtech-geoff opened this issue Feb 3, 2019 · 2 comments

Comments

@softtech-geoff
Copy link

softtech-geoff commented Feb 3, 2019

There are several cases where Docker doesn't allow a static IP; for example when running swarm mode, or when using Kubernetes.

Each container instance that is started gets a dynamic IP, and this conflicts with the need to specify a PeerAddress IP in /root/.config/pydio/cells/pydio.json, for example:

"pydio.grpc.data.index.cellsdata": {
  "PeerAddress": "10.0.1.229",

Docker does a great job of resolving the container's hostname, so this would work nicely if we could instead specify the hostname:

"pydio.grpc.data.index.cellsdata": {
  "PeerAddress": "cells",

Note that I'm currently using a workaround of overriding the start command in the docker compose file, but this feels very ugly, and a bit fragile:

  cells:
    image: pydio/cells:latest
    command: [ '/bin/sh', '-c', 'echo `tail -1 /etc/hosts | cut -f 1` > /home/ip.txt; sed -i "/PeerAddress/ s/: .*/: \"`cat /home/ip.txt`\",/g" /root/.config/pydio/cells/pydio.json; exec /bin/docker-entrypoint.sh cells start' ]

@cdujeu
Copy link
Member

cdujeu commented Feb 4, 2019

Hi, it's definitely in the short-term roadmap. This IP stuff is annoying indeed.

@cdujeu cdujeu changed the title Allow hostname in PeerAddress Allow using Hostname in PeerAddress Feb 15, 2019
@cdujeu
Copy link
Member

cdujeu commented Feb 16, 2019

Closing in favor of #72 (we are syncing GH issues with our team internal ticket tracker)

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