You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.
I see that entry.sh changes the device's hostname. Is this necessary for the services to function?
I'd prefer to handle hostname configuration myself with other methods, and connector's default hostname changing behavior is conflicting with that. I'm currently importing the connector image in my repo's docker-compose.yml like so, but the only way I'd be able to prevent the hostname from changing is to fork the project:
If the connector project instead adds balenablocks/hostname to its docker-compose.yml, it would allow those who import connector more flexibility, while retaining the default behavior, and the connector service wouldn't need to run in privileged mode. Example:
version: '2.1'services:
connector:
image: balenablocks/connector:raspberrypi3restart: alwayslabels:
io.balena.features.balena-api: '1'# necessary to discover servicesports:
- "8080"# only necessary if using ExternalHttpListener (see below)hostname:
image: bh.cr/g_tomas_migone1/hostnamerestart: no # Required to avoid container restarting indefinitelylabels:
io.balena.features.supervisor-api: 1# Required to interact with the supervisorenvironment:
SET_HOSTNAME: uuid
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I see that
entry.sh
changes the device's hostname. Is this necessary for the services to function?I'd prefer to handle hostname configuration myself with other methods, and
connector
's default hostname changing behavior is conflicting with that. I'm currently importing theconnector
image in my repo'sdocker-compose.yml
like so, but the only way I'd be able to prevent the hostname from changing is to fork the project:If the
connector
project instead adds balenablocks/hostname to itsdocker-compose.yml
, it would allow those who importconnector
more flexibility, while retaining the default behavior, and theconnector
service wouldn't need to run in privileged mode. Example:Beta Was this translation helpful? Give feedback.
All reactions