How do I get a tarball into a Container?

Bauerranger

New Member
Jan 10, 2025
5
0
1
I have a piece of software that I want to run inside a proxmox container. This software is not available on github, but on a gitlab that requests special authorisation through a mobile app (not necessary for you to know, but I want to install the website evidence collector form the EU's gitlab). Therefore I cannot use the git commands or curl to get the tarball into the container. And I am not sure how to do it. My brain wants to tell me that there must be a protocoll like ftp to easily send files and folders to my server inside my network but so far searching the internet has not given me the answers I seek for.

Possible workarounds are: setting up a vm instead of a container and navigate to the website and authenticate with the mobile app, all via the vnc. However, I want to learn the ins and outs of proxmox virtualisation and would like to be able to get this done in a cotainer and not an unnecessarily big vm. Another workaround would be to set up a container, navigate to the download page, copy the link of the download button and curl that url from the container. But that is not what I would like, as I would have to do that every time I want to update the software.

I hope the forums can help me out. As I am still very new to proxmox, not that experienced in virtualisations and am far from mastering all things git I would also be very grateful if anyone could tell me why my idea may not be the best approach and why other solutions would be preferable. I don't know what these other possibilities would be, so please don't hesitate to enlight me!

Thanks!
 
Hi Bauerranger,

what kind of container are you using? Does it have internet access -- here from a default debian12 LXC container I can do:

Code:
wget https://code.europa.eu/EDPS/website-evidence-collector/-/releases/v3.0.0/downloads/website-evidence-collector.tgz

I do not run into any authentication queries from the gitlab's side. The link is from here: https://code.europa.eu/EDPS/website-evidence-collector/-/releases.

To actually install the software (and follow the recommendation to use node > v20), you could do:

Code:
$ wget -O setup_node23.sh https://deb.nodesource.com/setup_23.x
$ bash setup_node23.sh
$ apt install nodejs
$ node -v
v23.6.1
# install the previously downloaded tarball (or use the command from the gitlab website)
$ npm install -g website-evidence-collector.tgz

I have to admit though, that the software fails at launching a browser process, but that's not so much of a PVE thing, I'd say...

Best regards,
Daniel
 
  • Like
Reactions: Johannes S
I have to add, that the software seems to depend on a graphical desktop environment. I'm saying this as the `website-evidence-collector serve` command does not seem to allow for adding anything else than localhost as a server location. So reaching the server process from another machine is likely to be challenging and would involve port forwarding, eg via ssh.

One could go the way to set up a lightweight graphical desktop environment in the container (Mate, LXDE,...), install xrdp, add an unpriviledged user, and connect to the Container with an rdp client.

Or, quite possibly the easier way -- just use a VM with a Desktop environment and look at the software straight from your PVE host through the browser!

I hope this information helps,
Best regards,
Daniel
 
Last edited:
  • Like
Reactions: Johannes S

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!