Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'latest' docker image seems not to be the latest #1116

Closed
frydrycht opened this issue Apr 18, 2024 · 2 comments
Closed

'latest' docker image seems not to be the latest #1116

frydrycht opened this issue Apr 18, 2024 · 2 comments
Labels

Comments

@frydrycht
Copy link

Describe the bug
I am working on pre-create hook to add some ID prefix to separate the data in file storage. I found that I can use slashes to build hierarchical (directory-like) schema. It was introduced with PR #1020 and finally released in version 2.3.0. I used the latest version of docker image but I got 404 on PATCH request to upload file content. After some time I decided to change docker image first to v2.3.0 and it started to work. Then I verified v2.4.0 (latest release) and it also works so it seems latest docker image does not contain latest version of tusd.

To Reproduce
Steps to reproduce the behavior:

  1. Use latest docker image to start the service
  2. Create pre-create hook to change the file ID to contain prefix with slash (/)
  3. You cannot upload the file as there is no driectory for prefix and if directory exists then PATCH request to upload the content ends with 404

Expected behavior
latest docker image contains latest version of tusd

Setup details
N.A.

@frydrycht frydrycht added the bug label Apr 18, 2024
@Acconut
Copy link
Member

Acconut commented Apr 18, 2024

That's odd. Looking at the tags for the Docker image confirms that the latest tag was created at the same time as the 2.4.0 tag. So that checks out.

When pulling the latest tag, I also get 2.4.0 as expected:

$ docker run --rm tusproject/tusd:latest --version
Version: v2.4.0
Commit: 50b9ff5623c26c856ec97e2e0a9a44c0f6baaceb
Date: Mon Mar 18 20:42:00 UTC 2024

Do you get something different? Maybe the lastest tag is cached for you and you have to pull it again?

@frydrycht
Copy link
Author

OK, I have to get to know docker better :). In my images there was version of tusd from January and it was still used as a latest. You can close the ticket.

@Acconut Acconut added question and removed bug labels Apr 18, 2024
@Acconut Acconut closed this as completed Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants