Created
March 13, 2018 02:12
-
-
Save anabarasan/bb8b5f01584fd43ba19e767510623a89 to your computer and use it in GitHub Desktop.
c9ide docker file WIP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:16.04 | |
MAINTAINER Anbarasan G <[email protected]> | |
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