Didstopia / rust-server

Provides a dedicated linux server for Rust (the game) running inside a Docker container.
MIT License
244 stars 104 forks source link

Support for M1 chipset #95

Closed roygkov closed 3 years ago

roygkov commented 3 years ago

Hi there,

It seems for me that currently image doesn't support the new mac os chipset architecture with chipset M1. Is it possible to update your base image pls? Or maybe you can suggest workaround for it?

Attaching to rust-server
rust-server    | 
rust-server    | 
rust-server    | ╔═════════════════════════════════════════════════╗
rust-server    | ║    _____  _     _     _              _          ║
rust-server    | ║   |  __ \(_)   | |   | |            (_)         ║
rust-server    | ║   | |  | |_  __| |___| |_ ___  _ __  _  __ _    ║
rust-server    | ║   | |  | | |/ _| / __| __/ _ \| |_ \| |/ _| |   ║
rust-server    | ║   | |__| | | (_| \__ \ || (_) | |_) | | (_| |   ║
rust-server    | ║   |_____/|_|\__|_|___/\__\___/| |__/|_|\__|_|   ║
rust-server    | ║                               | |               ║
rust-server    | ║                               |_|               ║
rust-server    | ╠═════════════════════════════════════════════════╣
rust-server    | ║ You are using an image that is based on         ║
rust-server    | ║ a base image maintained by Didstopia.           ║
rust-server    | ║                                                 ║
rust-server    | ║ For more information:                           ║
rust-server    | ║ https://github.com/Didstopia/docker-base-images ║
rust-server    | ╚═════════════════════════════════════════════════╝
rust-server    | 
rust-server    | 
rust-server    | Running as user: docker
rust-server    | Installing/updating steamcmd..
rust-server    | x linux32/
rust-server    | x linux32/libstdc++.so.6
rust-server    | x linux32/steamcmd
rust-server    | x steamcmd.sh
rust-server    | x steam.sh
rust-server    | Installing or updating Rust.. (this might take a while, be patient)
rust-server    | Exiting, steamcmd install or update failed!
rust-server exited with code 1
Dids commented 3 years ago

This image cannot support ARM, due to no ARM Steam or Rust support.

ATheCoder commented 2 years ago

According to the following StackOverflow link you can use the --platform linux/amd64 flag to run amd64 images on arm64 i.e. M1 chips.

Also, you need to add the CPU_MHZ environment variable inside your env file. I added CPU_MHZ=2400.