Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Selfhosted
  3. [HELP] Podman quadlet adding files to container

[HELP] Podman quadlet adding files to container

Scheduled Pinned Locked Moved Selfhosted
selfhosted
6 Posts 3 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • nico_198x@europe.pubN This user is from outside of this forum
    nico_198x@europe.pubN This user is from outside of this forum
    [email protected]
    wrote last edited by [email protected]
    #1

    Hey there!

    i have an Owncast container that needs two extra files added to it every time it starts up because the base image doesn't include them. they can be downloaded from within the container. i just need a way to tell the container to always do that when it starts up.

    i've tried adding this to my quadlet:

    [Container]

    Exec=apk update && apk add --no-cache mesa-va-gallium mesa-dri-gallium

    but it doesn't work.

    does anyone know how to correctly automate this?

    thanks!

    I G 2 Replies Last reply
    0
    • nico_198x@europe.pubN [email protected]

      Hey there!

      i have an Owncast container that needs two extra files added to it every time it starts up because the base image doesn't include them. they can be downloaded from within the container. i just need a way to tell the container to always do that when it starts up.

      i've tried adding this to my quadlet:

      [Container]

      Exec=apk update && apk add --no-cache mesa-va-gallium mesa-dri-gallium

      but it doesn't work.

      does anyone know how to correctly automate this?

      thanks!

      I This user is from outside of this forum
      I This user is from outside of this forum
      [email protected]
      wrote last edited by
      #2

      I think you can use volumes or mounts to add signal files.

      nico_198x@europe.pubN 1 Reply Last reply
      0
      • I [email protected]

        I think you can use volumes or mounts to add signal files.

        nico_198x@europe.pubN This user is from outside of this forum
        nico_198x@europe.pubN This user is from outside of this forum
        [email protected]
        wrote last edited by
        #3

        well, we can download these libraries from within the container. i just want a way to tell the container to always do that on startup

        I 1 Reply Last reply
        0
        • nico_198x@europe.pubN [email protected]

          well, we can download these libraries from within the container. i just want a way to tell the container to always do that on startup

          I This user is from outside of this forum
          I This user is from outside of this forum
          [email protected]
          wrote last edited by
          #4

          Well, ithe correct way would be to create a new container image using your current image as the base and executing your commands, you then need to rebuild that image when the base image is updated.

          nico_198x@europe.pubN 1 Reply Last reply
          5
          • nico_198x@europe.pubN [email protected]

            Hey there!

            i have an Owncast container that needs two extra files added to it every time it starts up because the base image doesn't include them. they can be downloaded from within the container. i just need a way to tell the container to always do that when it starts up.

            i've tried adding this to my quadlet:

            [Container]

            Exec=apk update && apk add --no-cache mesa-va-gallium mesa-dri-gallium

            but it doesn't work.

            does anyone know how to correctly automate this?

            thanks!

            G This user is from outside of this forum
            G This user is from outside of this forum
            [email protected]
            wrote last edited by
            #5

            do the logs show any errors with the exec?

            What about putting it in a simple shell script with a volume mount?
            Or maybe something like this would work?
            Exec=sh -c "apk update && apk add --no-cache mesa-va-gallium mesa-dri-gallium"

            Sorry, I'm pretty new to quadlets myself, but I've gotten stuff working thanks to the podman documentation.

            1 Reply Last reply
            0
            • I [email protected]

              Well, ithe correct way would be to create a new container image using your current image as the base and executing your commands, you then need to rebuild that image when the base image is updated.

              nico_198x@europe.pubN This user is from outside of this forum
              nico_198x@europe.pubN This user is from outside of this forum
              [email protected]
              wrote last edited by
              #6

              ooo i see. ok i did not consider that

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups