You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.5 KiB

4 years ago
  1. # latex-basic
  2. ## The docker image
  3. Like first estep run your **Dcoker image**, but in ordert to have the latest image update it first
  4. ```
  5. $ docker pull gmarxcc/texstudio:0.16
  6. ```
  7. **Note you can check the latest version on:** [docker-hub](https://hub.docker.com/repository/docker/gmarxcc/texstudio).
  8. ## Cloning the repository
  9. Now, from command line or power-shell clone go to a folder that will contain this repository, in my case is:
  10. ```
  11. $ cd rs-101/git-examples/
  12. ```
  13. Now let's clone the repository using 'git clone' command
  14. ```
  15. $ git clone http://gmarx.jumpingcrab.com:8088/mice-rs101/latex-basic.git
  16. ```
  17. then go *inside* the folder just created:
  18. ```
  19. $ ls
  20. latex-basic
  21. $ cd latex-basic
  22. $ ls
  23. LICENSE sampleDocument.tex
  24. README.md references.bib
  25. ```
  26. as you can see, there are some files related with the repository :) **goo job**
  27. ## Running the image and mounting the repository
  28. Now you can mount the volumen that contain the just cloned repository. If you are using MacOS:
  29. ```
  30. $ open -a XQuartz
  31. $ ip=$(ifconfig en0 | grep inet | awk '$1=="inet" {print $2}')
  32. $ xhost + $ip
  33. 192.xxx.x.xx being added to access control list
  34. $ docker run --rm -it -v`pwd`:/mnt -e DISPLAY=$ip:0 -v /tmp/.X11-unix:/tmp/.X11-unix gmarxcc/texstudio:0.16
  35. root@d442a76cd169:/#
  36. ```
  37. ```
  38. root@d442a76cd169:/# texstudio
  39. QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
  40. libGL error: No matching fbConfigs or visuals found
  41. libGL error: failed to load driver: swrast
  42. root@d442a76cd169:/#
  43. ```