CLOUD9 3.0 SDK Installation

Source: Internet
Author: User
Tags install node node server docker ps ruby on rails docker run

The CLOUD9 IDE is a JavaScript program built based on node. JS to develop the Web IDE. It has a very fast text editor that supports coloring display for JS, HTML, CSS and these kinds of mixed code. The CLOUD9 IDE also integrates the debugger for node. js and Google Chrome to start, pause, and stop in the IDE. Ability to test and deploy your code in a cloud-computing environment. With WebDAV, it can also be connected to a remote workbench. The CLOUD9 IDE has a plug-in system to extend existing functionality, and the IDE currently has several plugins bundled.

First, Docker

Docker Image address: https://hub.docker.com/r/kdelfour/cloud9-docker/

"Linux operations Log"
[email protected] ~]# Docker search Cloude9
INDEX NAME DESCRIPTION STARS Official automated
[email protected] ~]# Docker search cloud9
INDEX NAME DESCRIPTION STARS Official automated
Docker.io Docker.io/kdelfour/cloud9-docker Automated Cloud9 IDE (Http://c9.io) Build 103 [OK]
Docker.io docker.io/sapk/cloud9 Cloud9 instance [OK]
Docker.io docker.io/cloud9/workspace Base image for the Cloud9 Docker workspaces 11
Docker.io docker.io/eeacms/cloud9 Cloud9 v3 Dockerfile 4 [OK]
Docker.io docker.io/cloud9/shared Cloud9 Shared Space 3
Docker.io docker.io/mstev0du/cloud9-ide Cloud9 IDE SDK with Uid/gid mapping suppor ... 3 [OK]
Docker.io docker.io/cloud9/ws-cpp C + + Workspace type 2
Docker.io docker.io/cloud9/ws-default Default Workspace 2
Docker.io docker.io/rawmind/cloud9-sdk Cloud9 SDK Docker image. 2 [OK]
Docker.io docker.io/cloud9/ws-php php Workspace Type 1
Docker.io Docker.io/cloud9/ws-ruby Ruby on Rails workspace Type 1
Docker.io docker.io/egoexpress/cloud9 Cloud9 IDE (Http://c9.io) to use within an ... 1 [OK]
Docker.io docker.io/lormann/cloud9 Cloud9 v3 1
Docker.io Docker.io/cloud9/ws-cloud9-hackspace 0
Docker.io DOCKER.IO/CLOUD9/WS-CODERDOJO-NL 0
Docker.io docker.io/cloud9/ws-html5 HTML5 Workspace type 0
Docker.io Docker.io/cloud9/ws-meteor 0
Docker.io docker.io/cloud9/ws-nodejs node. js Workspace Type 0
Docker.io docker.io/cloud9/ws-python Django Workspace type 0
Docker.io Docker.io/cloud9/ws-python-plain 0
Docker.io docker.io/cloud9/ws-wordpress WordPress Workspace Type 0
Docker.io docker.io/cloverzrg/cloud9 AWS Cloud9 https://aws.amazon.com/cn/cloud9/0 [OK]
Docker.io docker.io/quimnut/cloud9ide cloud9 IDE on phusion image 0
Docker.io docker.io/tcjn/cloud9-docker Cloud9 0 [OK]
Docker.io docker.io/zuolan/cloud9-ide Cloud9-ide-v3 on Ubuntu 0
[email protected] ~]# Docker pull Docker.io/kdelfour/cloud9-docker
Using default Tag:latest
Trying to Repository Docker.io/kdelfour/cloud9-docker ...
Latest:pulling from Docker.io/kdelfour/cloud9-docker
A3ed95caeb02:pull Complete
2de59b831a23:pull Complete
A898f8c7f6ba:pull Complete
706514fbad74:pull Complete
E61e3d2ec3f0:pull Complete
9f5d8030ce13:pull Complete
19354fd2342f:pull Complete
2ae48536a0b1:pull Complete
433dc682daa8:pull Complete
A2111130f7f6:pull Complete
6caa5964565f:pull Complete
Ed51c3e69066:pull Complete
9d6c8361afb6:pull Complete
Ea0ead720ce2:pull Complete
99cd4d82407d:pull Complete
627fe943e133:pull Complete
6761a0276a15:pull Complete
5f2d63e668a7:pull Complete
digest:sha256:0e47424ea67c175e7705eb44f07f86c4b2a88788eb87b1fc1f65bc3670067716
status:downloaded newer image for Docker.io/kdelfour/cloud9-docker:latest
[email protected] ~]# Docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
Docker.io/centos latest 5182E96772BF 2 months ago (MB)
Docker.io/kdelfour/cloud9-docker latest c75f6cd12329 7 months ago 848 MB
[Email protected] ~]#
[email protected] ~]# Docker run-it-d-P 80:80 kdelfour/cloud9-docker
Warning:ipv4 forwarding is disabled. Networking won't work.
d0e62b906e410a30ba05c213c8f3fc2c472728885b82cf4df70a80a458adb84f
[email protected] ~]# Docker ps-a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
D0e62b906e41 Kdelfour/cloud9-docker "supervisord-c/E ..." Seconds ago up seconds 0.0.0.0:80->80/tcp, 3000/tcp Sharp_northcutt

