This is a fork from kdelfour. I also used flyingprogrammer's repo for reference. Much thanks to those two for their excellent work.
The major differences in this fork are the following:
- This is an ARM architecture
- Node runs as a non-root user - hence port 8080
barrywilliams/cloud9-docker-arm
Follow Hypriot's Blog to install docker on a Raspberry Pi
docker run -it -d -p 80:8080 barrywilliams/cloud9-docker-arm
You can also provide auth credentials
docker run -d -p 80:8080 -e AUTH=user:pass barrywilliams/cloud9-docker-arm
And the collab flag
docker run -d -p 80:8080 -e COLLAB=true barrywilliams/cloud9-docker-arm
You can add a workspace as a volume directory with the argument -v /your-path/workspace/:/workspace/
like this :
docker run -it -d -p 80:8080 -v /your-path/workspace/:/workspace/ barrywilliams/cloud9-docker-arm
Navigate to your raspberry pi: http://<your pi's address>
Clone the latest repo on a Raspberry Pi with Docker.
git clone https://github.com/barrywilliams/cloud9-docker-arm
Build it
docker build cloud9-docker-arm/ --force-rm=true --tag="$USER/cloud9-docker-arm:latest" .
And run
docker run -d -p 80:80 -v /your-path/workspace/:/workspace/ $USER/cloud9-docker-arm:latest
Enjoy !!