Konubinix' opinionated web of thoughts

Trying to Setup Retropie to Play Snes

Fleeting

I already have a bunch of raspberry pi in my nomad cluster, so why not use one connected to a screen to play snes ?

I don’t want to dual boot my cluster images and retropie, so here are my options to try.

TODO use an old rpi 1 that don’t fit in my cluster

TODO put retropie in a docker image to run in via nomad

TODO build it from scratch

MP32:
    COMMAND
    ARG --required ref
    ARG target
    BUILD --platform=linux/arm/v7 $target --ref=${ref}

retropie-docker-src:
    FROM alpine
    RUN apk add git
    GIT CLONE https://github.com/nwildner/retropie-docker app
    SAVE ARTIFACT app

retropie-build:
    FROM DOCKERFILE -f +retropie-docker-src/app/Dockerfile +retropie-docker-src/app/*
    ARG --required ref
    DO ./helpers+PUBLISH --image=retropie --ref=$ref

retropie:
    ARG ref="0.1.0"
    DO +MP32 --target=+retropie-build --ref=$ref

It took 4 hours, and eventually failed without any log.

The fact that all 4 hours are spent in a complicated bash script that runs thousands of commands makes it difficult to take advantage of the docker cache to debug the issue.

TODO put the .img file in a new docker image

TODO run the docker image with support for the hardware