-->
Docker realize online integrated development environment
Because, the school has the flow limit, 10G per month, the super flow speed limit for 50kb/s, as a normal class, this flow is certainly not enough, so I
Requires a development environment with little traffic or speed constraints.
Although the SSH connection server, under the server terminal development of almost unlimited speed, unlimited flow, but the development of vim is obviously some "not pro-people", most people are not familiar with the command line interface.
The development environment under the terminal construction is also quite troublesome, so this article will use three steps to teach you to create a beautiful interface, powerful, rookie can easily build an online integrated development environment .
Goal:
- One-click Deployment, a command to complete the online integration development environment deployment.
- Syntax hints that support all major programming languages.
- All-round development, can be developed before and after the project, support desktop, mobile and other application development.
- One-click Migration, one key from one server to another server.
- Continuous build, instant preview, team collaboration, etc.
Here, someone may have read my last article, and the recent limelight of Eclipse Che is indeed a very good tool, but today our protagonist is not it, another article about Che that I can read: developing Android apps in a browser.
Today we are going to play Cloud9 this online IDE. First you have to have a server, preferably foreign, because there is no firewall impact.
Finish the diagram first:
Cloud9-ide
First step, install Docker
Still the old rules, a word to fix:
sudo curl-ssl https://get.docker.com/| Sh
If you are a non-root user, perform this step:
sudo usermod-ag Docker Your-user
Step two, start Cloud9
Still a word:
Docker run-d-it--name=cloud9-v $ (PWD)/workspace:/workspace-p 8181:8181 zuolan/cloud9-ide--auth
user:password
Replace with your account password
Open http://yourIP:8181
the online IDE by entering your account password.
Step three, configure CLOUD9
Opening the CLOUD9 IDE for the first time may take a little longer and wait patiently.
Wait a little while
When you enter the IDE interface you will see a welcome interface where you can make some simple settings.
Welcome interface
First familiarize yourself with the interface, you can click the Settings button in the upper right corner to configure the IDE,CLOUD9 IDE is powerful, not inferior to eclipse Che, and the CLOUD9 IDE memory footprint is much smaller because the CLOUD9 IDE is based on Node.js.
Setting the interface
After browsing the settings, we started to install the development environment when we were done with our own custom configuration.
Fourth step, install development environment
Press F6 to open the IDE terminal:
Terminal interface
Follow these four commands sequentially
git clone https://github.com/izuolan/env.git
CD env
chmod +x run.sh
./run.sh
No surprises. You'll see a list of the first execution please install the underlying package and choose another action
root@d5be2656993b:/workspace# CD env/
root@d5be2656993b:/workspace/env# chmod +x run.sh
workspace/env#./run.sh
1. Base Package
2. Nodejs
3. Python
4. Golang
5. Java
6. Php+apache
7. Tomcat
8. MySQL
for the first time please install the underlying package and choose another action.
Select the development environment you want to install (enter the previous number):
The first time you perform a key installation configuration script requires that you first install the underlying package:
Basic Package one key to fix
Then, select the development environment you need, installation can be installed, do not need to do other configuration work, the development environment has been fully set up. Is it super simple?
At present, a key installation configuration has Nodejs, Python, Golang, Java, Php+apache, Tomcat, MySQL, and so on, the follow-up will gradually add other open environment of a key installation and configuration.
Thank you for reading, I hope to help you, thank you for your support for this site!