These changes allow for creation of id-service and freeradius docker
images that - when instantiated and paired - can share a volume
containing the certs and associated metadata.
Example container instantiation:
docker run -p 3230:3230 --mount source=freeradius-config-001,target="/usr/src/app/freeradius/3.0" -d community.cablelabs.com:4567/micronets-docker/micronets-identity-service
docker run -p 1812:1812 --mount source=freeradius-config-001,target="/etc/freeradius" -d community.cablelabs.com:4567/micronets-docker/micronets-freeradius-service
To run more than one instance of a paired freeradius-service and id-service, the
"freeradius-config-001" and the mapped host port parameter need to be modified
such that they are unique (for the host).
These changes allow for creation of id-service and freeradius docker images that - when instantiated and paired - can share a volume containing the certs and associated metadata.
Example container instantiation:
docker run -p 3230:3230 --mount source=freeradius-config-001,target="/usr/src/app/freeradius/3.0" -d community.cablelabs.com:4567/micronets-docker/micronets-identity-service
curl -X POST http://localhost:3230/configure
docker run -p 1812:1812 --mount source=freeradius-config-001,target="/etc/freeradius" -d community.cablelabs.com:4567/micronets-docker/micronets-freeradius-service
To run more than one instance of a paired freeradius-service and id-service, the "freeradius-config-001" and the mapped host port parameter need to be modified such that they are unique (for the host).
Can also use the run-via-repo.sh script. e.g.