potatis/nes-cloud
2024-07-28 19:57:53 +02:00
..
included-roms Cloud 2023-03-13 00:37:52 +01:00
src Compile on Rust 1.80 stable 2024-07-28 19:57:53 +02:00
tests Compile on Rust 1.80 stable 2024-07-28 19:57:53 +02:00
.gitignore Cloud 2023-03-13 00:37:52 +01:00
Cargo.toml Compile on Rust 1.80 stable 2024-07-28 19:57:53 +02:00
Cargo.toml.docker Cloud 2023-03-13 00:37:52 +01:00
docker-compose.yaml Cloud 2023-03-13 00:37:52 +01:00
Dockerfile Cloud 2023-03-13 00:37:52 +01:00
Dockerfile.dockerignore Cloud 2023-03-13 00:37:52 +01:00
fly.toml Cloud 2023-03-13 00:37:52 +01:00
README.md Cloud 2023-03-13 00:37:52 +01:00
resources.yaml todo.nes.cloud -> play-nes.org 2023-03-13 00:44:10 +01:00
test.sh Cloud 2023-03-13 00:37:52 +01:00

Docker

Build: docker build -t nes-cloud -f nes-cloud/Dockerfile .

Run: docker run -p 4444:4444 -p 5555:5555 -p 6666:6666 -p 7777:7777 --init -it --rm nes-cloud

Shell: docker run --init -it --rm nes-cloud bash

Running: docker exec -it [ID] /bin/bash

Compose: docker compose -f nes-cloud/docker-compose.yaml up

Deploy

  1. cd potatis
  2. docker build --platform linux/amd64 -t http://registry.fly.io/nes-cloud:TAG -f nes-cloud/Dockerfile .
  3. docker push http://registry.fly.io/nes-cloud:TAG
  4. flyctl deploy -i http://registry.fly.io/nes-cloud:TAG -a nes-cloud