Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.56 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. echo "Searching for Docker image ..."
  4. DOCKER_IMAGE_ID=$(docker images -q teacupx/chromium-armhf:latest | head -n 1)
  5. echo "Found and using ${DOCKER_IMAGE_ID}"
  6.  
  7. docker run --rm --privileged \
  8.  -e DISPLAY=unix$DISPLAY \
  9.  -v chromium_home:/home \
  10.  -v /tmp/.X11-unix:/tmp/.X11-unix \
  11.  -v /dev:/dev -v /run:/run \
  12.  -v /etc/machine-id:/etc/machine-id \
  13.   ${DOCKER_IMAGE_ID} \
  14.   ${@}
  15.  
  16. #LATEST_IMAGE_ID=$(docker ps -l -q | head -n 1)
  17.  
  18. #echo "Comitting changes to image ${LATEST_IMAGE_ID}"
  19. #docker commit ${LATEST_IMAGE_ID} teacupx/chromium-armhf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement