/alpine_cloud9_docker

Docker image running C9sdk on Alpine

Primary LanguageDockerfileMIT LicenseMIT

Alpine Cloud9 IDE Docker
Maintenance

NOT MAINTAINED!

I'm no longer maintaining this repository!

This project has has been deprecated for tomerfi/c9sdk_docker.

You can still use the files ☝️, if you want.
These 👇 are the instructions.


Alpine based image running Cloud9-SDK IDE.

Base image

From alpine:3.8 described here.

Image configuration

Arguments

  • html_page_name
    (applicable for build stage only) used for setting the main page name (origin and default is ide).
    this is nice to have if you're working in a "multi ide's" enviroment, it's quicker to identify which enviroment you are working on.

Enviroment variables

  • C9USER
    used for setting the user name for login to the ide, default value is c9user.
  • C9PASSWORD
    used for setting the password for login to the ide, default value is c9password.

Volumes

  • /workspace
    used for binding a path from the host for allowing data persistence.

Ports

  • 8080
    used for accessing the ide.

Usage

Run from hub

docker run from hub

docker run -p 8080:8080 -v /path_for_data_persistence:/workspace -e C9USER="user_name" -e C9PASSWORD="nice_password" --name my_container_name tomerfi/alpine-c9:latest

docker-compose from hub

version: "3"
services:
  ide:
    image: tomerfi/alpine-c9:latest
    container_name: my_container_name
    environment:
      - C9USER=user_name
      - C9PASSWORD=nice_password
    ports:
      - 8080:8080
    volumes:
      - /path_for_data_persistence:/workspace
    restart: unless-stopped

Manual build

git clone https://github.com/TomerFi/alpine_cloud9_docker.git /path_for_repository

docker run from manual build

docker build /path_for_repository --build-arg html_page_name="cool_page_name" --tag alpine-c9:some_tag
docker run -p 8080:8080 -v /path_for_data_persistence:/workspace -e C9USER="user_name" -e C9PASSWORD="nice_password" --name my_container_name alpine-c9:some_tag

docker-compose from manual build

version: "3"
services:
  ide:
    build:
      context: .
      dockerfile: Dockerfile
      args:
        - html_page_name=cool_page_name
    container_name: my_container_name
    environment:
      - C9USER=user_name
      - C9PASSWORD=nice_password
    ports:
      - 8080:8080
    volumes:
      - /path_for_data_persistence:/workspace
    restart: unless-stopped