Daun: You can see the page in the browser at this time, as follows:

[[email protected] ~]# Docker stop d0e62b906e41
D0e62b906e41
[Email protected] ~]#
[Email protected] ~]#
[email protected] ~]# Docker ps-a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
D0e62b906e41 Kdelfour/cloud9-docker "supervisord-c/E ..." 4 minutes ago Exited (0) 7 seconds ago Sharp_northcutt
[Email protected] ~]#
[Email protected] ~]#
[[email protected] ~]# Docker start d0e62b906e41
D0e62b906e41
[[email protected] ~]# Docker exec-it D0e62b906e41/bin/bash "Duan: Into the container inside, directory/cloud9 is, change the JS file under Plugins, refresh the page will appear effect"
[Email protected]:/cloud9# ls
LICENSE NOTICE bin configs local Package.json scripts Settings user-plugins
License-commercial-use readme.md Build Docs node_modules plugins server.js test
[Email protected]:/cloud9#

Second, Linux
Source: Https://github.com/c9/core

Linux needs to be installed Nodejs,python, etc.

--------------------------------------------
Install node. js under CentOS source
1, download the source code, you need to download the latest Nodejs version in https://nodejs.org/en/download/, this article takes v0.10.24 as an example:

cd/usr/local/src/
wget http://nodejs.org/dist/v0.10.24/node-v0.10.24.tar.gz
2. Extracting source code

Tar zxvf node-v0.10.24.tar.gz
3. Compile and install

CD node-v0.10.24
./configure--prefix=/usr/local/node/0.10.24
Make
Make install
4, configure Node_home, enter the profile edit environment variable
Vim/etc/profile
Set the NODEJS environment variable to add the following on the export PATH USER LOGNAME MAIL HOSTNAME histsize Histcontrol Line:

#set for Nodejs
Export node_home=/usr/local/node/0.10.24
Export path= $NODE _home/bin: $PATH
: Wq Save and exit, compile/etc/profile make configuration effective

Source/etc/profile
Verify that the installation configuration is successful

Node-v
Output v0.10.24 indicates a successful configuration
--------------------------------------------

Nodejs install C9 after installation is complete
The steps are as follows:
git clone https://github.com/c9/core.git c9sdk
CD C9SDK
scripts/install-sdk.sh

Run: Node server.js
Visit: http://localhost:8181/ide.html

Run: node server.js-p 8080-a:
Visit: http://127.0.0.1:8080/ide.html
-------------------------


"Linux Operations Log"

[Email protected] home]#

[[email protected] home]# git clone git://github.com/c9/core.git c9sdk
Being cloned to ' c9sdk ' ...
Remote:enumerating objects:52806, done.
Remote:total 52806 (Delta 0), reused 0 (Delta 0), pack-reused 52806
In the Receiving object: 100% (52806/52806), 35.29 MiB | 41.00 kib/s, done.
Processing Delta: 100% (32452/32452), done.

[Email protected] home]# CD C9SDK
[[email protected] c9sdk]# ls
Bin Docs NOTICE Server.js
Build LICENSE Package.json Settings
Code_of_conduct.md License-commercial-use Plugins Test
Configs Local readme.md User-plugins
CONTRIBUTING.MD Node_modules Scripts
[Email protected] c9sdk]#


[Email protected] c9sdk]#
[Email protected] c9sdk]#
[[email protected] c9sdk]# scripts/install-sdk.sh "Duan: There will be an error in this step, follow the instructions.
Which:no NPM in (/usr/lib64/qt-3.3/bin:/root/perl5/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/ Sbin:/root/bin)
From Https://github.com/c9/core
* [New branch] C9-C9/C9
* [New branch] Gh-pages-c9/gh-pages
* [New Branch] Master--C9/master
* [New branch] SMF-SDK-C9/SMF-SDK
Already up-to-date.
% total% Received% xferd Average speed Time Time current
Dload Upload Total spent
100 12157 100 12157 0 0 8363 0 0:00:01 0:00:01--:--:--8366
Error:please Install glibc-static to proceed
To does so, log into your machine and type ' yum install glibc-static '
[email protected] c9sdk]# Yum install glibc-static
Loaded plugins: Fastestmirror, LangPacks
Loading mirror speeds from cached hostfile
* base:mirrors.aliyun.com
* extras:mirrors.aliyun.com
* updates:mirrors.aliyun.com
Resolving dependencies
........................

[Email protected] Node_modules/connect
├──[email protected]
├──[email protected]
├──[email protected]
├──[email protected]
├──[email protected]
├──[email protected]
├──[email protected]
├──[email protected]
├──[email protected]
├──[email protected]
├──[email protected]
└──[email protected] ([email protected], [email protected])
--------------------------------------------------------------------
success!
Run ' node server.js-p 8080-a: ' to launch Cloud9

------------------------------------------------------------------------------------------
The success! prompt appears, the installation is successful.


Start:
[Email protected] c9sdk]# node Server.js-p 8080-a:
Starting standalone
Connect Server listening at http://127.0.0.1:8080
Cdn:version Standalone Initialized/home/c9sdk/build
Started '/home/c9sdk/configs/standalone ' with config ' standalone '!
Cloud9 is up and running

CLOUD9 3.0 SDK Installation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.