yeoman and angular for Raspberry Pi [Hypriot build] (http://blog.hypriot.com/post/get-your-all-in-one-docker-playground-now-hypriotos-reloaded/)
Forked from silarsis/yeoman project
Dockerfile for base yeoman install, with a few generators pre-installed.
-
docker run -i -t -d --name yo brereton/rpi-yeoman-angular
(alternatively, build from github:
docker build -t="brereton/rpi-yeoman-angular" github.com/brereton/yeoman
)
docker run -i -t -d --name yo brereton/rpi-yeoman-angular
This will run the container and log you in as the "yeoman" user, ready to "yo".
- To run another shell while the container is running
docker exec -it yo bash
- Once inside the container, enter
yo angular
Answer the prompts, go get some coffee, read a book, paint your house,...when yo is done, enter the next two commands in your container.
-
grunt build
-
grunt serve
-
Visit
http://<your raspberry pi ip address>:9000
and you should see the famed Ahoy! message.
"sudo" works inside this container - if you need root, sudo -s
will get you there.
The default grunt port (9000) is exposed by default.
Docker hints:
docker start -a -i <containerid>
will restart a stopped container and re-attach you to the bash processdocker inspect -format '{{ .NetworkSettings.IPAddress }}' <containerid>
will give you the IP address of the currently running containerdocker run -P -i -t brereton/rpi-yeoman-angular
will map port 9000 to a port on the host, anddocker port <containerid> 9000
will show you what port that ends up on