Dockerize Python Applications with GUI

Поділитися
Вставка
  • Опубліковано 25 лис 2024

КОМЕНТАРІ • 25

  • @krzysztof2070
    @krzysztof2070 Рік тому +30

    protip, on windows you can just type in cmd in address bar and then it will automatically open in cmd with current directory, no need to use cd

    • @VVCHK993
      @VVCHK993 Рік тому +1

      thx

    • @agmuntianu
      @agmuntianu Рік тому +2

      also you can shift + right click and you get access to powershell in current folder

    • @deokgap
      @deokgap Рік тому +1

      'wsl' and 'powershell' also work. thanks

    • @Stopinvadingmyhardware
      @Stopinvadingmyhardware Рік тому

      You can do the same in POSIX systems as well.

    • @BeeryDorin
      @BeeryDorin Рік тому

      @@agmuntianu thnx!

  • @SemRaichman
    @SemRaichman 3 місяці тому +1

    i have a question, is there any way to show the GUI without need to install the X server? i mean - if another user will downlowd mt app from github he wont be able to run the app if he doesnt have the x server installed on his own computer, right?

  • @Stopinvadingmyhardware
    @Stopinvadingmyhardware Рік тому +2

    You could just create the python app to create it's own container, rather than running it in Go, which just adds complexity and vulnerabilities, which is the entire point of running containers.

  • @dragon3602010
    @dragon3602010 Рік тому +1

    Awesome, does it work with the library playwright too that automate browser, can we dockerize it?

  • @pepeshopping
    @pepeshopping Рік тому +1

    Great, but I would not do X Display.
    I have been doing RDP, with sound, on all my servers with GUI.

  • @5enox
    @5enox 8 місяців тому +12

    Anyone looking for the packages:
    libxrender-dev libx11-6 libxext-dev libxinerama-dev libxi-dev libxrandr-dev libxcursor-dev libxtst-dev tk-dev && rm -rf /var/lib/apt/lists/*

  • @sanjaybhatikar
    @sanjaybhatikar 6 місяців тому

    Thanks for an amazing video. The libs you installed would be different on Linux or Mac, no?

  • @milan_clips
    @milan_clips 7 місяців тому

    My man ....thanks this helped me finally

  • @pablo20237
    @pablo20237 Рік тому +1

    Excellent sir

  • @jiangpengli86
    @jiangpengli86 5 місяців тому

    thank you for this tutorial ❤

  • @paulthomas1052
    @paulthomas1052 Рік тому +1

    Thanks - an interesting exercise. 👍

  • @mxdmr0697
    @mxdmr0697 Рік тому

    Thanks for the video!
    One issue: when i want to put my libraries into a requirements.txt, i get an error creating the image in RUN pip install -r requirements.txt. The error says: Warning: retrying […] Failed to establish a new connection […]
    Error: could not find a version that satisfies the requirement pandas
    Error: no matching distribution found for pandas.
    Can you or someone from the Community help me pls?

  • @nocopyrightgameplaystockvi231

    Does it work with Kivy as well?

  • @muhammedfahad1947
    @muhammedfahad1947 Рік тому

    how to run the image in ubuntu

  • @andiglazkov4915
    @andiglazkov4915 Рік тому +1

    Thanks 😊

  • @thetaomegatheta
    @thetaomegatheta Рік тому

    '_tkinter.TclError: couldn't connect to display "%DISPLAY%"'
    Something is underexplained here.

    • @VusalTagiyevv
      @VusalTagiyevv Рік тому

      it seems you didn't set DISPLAY variable correct. the variable should be passing the ip.

  • @candykane5883
    @candykane5883 2 місяці тому

    I couldn't get Xming to launch :' )

  • @Luc1an_
    @Luc1an_ Рік тому +7

    Please also make projects using Golang