Skip to content

Commit

Permalink
Added c9 container files
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitrgadiya committed Sep 8, 2017
1 parent 382264e commit 1e2187d
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
35 changes: 35 additions & 0 deletions Dockerfile
@@ -0,0 +1,35 @@
FROM debian:latest
MAINTAINER Ankit R Gadiya <me@argp.in>

# Install Packages
RUN apt-get update && apt-get install -y \
python \
make \
g++ \
build-essential \
libssl-dev \
apache2-utils \
libxml2-dev \
git \
curl \
locales \
tmux

# Fix locale
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen \
&& locale-gen

# Install node
RUN git clone https://github.com/creationix/nvm.git ~/.nvm
RUN bash -c "source ~/.nvm/nvm.sh && nvm install 0.10;"

# C9 Core
RUN git clone https://github.com/c9/core.git ~/c9sdk
RUN cd ~/c9sdk && ./scripts/install-sdk.sh

# Script
COPY init.sh ~/.init.sh

# Server
EXPOSE 3000
CMD ["bash", "~/.init.sh"]
6 changes: 6 additions & 0 deletions init.sh
@@ -0,0 +1,6 @@
#! /bin/bash

source ~/.nvm/nvm.sh
cd ~ && mkdir workspace
cd ~/c9sdk
node server.js -p 3000 -a : -w '/root/workspace/' --listen 0.0.0.0

0 comments on commit 1e2187d

Please sign in to comment.