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

[BUG] Docker compilation issue #2308

Closed
vijay7777777 opened this issue May 16, 2024 · 1 comment
Closed

[BUG] Docker compilation issue #2308

vijay7777777 opened this issue May 16, 2024 · 1 comment
Labels
bug Categorizes issue or PR as related to a bug.

Comments

@vijay7777777
Copy link

OpenIM Server Version

release-v3.7

Operating System and CPU Architecture

Linux (AMD)

Deployment Method

Docker Deployment

Bug Description and Steps to Reproduce

➜ open-im-server git:(release-v3.7) docker buildx build -t harbor.dev.obvcloud.com/library/openim/openim-server:release-v3.7 --platform linux/amd64 --push -t harbor.dev.obvcloud.com/library/openim/openim-server:release-v3.7 .
[+] Building 479.3s (11/22) docker-container:naughty_curie
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.72kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 432B 0.0s
=> [internal] load metadata for docker.io/library/golang:1.21-alpine 479.3s
=> [stage-1 1/13] FROM docker.io/library/golang:1.21-alpine@sha256:1c2e4747a1b15fe65c8317bca9bd91611b29fe7c8b65009b9edbee7653e62614 0.0s
=> => resolve docker.io/library/golang:1.21-alpine@sha256:1c2e4747a1b15fe65c8317bca9bd91611b29fe7c8b65009b9edbee7653e62614 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 38.63kB 0.0s
=> CACHED [stage-1 2/13] RUN apk add --no-cache bash 0.0s
=> CACHED [stage-1 3/13] WORKDIR /openim-server 0.0s
=> CACHED [builder 2/6] WORKDIR /openim-server 0.0s
=> CACHED [builder 3/6] COPY . . 0.0s
=> CACHED [builder 4/6] RUN go mod download 0.0s
=> CACHED [builder 5/6] RUN go install github.com/magefile/[email protected] 0.0s
=> ERROR [builder 6/6] RUN mage build 472.9s

[builder 6/6] RUN mage build:
10.70 [2024-05-16 09:04:41 UTC] Compiling cmd for linux_amd64...
10.70 [2024-05-16 09:04:41 UTC] Compiling dir: openim-cmdutils for platform: linux_amd64 binary: openim-cmdutils ...
10.70 [2024-05-16 09:04:41 UTC] Compiling dir: openim-api for platform: linux_amd64 binary: openim-api ...
10.70 [2024-05-16 09:04:41 UTC] Compiling dir: openim-msggateway for platform: linux_amd64 binary: openim-msggateway ...
10.70 [2024-05-16 09:04:41 UTC] Compiling dir: openim-crontask for platform: linux_amd64 binary: openim-crontask ...
203.6 github.com/redis/go-redis/v9: /usr/local/go/pkg/tool/linux_amd64/compile: signal: killed
263.6 github.com/redis/go-redis/v9: /usr/local/go/pkg/tool/linux_amd64/compile: signal: killed
272.7 github.com/redis/go-redis/v9: /usr/local/go/pkg/tool/linux_amd64/compile: signal: killed
284.9 github.com/redis/go-redis/v9: /usr/local/go/pkg/tool/linux_amd64/compile: signal: killed
472.7 [2024-05-16 09:12:23 UTC] Compilation aborted. failed to compile openim-msggateway for linux_amd64: running "go build -o /openim-server/_output/bin/platforms/linux/amd64/openim-msggateway /openim-server/cmd/openim-msggateway/main.go" failed with exit code 1


Dockerfile:22

20 |
21 | # Optionally build your application if needed
22 | >>> RUN mage build
23 |
24 | # Using Alpine Linux with Go environment for the final image

ERROR: failed to solve: process "/bin/sh -c mage build" did not complete successfully: exit code: 1

Screenshots Link

No response

@vijay7777777 vijay7777777 added the bug Categorizes issue or PR as related to a bug. label May 16, 2024
@kubbot
Copy link
Contributor

kubbot commented May 16, 2024

Hello! Thank you for filing an issue.

If this is a bug report, please include relevant logs to help us debug the problem.

Join slack 🤖 to connect and communicate with our developers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants