Skip to content

Commit

Permalink
fix: pass real os-release file to container
Browse files Browse the repository at this point in the history
Signed-off-by: Boris Glimcher <[email protected]>
  • Loading branch information
glimchb authored Jun 9, 2024
1 parent 07e839c commit 2857708
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/run_agent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ ls -l /mnt/
# run docker (not compose) in host network
DHCLIENT_LEASE_FILE=/var/lib/NetworkManager/dhclient-eth0.lease
docker run --rm -it --network=host -v /mnt/:/mnt \
--mount type=bind,source=/etc/os-release,target=/etc/os-release \
--mount type=bind,source=${DHCLIENT_LEASE_FILE},target=/var/lib/dhclient/dhclient.leases \
${DOCKER_SZTP_IMAGE} \
/opi-sztp-agent daemon --bootstrap-trust-anchor-cert /mnt/opi.pem --device-end-entity-cert /mnt/opi_cert.pem --device-private-key /mnt/opi_private_key.pem
Expand Down

0 comments on commit 2857708

Please sign in to comment.