Commit 859aa5f1 authored by Arturo Hernandez's avatar Arturo Hernandez

updated standalone

parent 63adb26d
......@@ -41,7 +41,13 @@ puede detenerlo con:
docker stop agetic_mst
```
#### Opcional:
ejecutar
```sh
run_image_standalone.sh
```
### 2. Compartir PCSCD
......
......@@ -8,14 +8,20 @@ cd docker
trap ctrl_c INT
function ctrl_c() {
echo "** Stopping usb watcher..."
killall refresh_usb.sh #TODO: use pid approach
echo "** Stopping docker image..."
docker stop ${IMAGE_NAME}
}
echo "Starting image with internal pcscd..."
# opción 1. host nuevo sin pcscd
#docker exec -t ${IMAGE_NAME} bash -c 'pcscd'
docker run --rm -d -p 127.0.0.1:8000:8000 --device=/dev/bus/usb --device-cgroup-rule='c 189:* rmw' --name ${IMAGE_NAME} ${IMAGE_NAME}:${IMAGE_VERSION}
echo "starting usb watcher " && ./refresh_usb.sh &
docker run --rm -d -p 127.0.0.1:8000:8000 --device=/dev/bus/usb --device-cgroup-rule='c 189:* rmw' --name ${IMAGE_NAME} ${IMAGE_NAME}:${IMAGE_VERSION} && docker exec -t ${IMAGE_NAME} bash -c 'pcscd' && echo "Following logs..." && docker logs ${IMAGE_NAME} -f
echo "Following logs..." && docker logs ${IMAGE_NAME} -f
#TODO: call ./refresh_usb.sh as daemon and stop with docker stop
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment