Skip to content

Pack the serivce into docker image - #341

Closed
duchenpaul wants to merge 1 commit into
bepasty:masterfrom
duchenpaul:image_fix
Closed

duchenpaul wants to merge 1 commit into
bepasty:masterfrom
duchenpaul:image_fix

Conversation

@duchenpaul

Copy link
Copy Markdown
Contributor

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
Contributor 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
Contributor Author

I removed the part that upload to dockerhub.

@ThomasWaldmann ThomasWaldmann left a comment

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.

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

Comment thread .github/workflows/docker_images.yml Outdated
Comment thread .github/workflows/docker_images.yml Outdated
Comment thread .github/workflows/docker_images.yml Outdated
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.

Comment thread docker/autoconfig.py Outdated
Comment thread docker/README.md Outdated
Comment thread .gitignore Outdated
Comment thread pyproject.toml Outdated
Comment thread pyproject.toml Outdated
Comment thread pyproject.toml Outdated
Comment thread pyproject.toml Outdated
Comment thread .vscode/settings.json Outdated
@duchenpaul

Copy link
Copy Markdown
Contributor Author

Hey, I finally got chance to fix this.

@ThomasWaldmann

Copy link
Copy Markdown
Contributor

Could you please do a clean rebase on current master, so it is just one commit and no merges?

@duchenpaul

Copy link
Copy Markdown
Contributor Author

Could you please do a clean rebase on current master, so it is just one commit and no merges?

Done


- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7

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.

that is from 2023 - use @v6 or equivalent please.

@ThomasWaldmann ThomasWaldmann left a comment

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.

some other small findings, fix them if you like.

Comment thread docker/autoconfig.py
Comment thread docker/autoconfig.py
Comment thread docker/autoconfig.py
Comment on lines +18 to +19
if "BEPASTY_STORAGE_FILESYSTEM_DIRECTORY" in os.environ:
STORAGE_FILESYSTEM_DIRECTORY = os.environ["BEPASTY_STORAGE_FILESYSTEM_DIRECTORY"]

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.

you could also use .get here, for better consistency.

@duchenpaul duchenpaul closed this by deleting the head repository Jul 29, 2026
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.

2 participants