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

Support arm64 architecture in docker image #407

Closed
sandoval opened this issue Sep 5, 2022 · 4 comments
Closed

Support arm64 architecture in docker image #407

sandoval opened this issue Sep 5, 2022 · 4 comments
Labels
enhancement New feature or request stale

Comments

@sandoval
Copy link

sandoval commented Sep 5, 2022

Reason/Context

  • Why we need this improvement?

Currently the docker image fails to start in a machine with arm64 architecture (e.g. Macs with ARM processors). Even though docker supports virtualization, the nginx for amd64 architectures fails to start:

docker run -it -p 8000:80 asyncapi/studio                        
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/set-public-url.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Configuration complete; ready for start up
2022/09/05 21:18:43 [notice] 1#1: using the "epoll" event method
2022/09/05 21:18:43 [notice] 1#1: nginx/1.21.5
2022/09/05 21:18:43 [notice] 1#1: built by gcc 10.3.1 20211027 (Alpine 10.3.1_git20211027) 
2022/09/05 21:18:43 [notice] 1#1: OS: Linux 5.10.104-linuxkit
2022/09/05 21:18:43 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2022/09/05 21:18:43 [notice] 1#1: start worker processes
2022/09/05 21:18:43 [notice] 1#1: start worker process 89
2022/09/05 21:18:43 [notice] 1#1: start worker process 91
2022/09/05 21:18:43 [notice] 1#1: start worker process 93
2022/09/05 21:18:43 [notice] 1#1: start worker process 94
2022/09/05 21:18:43 [notice] 1#1: start worker process 96
2022/09/05 21:18:43 [notice] 1#1: start worker process 97
2022/09/05 21:18:43 [emerg] 89#89: io_setup() failed (38: Function not implemented)
2022/09/05 21:18:43 [emerg] 91#91: io_setup() failed (38: Function not implemented)
2022/09/05 21:18:43 [emerg] 94#94: io_setup() failed (38: Function not implemented)
2022/09/05 21:18:43 [emerg] 97#97: io_setup() failed (38: Function not implemented)
2022/09/05 21:18:43 [emerg] 93#93: io_setup() failed (38: Function not implemented)
2022/09/05 21:18:43 [emerg] 96#96: io_setup() failed (38: Function not implemented)

Description

In order to support the arm64 architecture, no code changes are required. Only changes to the build automation so that the docker image is also built for that architecture, since the base images used in the Dockerfile already have builds for arm64 widely available.

I will submit a pull request with proposed changes.

@sandoval sandoval added the enhancement New feature or request label Sep 5, 2022
@github-actions
Copy link

github-actions bot commented Sep 5, 2022

Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@github-actions
Copy link

github-actions bot commented Jan 4, 2023

This issue has been automatically marked as stale because it has not had recent activity 😴

It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.

There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.

Thank you for your patience ❤️

@github-actions
Copy link

github-actions bot commented Jun 7, 2023

This issue has been automatically marked as stale because it has not had recent activity 😴

It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.

There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.

Thank you for your patience ❤️

@github-actions github-actions bot added the stale label Jun 7, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 6, 2023
@sebastianvoss
Copy link
Contributor

@KhudaDad414 Would it make sense to re-open this? I think in the meantime ARM architecture got very widespread and it would be cool to have a compatible asyncapi/studio image. What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants