Replies: 11 comments 2 replies
-
The problem is that the version is stored directly in the image, unfortunately we are missing a Docker programmer who can do this. We have already tried to do this via Curl so that he always gets the latest version from Git and we only have to adjust the Linux version etc. but we can't do that |
Beta Was this translation helpful? Give feedback.
-
Maybe I am misunderstanding, but it sounds like you want to be able to release LinkStack on Docker once and have it stay up-to-date forever. So at the risk of overexplaining— Yes, a given docker image will always correspond to a fixed version of LinkStack, and you should push and tag a new image each time you release a new version. Keeping The best approach here would be to add a step to your automated release pipeline that builds a new Docker image and pushes it to Docker Hub with each version bump. To take it a step further, I think the easier thing to do would be to not have a separate linkstack-docker repo at all, but rather to place the Dockerfile in the root of the Linkstack repo. That way, rather than having the Dockerfile pull LinkStack from GitHub, you could simply copy the files into the image directly from the filesystem. |
Beta Was this translation helpful? Give feedback.
-
On Docker hub you can see what I mean at that time the file (4.2.3) was provided in the images, and we don't want that anymore, actually it should load the last image (linkstack itself) from Git so that we only need to push a new image if the software in the container changes. i will talk to our main dev |
Beta Was this translation helpful? Give feedback.
-
Sorry, I don't think that's quite correct.
This line is actually from the parent Docker image It's true that the Dockerfile is copying a file directly from the filesystem rather than fetching it from git. But it is not true that it is always copying in a fixed version of linkstack; rather, it just copies files the current working directory (aka your build context). If you modify the contents of the
If your Dockerfile always pulls the latest release from GitHub, then it can only build images for the current latest release. But if it copies from the current working directory instead, then you have the flexibility to make some experimental changes, run I might still be misunderstanding, but I don't think you need to expand your staff for this. I think you could just move the contents of this repo to a subdirectory of your main repo, change $ git checkout <release-tag>
$ docker build -t linkstackorg/linkstack:<version> -t linkstackorg/linkstack:latest --push . |
Beta Was this translation helpful? Give feedback.
-
I didn't dive deep into the image yet, but all in all I'd agree to what @rlue said. I am kind of here to check in, whether this will be worked on soon, as I am currently trying to figure out a way to get Linkstack running on our cute little k8s cluster. (I really don't want Linktree to win in my org) |
Beta Was this translation helpful? Give feedback.
-
Ok, I took a deeper look (for a few hours now because of a misunderstanding). @lastsamurai26 How about moving this repo into the other one, building a pipeline for automatic image build and push to Dockerhub? As I am pretty much on the fence timewise, I am willing to help by creating a Pull Request, if I get an answer pretty soon. Otherwise, I have to resort to building my own image on a private registry. |
Beta Was this translation helpful? Give feedback.
-
I will talk to our main Dev. |
Beta Was this translation helpful? Give feedback.
-
Been 5 days since, hm. I'd offer you, the main Dev and whoever to look at the fork on my profile. Main changes are in:
I need information about whether a private runner was used or not. If a public runner was used, Ubuntu20.04 is not supported anymore and needs to be updated to at least Ubuntu22.04 or rather Ubuntu24.04. In my case (24.04) php8.2 was not available, so I had to use php8.3 at least for executing composer. I'd recommend to check, if the software runs on 8.3, then it's all fine. It's all kinda rudimentary and dirty at the moment. If the questions above are answered, and you're fine with the provided files, I'd create a clean fork and make a pull request. Thanks for your hard work guys! |
Beta Was this translation helpful? Give feedback.
-
What I can say at the moment is that the image was created manually at the time and was not automated, so the current version is still 4.2.3. Unfortunately, I can't reach our developer right now, so I can't give you any further information. I should point out that we do this in our spare time alongside our regular jobs ;-) |
Beta Was this translation helpful? Give feedback.
-
All fine. Sorry for my harsh words, I did/do my contributions here in my free time as well. The "org" I was referring to is just some sort of voluntary work, so no money there :c I know about the images and can imagine, how they were built and published. Just the info about "private or public" runner is not clear, as the runner used in this repo is pretty old already. If the dev can answer this at some time, cool! If not, I will just use the public one. I will create a merge request for an automated image build and push, once I cleared my code up. Probably on some weekend. |
Beta Was this translation helpful? Give feedback.
-
To make this perfectly clear: Latest is not stale. Docker and the web version follow separate release schedules. This repository only contains files related to the Docker code base, not the web application. The Docker image is updated each time this repository is updated. Everything needed to build the latest Docker image from source is included in this repository. Doing so will always give you the most up-to-date packages and the latest LinkStack release. The next LinkStack update will require a new PHP version, and this repository will be updated accordingly. A new, more performant Docker setup is also in the works, so I hope it can be forgiven that this repo has seen a bit less love lately. To be completely transparent: I did attempt integrating the Docker release into our automated release schedule, but for some reason my script refuses to authenticate with Docker Hub when running in GitHub Actions. I tried everything (password and API authentication), but it never worked on the GitHub VMs. Locally, it works fine and honestly, I’m too tired to troubleshoot this further. If anyone wants to take a look, that would be a huge help. Here is the script: Latest attempt (auth step): |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
First off, thanks for an amazing utility.
It looks like the
latest
tag of this Docker image was pushed to hub.docker.com on July 8, 2023, and is for version 4.2.3. Based on the GitHub releases page, it appears that the actual latest release of LinkStack is 4.8.4. Here is the update page I am presented with on a fresh deployment of LinkStack:Beta Was this translation helpful? Give feedback.
All reactions