Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paul-hansen/bevy_steamos_docker
https://github.com/paul-hansen/bevy_steamos_docker
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/paul-hansen/bevy_steamos_docker
- Owner: paul-hansen
- Created: 2024-07-09T22:44:26.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-13T18:46:41.000Z (4 months ago)
- Last Synced: 2024-12-06T17:48:00.317Z (17 days ago)
- Language: Dockerfile
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A Docker image for building [Bevy](bevyengine.org) games for the SteamOS (SteamDeck).
Building apps for Linux from your development PC and sharing with another PC can be inconsistent because Linux uses shared libraries and your PC may have linked newer libraries that are incompatible with the target PC's older libraries. This is especially true with the SteamDeck as it may not have the newest versions (e.g. glibc) and cannot be easily updated until Steam releases their official update.
The solution is to build in an environment with older versions of these libraries that are forwards compatible with the new versions to ensure maximum compatibility. Valve provides containers made for doing this.
This Docker image simply uses Valve's Docker image and adds Rust and the libraries needed for compiling Bevy apps on Linux.
# Usage
Build the docker image
```
docker build -t bevy_steamos https://raw.githubusercontent.com/paul-hansen/bevy_steamos_docker/main/Dockerfile
```From your project directory, run:
```
docker run -v .:/usr/src/project bevy_steamos
```By default the container will run `cargo build --release` on your project directory. You can find the resulting binary file in the `./target/release` directory
If you want to build a debug build, simply override the default command like this:
```
docker run -v .:/user/src/project bevy_steamos cargo build
```