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

Please consider moving the Dockerfile to the root directory #41

Closed
AkbarTheGreat opened this issue Sep 12, 2024 · 5 comments
Closed

Please consider moving the Dockerfile to the root directory #41

AkbarTheGreat opened this issue Sep 12, 2024 · 5 comments

Comments

@AkbarTheGreat
Copy link
Contributor

Docker's buildkit allows clean builds of git repositories inline via something like docker build https://github.com/metio/matrix-alertmanager-receiver.git -- but (as far as I'm aware) this only works if the Dockerfile is co-located with the root of the context. Since the Dockerfile is written assuming a context of root-of-project, it's conventional to place the file there as well.

(The Dockerfile is also currently broken due to using the wrong Golang version, but that's a separate issue)

Thanks for your consideration, even if you opt not to move the file.

@sebhoss
Copy link
Member

sebhoss commented Sep 12, 2024

Yeah I'll do that - or if you like, you can open a PR?

@AkbarTheGreat
Copy link
Contributor Author

AkbarTheGreat commented Sep 12, 2024

Sure thing!

Also, sorry about saying the Dockerfile was broken, I was pulling the latest tagged release and see that you already fixed it. My bad.

@sebhoss
Copy link
Member

sebhoss commented Sep 12, 2024

yep no prob! The dockerfile is referenced in the "release" workflow github action as well and needs adjustment when the file is moved

AkbarTheGreat added a commit to AkbarTheGreat/matrix-alertmanager-receiver that referenced this issue Sep 12, 2024
This allows shorter builds for checked out repositories (docker build .)
as well as convenient builds off of the git repo (docker build <git
url>).  See issue metio#41 for more details.
AkbarTheGreat added a commit to AkbarTheGreat/matrix-alertmanager-receiver that referenced this issue Sep 12, 2024
This allows shorter builds for checked out repositories (docker build .)
as well as convenient builds off of the git repo (docker build <git
url>).  See issue metio#41 for more details.
sebhoss pushed a commit that referenced this issue Sep 12, 2024
This allows shorter builds for checked out repositories (docker build .)
as well as convenient builds off of the git repo (docker build <git
url>).  See issue #41 for more details.
@sebhoss
Copy link
Member

sebhoss commented Sep 12, 2024

Fixed in #42 - thanks again!

@sebhoss sebhoss closed this as completed Sep 12, 2024
@AkbarTheGreat
Copy link
Contributor Author

Thank you!

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

No branches or pull requests

2 participants