Skip to content

Pack the serivce into docker image#341

Open
duchenpaul wants to merge 8 commits intobepasty:masterfrom
duchenpaul:image_fix
Open

Pack the serivce into docker image#341
duchenpaul wants to merge 8 commits intobepasty:masterfrom
duchenpaul:image_fix

Conversation

@duchenpaul
Copy link
Copy Markdown

Also add pipeline to push to dockerhub and ghcr

@ThomasWaldmann
Copy link
Copy Markdown
Contributor

Hi @duchenpaul!

As I don't personally use and also could not support docker:

Do you want to maintain / support docker for the bepasty project?

I'm sure some users might have questions or the code might need future changes or fixes.

Cheers, Thomas

@ThomasWaldmann
Copy link
Copy Markdown
Contributor

Also: is this superseding #262?

@duchenpaul
Copy link
Copy Markdown
Author

Hi @duchenpaul!

As I don't personally use and also could not support docker:

Do you want to maintain / support docker for the bepasty project?

I'm sure some users might have questions or the code might need future changes or fixes.

Cheers, Thomas

Yes, I would like to support and maintain the docker aspect of this project. If you don't use docker, I will remove the dockerhub part as that would need your dockerhub account to deploy the images.

And for your another question, that would also be yes.

@duchenpaul
Copy link
Copy Markdown
Author

I removed the part that upload to dockerhub.

Copy link
Copy Markdown
Contributor

@ThomasWaldmann ThomasWaldmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the PR, here some stuff i found...

file: ./docker/Dockerfile
push: true
tags: |
ghcr.io/${{ github.repository }}:1.2.2
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hardcoded version number.

@@ -0,0 +1,41 @@
#!/usr/bin/python
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed?

It seems to check bepasty configuration (which bepasty itself also does).

It has hardcoded defaults that may or may not be in sync with bepasty's internal defaults.

It adds new settings that (IIRC) bepasty does not have, like BEPASTY_ADMIN_SECRET.


* For a more advanced configuration mount a custom configuration to
`/etc/bepasty.conf`.
* All data will be owned by UID 117356, to change this you can use the
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

below you use 17357? note the 2 differences in the uid.

.gitignore Outdated
docs/build/

.idea
.vscode/settings.json
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe exclude the whole .vscode?

pyproject.toml Outdated
Comment on lines +13 to +26
authors = [{ name = "The Bepasty Team (see AUTHORS file)" }]
maintainers = [{ name = "Thomas Waldmann", email = "tw@waldmann-edv.de" }]
description = "A binary pastebin and file upload service"
readme = "README.rst"
keywords = ["text", "image", "audio", "video", "binary", "pastebin", "upload", "download", "service", "wsgi", "flask"]
keywords = [
"text",
"image",
"audio",
"video",
"binary",
"pastebin",
"upload",
"download",
"service",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i would appreciate if you do not mix functional changes with code reformatting.

pyproject.toml Outdated
max-line-length = 120

[tool.bumpver]
current_version = "1.3.0"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hardcoded version number

pyproject.toml Outdated

[tool.bumpver.file_patterns]
"pyproject.toml" = ['current_version = "{version}"']
"src/bepasty/__init__.py" = ['__version__ = "{version}"']
Copy link
Copy Markdown
Contributor

@ThomasWaldmann ThomasWaldmann Nov 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we use setuptools_scm to manage automatic versioning based on git tags.

pyproject.toml Outdated
"pyproject.toml" = ['current_version = "{version}"']
"src/bepasty/__init__.py" = ['__version__ = "{version}"']
".github/workflows/docker_images.yml" = [
'duchenpaul/bepasty:{version}',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Comment on lines +1 to +3
{
"ansible.python.interpreterPath": "c:\\Python312\\python.exe"
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't commit your vscode config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants