#797  ARM64 support for 1dev/agent docker image
Released
D3n opened 2 years ago

I would like to build docker containers for ARM64(Oracle cloud ampere for example) but to do this I would need a build agent on an ARM64 platform. But sadly I got the following error message:

Status: Downloaded newer image for 1dev/agent:latest
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
exec /agent/boot/wrapper-linux-x86-64: exec format error

I wanted to build an image for myself, but I cannot find any Dockerfile in the repo

Robin Shen commented 2 years ago

The agent docker image only works on Linux. You may start agent in bare metal/virtual machine mode on ARM64 platform.

Agent docker image is built in server's build script, as it needs some files used by server. For details, please check here:

https://code.onedev.io/projects/160/files/c5ac77ce5d5bce0dc45e22d143c4eb4ff711830a/.onedev-buildspec.yml?position=source-97.1-102.38-1&view-plain=true

Zhou You commented 2 years ago

Use Docker Buildx to Build multi-platform images

Robin Shen commented 2 years ago

@zzzhouuu Thanks for the info. Will look into this.

Andreas Wachter commented 1 year ago

@d3n972 I had the same issue, so I build my own container for that: https://hub.docker.com/r/buddyspencer/onedev-agent

OneDev changed state to 'Closed' 1 year ago
Previous Value Current Value
Open
Closed
OneDev commented 1 year ago

State changed as code fixing the issue is committed

OneDev changed state to 'Released' 1 year ago
Previous Value Current Value
Closed
Released
OneDev commented 1 year ago

State changed as build #3440 is successful

issue 1 of 1
Type
Improvement
Priority
Normal
Assignee
Issue Votes (0)
Watchers (7)
Reference
onedev/server#797
Please wait...
Page is in error, reload to recover