mirror of
https://github.com/acme-dns/acme-dns.git
synced 2026-04-27 04:45:48 +03:00
[GH-ISSUE #364] podman-compose (docker-compose) fails on sqlite3-binding error #205
Labels
No labels
Documentation
Documentation
bug
enhancement
feature request
feature request
help wanted
pull-request
question
security
security
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/acme-dns#205
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sle-fevre on GitHub (Sep 29, 2024).
Original GitHub issue: https://github.com/acme-dns/acme-dns/issues/364
I'm trying to build using podman-compose but it fails on a sqlite3-binding library error (see below). I found a similar issue with the library and the author provided a work around (using v1.14.22 of the library). I've looked a few different ways to specify the version to get this to building cleaning but I don't have the background to resolve this.
I've also tried tried
podman build .with the same results.I'm hoping someone can provide guidance on how to build this cleanly.
@kawaii-wolf commented on GitHub (Sep 30, 2024):
RUN sed -i 's/go-sqlite3 v1[.]14[.]16/go-sqlite3 v1.14.22/g' /tmp/acme-dns/go.mod
RUN sed -i 's/go-sqlite3 v1[.]14[.]16/go-sqlite3 v1.14.22/g' /tmp/acme-dns/go.sum
RUN sed -i 's/h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg=/h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y=/g' /tmp/acme-dns/go.sum
RUN sed -i 's/h1:yOQRA0RpS5PFz/oikGwBEqvAWhWg5ufRz4ETLjwpU1Y=/h1:2gZY6PC6kBnID23Tichd1K+Z0oS6nE/XwU+Vz/5o4kU=/g' /tmp/acme-dns/go.sum
Here's what I added to the Dockerfile to update go.mod/go.sum to use the newer version you linked.
@sle-fevre commented on GitHub (Sep 30, 2024):
Thanks for the help as the build now runs cleanly and to completion. I had to modify what you provided as the last sed substitution didn't work since there were forward slashes in the hash value. For anyone else that hits this, add the following lines in the Docker file before the
RUN CGO_ENABLED=1 go buildstatement.@kawaii-wolf commented on GitHub (Sep 30, 2024):
Looks like github did the same thing again when pasting, just escape your forward slashes with backslashes.