mirror of
https://github.com/amidaware/tacticalrmm.git
synced 2026-04-26 06:55:52 +03:00
[GH-ISSUE #174] Docker - Unable to build API image #2047
Labels
No labels
In Process
bug
bug
dev-triage
documentation
duplicate
enhancement
fixed
good first issue
help wanted
integration
invalid
pull-request
question
requires agent update
security
ui tweak
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tacticalrmm#2047
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 @TnTBass on GitHub (Nov 10, 2020).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/174
Step 33/33 fails, looks like the certificates aren't in the Docker image (or not being referenced) attempting to be built, causing the git clone to fail.
Step 33/33 : RUN /usr/local/rmmgo/go/bin/go get github.com/josephspurrier/goversioninfo/cmd/goversioninfo && cp ./api/tacticalrmm/core/goinstaller/bin/goversioninfo /usr/local/bin/ && chmod +x /usr/local/bin/goversioninfo
---> Running in c845f12794a2
cd .; git clone -- https://github.com/josephspurrier/goversioninfo /root/go/src/github.com/josephspurrier/goversioninfo
Cloning into '/root/go/src/github.com/josephspurrier/goversioninfo'...
fatal: unable to access 'https://github.com/josephspurrier/goversioninfo/': server certificate verification failed. CAfile: none CRLfile: none
package github.com/josephspurrier/goversioninfo/cmd/goversioninfo: exit status 128
ERROR: Service 'celery-service' failed to build : The command '/bin/sh -c /usr/local/rmmgo/go/bin/go get github.com/josephspurrier/goversioninfo/cmd/goversioninfo && cp ./api/tacticalrmm/core/goinstaller/bin/goversioninfo /usr/local/bin/ && chmod +x /usr/local/bin/goversioninfo' returned a non-zero code: 1
@sadnub commented on GitHub (Nov 11, 2020):
Modify your dockerfile in the docker/api folder to this:
I am in the process of revamping the docker setup, but this will get your image to build in the meantime.
Thanks!
@TnTBass commented on GitHub (Nov 12, 2020):
That worked to build it. Thanks!
@sadnub commented on GitHub (Nov 12, 2020):
@TnTBass The latest changes have been released. Do a
git pull -fto overwrite the local changes and pull the new ones. I was able to build the prod setup just fine, so if you are having issues it might be due to the .env file.Thanks!