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 06:50:59 UTC

[GitHub] [incubator-shenyu] myesn commented on issue #3163: [BUG] Docker-Compose db(mysql) image not support arm64(Raspberry Pi 4 Model B) architecture

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