Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yusukeiwaki/cloud-pine
https://github.com/yusukeiwaki/cloud-pine
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/yusukeiwaki/cloud-pine
- Owner: YusukeIwaki
- Created: 2019-07-10T16:51:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-07T13:41:42.000Z (over 5 years ago)
- Last Synced: 2024-10-18T08:33:10.470Z (3 months ago)
- Language: HTML
- Size: 26.4 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cloud-pine: The alternative for Cloud9 PRO (just for me!)
http://yusukeiwaki.hatenablog.com/entry/2019/07/13/my-cloud9-alternative
![cloud-pine](https://user-images.githubusercontent.com/11763113/64035114-f0f4a100-cb8a-11e9-8f94-6409a0c5e7fb.gif)
# Setup
## マシンを2,3台用意
dockerを入れる。
```
curl https://raw.githubusercontent.com/YusukeIwaki/cloud-pine/master/install-docker-ce.sh | bash
```docker swarmでクラスタを組む。
## network作成
```
docker network create --driver overlay --internal cloud-pine-master
docker network create --driver overlay --internal cloud-pine-admin
```## リバースプロキシのデプロイ
```
cd reverse_proxy
docker stack deploy --compose-file docker-compose.yml reverse_proxy
```## 管理API(手抜き)のデプロイ
```
cd admin
docker stack deploy --compose-file docker-compose.yml admin
```## ワークスペースの追加
```
cd workspace
docker stack deploy --compose-file docker-compose.yml playground1
```→ playground1.ide.c9work.net でCloud9ワークスペースが使用可能になる
→ ワークスペースの8080番ポートで公開されたものが playground1.preview.c9work.netで見れる## ワークスペースの削除
```
docker stack rm playground2
DOCKER_HOST=ssh://c9work-slave1 docker volume rm playground2_workspace-data # docker service ps でノードを予め特定しておく必要あり。
```