You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by GitBox <gi...@apache.org> on 2022/04/01 03:26:39 UTC
[GitHub] [incubator-shenyu] myesn opened a new issue #3163: [BUG] Docker-Compose db(mysql) image not support arm64(Raspberry Pi 4 Model B) architecture
myesn opened a new issue #3163:
URL: https://github.com/apache/incubator-shenyu/issues/3163
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Current Behavior
Docker-Compose file:
[master/shenyu-dist/shenyu-docker-compose-dist/src/main/resources/stand-alone-mysql/docker-compose.yaml](https://github.com/apache/incubator-shenyu/blob/master/shenyu-dist/shenyu-docker-compose-dist/src/main/resources/stand-alone-mysql/docker-compose.yaml)
Operation system version:
```bash
ubuntu@ubuntu:~/apache-shenyu/shenyu-master$ uname -a
Linux ubuntu 5.4.0-1055-raspi #62-Ubuntu SMP PREEMPT Wed Mar 2 14:43:34 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
```
Running on raspberry 4b(arm64):
```bash
ubuntu@ubuntu:~/apache-shenyu/shenyu-master$ docker-compose up -d
Pulling db (docker.io/mysql:5.7)...
5.7: Pulling from library/mysql
5.7: Pulling from library/mysql
ERROR: no matching manifest for linux/arm64/v8 in the manifest list entries
```
### Expected Behavior
Make it work, thanks.
### Steps To Reproduce
An error occurs after executing the following command:
```bash
curl https://raw.githubusercontent.com/apache/incubator-shenyu/master/shenyu-dist/shenyu-docker-compose-dist/src/main/resources/install.sh | bash -s master mysql
```
### Environment
```markdown
ShenYu version(s): 2.4.2
```
### Debug logs
_No response_
### Anything else?
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-shenyu] myesn commented on issue #3163: [BUG] Docker-Compose db(mysql) image not support arm64(Raspberry Pi 4 Model B) architecture
Posted by GitBox <gi...@apache.org>.
myesn commented on issue #3163:
URL: https://github.com/apache/incubator-shenyu/issues/3163#issuecomment-1085498805
I think we need to first split the docker-compose.yml file according to different CPU architectures, and then modify the install.sh script to execute different docker-compose.yml file for different CPU architectures, with pseudo code like:
```javascript
kind = ""
switch os.architecture:
case x64:
kind = "x64"; break;
case arm64:
kind = "arm64"; break;
default:
throw error("not supported");
docker-compose -f docker-compose-${kind}.yml up -d
```
Here are some references:
- [Changing the image in Docker Compose based on the host OS](https://stackoverflow.com/questions/53543445/changing-the-image-in-docker-compose-based-on-the-host-os)
- [How can I get distribution name and version number in a simple shell script?](https://unix.stackexchange.com/questions/6345/how-can-i-get-distribution-name-and-version-number-in-a-simple-shell-script)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-shenyu] myesn edited a comment on issue #3163: [BUG] Docker-Compose db(mysql) image not support arm64(Raspberry Pi 4 Model B) architecture
Posted by GitBox <gi...@apache.org>.
myesn edited a comment on issue #3163:
URL: https://github.com/apache/incubator-shenyu/issues/3163#issuecomment-1085498805
I think we need to first split the docker-compose.yml file according to different CPU architectures, and then modify the install.sh script to execute different docker-compose.yml file for different CPU architectures, with pseudo code like:
Step 1:
```
docker-compose-x64.yml -- lots of OS-dependent services for x64
docker-compose-arm.yml -- lots of OS-dependent services for arm
```
Step 2:
```javascript
kind = ""
switch os.architecture:
case x64:
kind = "x64"; break;
case arm64:
kind = "arm64"; break;
default:
throw error("not supported");
docker-compose -f docker-compose-${kind}.yml up -d
```
Here are some references:
- [Changing the image in Docker Compose based on the host OS](https://stackoverflow.com/questions/53543445/changing-the-image-in-docker-compose-based-on-the-host-os)
- [How can I get distribution name and version number in a simple shell script?](https://unix.stackexchange.com/questions/6345/how-can-i-get-distribution-name-and-version-number-in-a-simple-shell-script)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-shenyu] JooKS-me commented on issue #3163: [BUG] Docker-Compose db(mysql) image not support arm64(Raspberry Pi 4 Model B) architecture
Posted by GitBox <gi...@apache.org>.
JooKS-me commented on issue #3163:
URL: https://github.com/apache/incubator-shenyu/issues/3163#issuecomment-1085538695
> Using the biarms/mysql:5.7.30-linux-arm64v8 image in our project can run successfully.
Hi, I think we can change `mysql` to `mariadb` which support both amd64 and arm64 arch.
<img width="1254" alt="image" src="https://user-images.githubusercontent.com/62384022/161217623-e000f226-793b-411b-b7b3-933c5e6e8c0e.png">
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-shenyu] myesn commented on issue #3163: [BUG] Docker-Compose db(mysql) image not support arm64(Raspberry Pi 4 Model B) architecture
Posted by GitBox <gi...@apache.org>.
myesn commented on issue #3163:
URL: https://github.com/apache/incubator-shenyu/issues/3163#issuecomment-1085583941
> Hi, I think we can change mysql to mariadb which support both amd64 and arm64 arch.
It should work, I haven't used mariadb, all I know is that it's a mysql based distribution.
But now there is a new problem, the `shenyu-admin` and `shenyu-bootstrap` are not working properly(on arm64 architecture), I created a new issue #3166 to illustrate this new problem.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-shenyu] myesn edited a comment on issue #3163: [BUG] Docker-Compose db(mysql) image not support arm64(Raspberry Pi 4 Model B) architecture
Posted by GitBox <gi...@apache.org>.
myesn edited a comment on issue #3163:
URL: https://github.com/apache/incubator-shenyu/issues/3163#issuecomment-1085498805
I think we need to write different docker-compose.yml file for different CPU architectures, and then modify the install.sh script to execute different docker-compose.yml file for different CPU architectures, with pseudo code like:
Step 1:
```
docker-compose-x64.yml -- lots of OS-dependent services for x64
docker-compose-arm.yml -- lots of OS-dependent services for arm
```
Step 2:
```javascript
kind = ""
switch os.architecture:
case x64:
kind = "x64"; break;
case arm64:
kind = "arm64"; break;
default:
throw error("not supported");
docker-compose -f docker-compose-${kind}.yml up -d
```
Here are some references:
- [Changing the image in Docker Compose based on the host OS](https://stackoverflow.com/questions/53543445/changing-the-image-in-docker-compose-based-on-the-host-os)
- [How can I get distribution name and version number in a simple shell script?](https://unix.stackexchange.com/questions/6345/how-can-i-get-distribution-name-and-version-number-in-a-simple-shell-script)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-shenyu] yu199195 commented on issue #3163: [BUG] Docker-Compose db(mysql) image not support arm64(Raspberry Pi 4 Model B) architecture
Posted by GitBox <gi...@apache.org>.
yu199195 commented on issue #3163:
URL: https://github.com/apache/incubator-shenyu/issues/3163#issuecomment-1085386930
Do you have any good solutions?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org