Sign inSign up

jitsejan/cloud9-docker

By jitsejan

•Updated over 8 years ago

Modification of the Docker image of `kdelfour/supervisor-docker`.

Image
0

224

jitsejan/cloud9-docker repository overview

⁠Build


$ docker build . --build-arg username=mario --build-arg password=luigi

⁠Dockerfile


# ------------------------------------------------------------------------------
# Based on a work at https://github.com/docker/docker.
# ------------------------------------------------------------------------------
# Pull base image.
FROM kdelfour/supervisor-docker
MAINTAINER Jitse-Jan <[email protected]>

# ------------------------------------------------------------------------------
ARG username
ARG password

# ------------------------------------------------------------------------------
# Install base
RUN apt-get update
RUN apt-get install -y build-essential g++ curl libssl-dev apache2-utils git libxml2-dev sshfs

# ------------------------------------------------------------------------------
# Install Node.js
RUN curl -sL https://deb.nodesource.com/setup_9.x | bash -
RUN apt-get install -y nodejs
    
# ------------------------------------------------------------------------------
# Install Cloud9
RUN git clone https://github.com/c9/core.git /cloud9
WORKDIR /cloud9
RUN scripts/install-sdk.sh

# Tweak standlone.js conf
RUN sed -i -e 's_127.0.0.1_0.0.0.0_g' /cloud9/configs/standalone.js 
RUN sed -i -e 's_argv.auth + ""_"'$username':'$password'"_g' /cloud9/configs/standalone.js 

# ------------------------------------------------------------------------------
# Add volumes
RUN mkdir /workspace
VOLUME /workspace

# ------------------------------------------------------------------------------
# Clean up APT when done.
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# ------------------------------------------------------------------------------
# Expose ports.
EXPOSE 80
EXPOSE 3000

# ------------------------------------------------------------------------------
# Start supervisor, define default command.
CMD ["node", "/cloud9/server.js", "-p", "8083"]

Tag summary

Content type

Image

Digest

Size

348.1 MB

Last updated

over 8 years ago

docker pull jitsejan/cloud9-docker