Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/christopher-kleine/wasm4-docker
Dockerfile to create a docker image than compiles AssemblyScript, C, Go, Rust and Zig
https://github.com/christopher-kleine/wasm4-docker
assemblyscript co d docker fantasy-console game-development go nelua odin rust wasm wasm4 webassembly zig
Last synced: 3 months ago
JSON representation
Dockerfile to create a docker image than compiles AssemblyScript, C, Go, Rust and Zig
- Host: GitHub
- URL: https://github.com/christopher-kleine/wasm4-docker
- Owner: christopher-kleine
- Created: 2021-11-25T20:07:24.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-16T20:37:13.000Z (almost 3 years ago)
- Last Synced: 2024-05-19T01:57:28.595Z (6 months ago)
- Topics: assemblyscript, co, d, docker, fantasy-console, game-development, go, nelua, odin, rust, wasm, wasm4, webassembly, zig
- Language: Dockerfile
- Homepage:
- Size: 10.7 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-golang-repositories - wasm4-docker
README
# wasm4
Docker image to create and develop games for the Fantasy Console [WASM-4](https://wasm4.org/).
## Image variants: anihex/wasm4:-
All variants include the following tools:
- The `w4` CLI
- Binaryen (`wasm-opt` etc)Aside from that, there currently there are the following variants: `full`, `assemblyscript`, `c`, `d`, `go`, `nelua`, `nim`, `odin`, `rust` and `zig`.
Almost all variants include the C-variant. Exceptions are `assemblyscript` and `go`.
Examples:
```shell
docker pull anihex/wasm4:2.1.0-full
docker pull anihex/wasm4:2.1.0-c
docker pull anihex/wasm4:latest # Implicit full-variant
docker pull anihex/wasm4:go
```## Usage
The default command is `w4 watch`. This can be changed by overriding the command. If a completely different command is required, the entrypoint needs to be overridden.
Examples:
```shell
docker run --rm -v $PWD:/cart -p 4444:4444 anihex/wasm4:latest # Starts the watcher in the current directory
docker run --rm -v $PWD:/cart anihex/wasm4:latest new --c hello-c # Creates a new project called hello-c
docker run --rm -it $PWD:/cart -entrypoint bash anihex/wasm4:latest # Starts the bash-terminal
```## Ports
The default port is 4444. For examples, look at `Usage`.
## Mounts
The standard-mountpoint is `/cart`. For examples, look at `Usage`.
## Contributing
WASM-4 is OpenSource and is hosted on GitHub: https://github.com/aduros/wasm4
The docker-files for this can be found on https://github.com/christopher-kleine/wasm4-docker