Skip to content

Commit c310959

Browse files
authored
Merge pull request #229 from koding/koding
Add koding example for DC/OS 1.10
2 parents b04996d + 0a43c04 commit c310959

File tree

4 files changed

+77
-1
lines changed

4 files changed

+77
-1
lines changed

koding/1.10/README.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# How to use Koding on DC/OS
2+
3+
[Koding](https://www.koding.com/) is cloud development platform. Through the use of Stacks, you can define server environments which include all of the necessary software for you to develop your code. You can then deploy these stacks to your local Mesosphere DC/OS instance or to any of our supported cloud providers.
4+
5+
- Estimated time for completion: 10 minutes
6+
- Target audience: Development teams
7+
- Scope: Learn how to use Koding on DC/OS.
8+
9+
10+
**Table of Contents**:
11+
12+
- [Prerequisites](#prerequisites)
13+
- [Install Marathon-LB](#install-marathon-lb)
14+
- [Install Koding](#install-koding)
15+
- [Access Koding](#access-koding)
16+
- [Use Koding in production](#use-koding-in-production)
17+
18+
## Prerequisites
19+
20+
- A running DC/OS 1.10 cluster with at least 1 [private
21+
agent](https://dcos.io/docs/1.10/overview/concepts/#public-agent-node)
22+
node with at least 2 CPUs and 8 GB of RAM available.
23+
- [DC/OS CLI](https://dcos.io/docs/1.10/cli/install/) installed.
24+
25+
## Install Marathon-LB
26+
27+
To make Koding accessible from the public Internet, we will use [Marathon-LB](https://github.com/mesosphere/marathon-lb), a HA-proxy-based load balancer for DC/OS. To install Marathon-LB from the DC/OS CLI, do:
28+
29+
```bash
30+
$ dcos package install marathon-lb
31+
We recommend at least 2 CPUs and 1GiB of RAM for each Marathon-LB instance.
32+
Continue installing? [yes/no] yes
33+
Installing Marathon app for package [marathon-lb] version [1.4.2]
34+
Marathon-lb DC/OS Service has been successfully installed!
35+
See https://github.com/mesosphere/marathon-lb for documentation.
36+
```
37+
Note that for advanced Marathon-LB configurations such as enabling HTTPS see the [Marathon-LB Quick Start](https://dcos.io/docs/1.10/usage/service-discovery/marathon-lb/quickstart/) guide.
38+
39+
After installation, you will also need to modify the Marathon-LB
40+
installation to remove the haproxy-map property. Go to the Marathon-LB
41+
service and then click edit. Switch to JSON mode. Under "args", remove
42+
the line "--haproxy-map". Click "Review & Run" and then run the
43+
service.
44+
45+
## Install Koding
46+
47+
To install Koding, login to DC/OS and go to the universe tab. Select
48+
Koding and and then click on configure button. You will be presented
49+
with a list of options.
50+
51+
Your first option will be what to name the Koding service. We suggest using the default of "koding".
52+
53+
You will then be able to allocate CPUs and memory in "koding" section.
54+
55+
You need to enter a hostname in the "networking" section. This
56+
hostname is used within the Koding application to define where Koding
57+
lives. Individual teams will live at subdomains of this hostname. It
58+
mostly exists to be displayed inside the application, but should be
59+
where you intend Koding to be accessed from. You may want to make a
60+
CNAME record of this host and a wildcard record for any subdomains to
61+
point to the FQDN you set up in the next step.
62+
63+
Lastly, to make Koding accessible to the world, we need to use the fully qualified domain name of the public agent node running marathon-lb or the load balancer pointing to your public agent nodes (for instance ```DCOS-PublicSlaveLo-1CHPNZSAH97SJ-604928754.eu-west-1.elb.amazonaws.com```).
64+
65+
After all options are configured, press Review and Deploy and then Deploy to set up Koding. Please note that it may take up to 10 minutes for the Koding service to become available.
66+
67+
Last but not least, to check if all required services (Marathon-LB and Koding itself) are running, use the DC/OS UI where in the `Services` tab you should see both Marathon-LB and Koding listed with their statuses as "Running".
68+
69+
![Marathon deployment post-build configuration](img/kodingservices.png)
70+
71+
## Access Koding
72+
73+
Once you've installed the necessary services as outlined above, navigate to the domain name that you set as your virtual host in your browser. You should now see the Koding login page.
74+
75+
![Koding Login Page](img/kodinglogin.png)

koding/1.10/img/kodinglogin.png

49.8 KB
Loading

koding/1.10/img/kodingservices.png

69.4 KB
Loading

koding/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
Select your DC/OS version:
22

3-
[1.8](1.8)
3+
[1.8](1.8) (deprecated)
4+
[1.10](1.10)

0 commit comments

Comments
 (0)