Skip to content

Instantly share code, notes, and snippets.

@anabarasan
Created March 13, 2018 02:12
Show Gist options
  • Save anabarasan/bb8b5f01584fd43ba19e767510623a89 to your computer and use it in GitHub Desktop.
Save anabarasan/bb8b5f01584fd43ba19e767510623a89 to your computer and use it in GitHub Desktop.
c9ide docker file WIP
FROM ubuntu:16.04
MAINTAINER Anbarasan G <nasarabna@gmail.com>
ARG username=admin
ARG password=admin
ARG port=8181
RUN apt update && apt install -y git wget curl xz-utils build-essential gcc git make python2.7
# Install Node 8.10.0
RUN wget https://nodejs.org/dist/v8.10.0/node-v8.10.0-linux-x64.tar.xz \
&& tar -xJf node-v8.10.0-linux-x64.tar.xz -C /usr/local --strip-components=1 --no-same-owner \
&& rm node-v8.10.0-linux-x64.tar.xz \
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs
# Install c9 ide
RUN git clone https://github.com/c9/core.git /c9 \
&& cd /c9 \
&& scripts/install-sdk.sh \
&& mkdir /workspace
EXPOSE $port
WORKDIR /c9
ENTRYPOINT node /c9/server.js -b --port $port --auth $username:$password -w $workspace --collab 2>&1 | tee /c9/server.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment