xdissent / pihotenuse

raspberry pi image development tool
https://pihotenu.se
18 stars 1 forks source link

Dockerfile support? #5

Open jedahan opened 9 years ago

jedahan commented 9 years ago

If I wanted to make a Dockerfile that used piho...how would I go about doing that?

As in, I would love to write:

FROM xdissent/pihotenuse

MAINTAINER Jonathan Dahan jonathan@jonathan.is

COPY my-cool-package.tar.gz /var/tmp

RUN apt-get install -y libsdl1.2

WORK /var/tmp

RUN tar xf my-cool-package.tar.gz && make && make install

CMD bash

I hope this request makes a modicum of sense...

I would expect to have to do something special, like point boot2docker to use your special vm image or maybe have a piho docker build -t ....

xdissent commented 9 years ago

Excellent question, and I think that exactly what you're suggesting is possible with the newish dockerfile syntax. It'd be nice to expose that. Gimme a day

jedahan commented 9 years ago

Um that would be amazing ♥♡♥♡♥♡♥♡♥ if I could replace https://github.com/jedahan/raspberry-pico-8 with something upstream thanks for responding so quickly!

jedahan commented 9 years ago

Is there anything I can do to help? Would it be writing a Dockerfile that pihotenouse-vm would then run? I'm a little hazy on the layers of abstraction going on here...

jedahan commented 9 years ago

What new syntax / environment variables would need to be setup to work? Maybe I can try hacking on it myself.