Public Repository

Last pushed: a year ago
Short Description
Cloud9 from c9.io
Full Description

This image is the working image of cloud9 from c9.io
Built from https://github.com/c9

In /etc/init.d/docker-cloud9 file

#!/bin/sh
### BEGIN INIT INFO
# Provides: docker-cloud9
# Required-Start: $syslog $remote_fs
# Required-Stop: $syslog $remote_fs
# Should-Start: cgroupfs-mount cgroup-lite
# Should-Stop: cgroupfs-mount cgroup-lite
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Provide Cloud9 service from docker
### END INIT INFO

set -e

[ "whoami" = root ] || exit 1
case "$1" in
start)
if [ -s /tmp/docker-cloud9 ]; then
echo "Service already running at cat /tmp/docker-cloud9"
else
echo -n "Starting the service ... "
/usr/bin/docker run -td -p 8443:8443 -m 512MB --memory-swap 1024MB -h cloud9 --name docker-cloud9 -v /home/xcage/:/home/xcage/ xcage15/cloud9 /usr/local/bin/cloud9 > /tmp/docker-cloud9
cat /tmp/docker-cloud9
fi
;;
stop)
if [ -s /tmp/docker-cloud9 ]; then
echo -n "Stopping the service ... "
/usr/bin/docker stop cat /tmp/docker-cloud9
/usr/bin/docker commit -m "Auto Commited by init." -a "Init" cat /tmp/docker-cloud9 xcage15/cloud9
/usr/bin/docker rm cat /tmp/docker-cloud9
rm /tmp/docker-cloud9
else
echo "Service is not running."
fi
;;
restart)
$0 stop
sleep 3
$0 start
;;
status)
if [ -s /tmp/docker-cloud9 ]; then
echo "Service already running at cat /tmp/docker-cloud9"
else
echo "Service is not running. "
fi
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac
exit 0

Docker Pull Command
Owner
xcage15

Comments (0)