cablelabs / micronets-identity-service

Creates Certificates for Micronet devices.
Other
0 stars 0 forks source link

Updated the Dockerfiles for the id and freeradius servers to support a shared volume #13

Closed craigpratt closed 5 years ago

craigpratt commented 5 years ago

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.

curl -o run-via-repo.sh http://server/path/run-via-repo.sh
chmod +x run-via-repo.sh
./run-via-repo.sh
akadam commented 5 years ago

Looks good.Ship it 👍