update
This commit is contained in:
parent
15319e86eb
commit
6eb514b735
8 changed files with 33 additions and 21 deletions
2
cli.html
2
cli.html
|
|
@ -4,7 +4,7 @@
|
|||
<meta charset="utf-8">
|
||||
<title>Fig CLI reference</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href='http://fonts.googleapis.com/css?family=Lilita+One|Lato:300,400' rel='stylesheet' type='text/css'>
|
||||
<link href='http://fonts.googleapis.com/css?family=Lilita+One|Lato:300,400,700' rel='stylesheet' type='text/css'>
|
||||
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="css/fig.css">
|
||||
</head>
|
||||
|
|
|
|||
19
css/fig.css
19
css/fig.css
|
|
@ -158,10 +158,19 @@ a.btn:hover {
|
|||
}
|
||||
|
||||
.strapline {
|
||||
font-size: 40px;
|
||||
display: block;
|
||||
line-height: 1.2;
|
||||
margin-top: 25px;
|
||||
margin-bottom: 35px;
|
||||
font-size: 30px;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.strapline {
|
||||
font-size: 40px;
|
||||
display: block;
|
||||
line-height: 1.2;
|
||||
margin-top: 25px;
|
||||
margin-bottom: 35px;
|
||||
}
|
||||
}
|
||||
|
||||
strong {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
<meta charset="utf-8">
|
||||
<title>Getting started with Fig and Django</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href='http://fonts.googleapis.com/css?family=Lilita+One|Lato:300,400' rel='stylesheet' type='text/css'>
|
||||
<link href='http://fonts.googleapis.com/css?family=Lilita+One|Lato:300,400,700' rel='stylesheet' type='text/css'>
|
||||
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="css/fig.css">
|
||||
</head>
|
||||
|
|
|
|||
14
env.html
14
env.html
|
|
@ -4,7 +4,7 @@
|
|||
<meta charset="utf-8">
|
||||
<title>Fig environment variables reference</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href='http://fonts.googleapis.com/css?family=Lilita+One|Lato:300,400' rel='stylesheet' type='text/css'>
|
||||
<link href='http://fonts.googleapis.com/css?family=Lilita+One|Lato:300,400,700' rel='stylesheet' type='text/css'>
|
||||
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="css/fig.css">
|
||||
</head>
|
||||
|
|
@ -20,22 +20,22 @@
|
|||
<p>Fig uses <a href="http://docs.docker.io/en/latest/use/port_redirection/#linking-a-container">Docker links</a> to expose services' containers to one another. Each linked container injects a set of environment variables, each of which begins with the uppercase name of the container.</p>
|
||||
|
||||
<p><b><i>name</i>_PORT</b><br>
|
||||
Full URL, e.g. <code>MYAPP_DB_1_PORT=tcp://172.17.0.5:5432</code></p>
|
||||
Full URL, e.g. <code>DB_1_PORT=tcp://172.17.0.5:5432</code></p>
|
||||
|
||||
<p><b><i>name</i>_PORT_<i>num</i>_<i>protocol</i></b><br>
|
||||
Full URL, e.g. <code>MYAPP_DB_1_PORT_5432_TCP=tcp://172.17.0.5:5432</code></p>
|
||||
Full URL, e.g. <code>DB_1_PORT_5432_TCP=tcp://172.17.0.5:5432</code></p>
|
||||
|
||||
<p><b><i>name</i>_PORT_<i>num</i>_<i>protocol</i>_ADDR</b><br>
|
||||
Container's IP address, e.g. <code>MYAPP_DB_1_PORT_5432_TCP_ADDR=172.17.0.5</code></p>
|
||||
Container's IP address, e.g. <code>DB_1_PORT_5432_TCP_ADDR=172.17.0.5</code></p>
|
||||
|
||||
<p><b><i>name</i>_PORT_<i>num</i>_<i>protocol</i>_PORT</b><br>
|
||||
Exposed port number, e.g. <code>MYAPP_DB_1_PORT_5432_TCP_PORT=5432</code></p>
|
||||
Exposed port number, e.g. <code>DB_1_PORT_5432_TCP_PORT=5432</code></p>
|
||||
|
||||
<p><b><i>name</i>_PORT_<i>num</i>_<i>protocol</i>_PROTO</b><br>
|
||||
Protocol (tcp or udp), e.g. <code>MYAPP_DB_1_PORT_5432_TCP_PROTO=tcp</code></p>
|
||||
Protocol (tcp or udp), e.g. <code>DB_1_PORT_5432_TCP_PROTO=tcp</code></p>
|
||||
|
||||
<p><b><i>name</i>_NAME</b><br>
|
||||
Fully qualified container name, e.g. <code>MYAPP_DB_1_NAME=/myapp_web_1/myapp_db_1</code></p>
|
||||
Fully qualified container name, e.g. <code>DB_1_NAME=/myapp_web_1/myapp_db_1</code></p>
|
||||
</div>
|
||||
|
||||
<div class="sidebar">
|
||||
|
|
|
|||
10
index.html
10
index.html
|
|
@ -2,9 +2,9 @@
|
|||
<html lang="en-gb">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Fig | Punctual, lightweight development environments using Docker</title>
|
||||
<title>Fig | Fast, isolated development environments using Docker</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href='http://fonts.googleapis.com/css?family=Lilita+One|Lato:300,400' rel='stylesheet' type='text/css'>
|
||||
<link href='http://fonts.googleapis.com/css?family=Lilita+One|Lato:300,400,700' rel='stylesheet' type='text/css'>
|
||||
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="css/fig.css">
|
||||
</head>
|
||||
|
|
@ -17,14 +17,14 @@
|
|||
|
||||
<div class="content"><p><strong class="strapline">Fast, isolated development environments using Docker.</strong></p>
|
||||
|
||||
<p>Define your app's environment with Docker so it can be reproduced anywhere.</p>
|
||||
<p>Define your app's environment with Docker so it can be reproduced anywhere:</p>
|
||||
<div class="highlight"><pre><code class="text language-text" data-lang="text">FROM orchardup/python:2.7
|
||||
ADD . /code
|
||||
RUN pip install -r requirements.txt
|
||||
WORKDIR /code
|
||||
CMD python app.py
|
||||
</code></pre></div>
|
||||
<p>Define your app's services so they can be run alongside in an isolated environment. (No more installing Postgres on your laptop!)</p>
|
||||
<p>Define your app's services so they can be run alongside in an isolated environment:</p>
|
||||
<div class="highlight"><pre><code class="yaml language-yaml" data-lang="yaml"><span class="l-Scalar-Plain">web</span><span class="p-Indicator">:</span>
|
||||
<span class="l-Scalar-Plain">build</span><span class="p-Indicator">:</span> <span class="l-Scalar-Plain">.</span>
|
||||
<span class="l-Scalar-Plain">links</span><span class="p-Indicator">:</span>
|
||||
|
|
@ -34,6 +34,8 @@ CMD python app.py
|
|||
<span class="l-Scalar-Plain">db</span><span class="p-Indicator">:</span>
|
||||
<span class="l-Scalar-Plain">image</span><span class="p-Indicator">:</span> <span class="l-Scalar-Plain">orchardup/postgresql</span>
|
||||
</code></pre></div>
|
||||
<p>(No more installing Postgres on your laptop!)</p>
|
||||
|
||||
<p>Then type <code>fig up</code>, and Fig will start and run your entire app:</p>
|
||||
|
||||
<p><img src="https://orchardup.com/static/images/fig-example-large.f96065fc9e22.gif" alt="example fig run"></p>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
<meta charset="utf-8">
|
||||
<title>Installing Fig</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href='http://fonts.googleapis.com/css?family=Lilita+One|Lato:300,400' rel='stylesheet' type='text/css'>
|
||||
<link href='http://fonts.googleapis.com/css?family=Lilita+One|Lato:300,400,700' rel='stylesheet' type='text/css'>
|
||||
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="css/fig.css">
|
||||
</head>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
<meta charset="utf-8">
|
||||
<title>Getting started with Fig and Rails</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href='http://fonts.googleapis.com/css?family=Lilita+One|Lato:300,400' rel='stylesheet' type='text/css'>
|
||||
<link href='http://fonts.googleapis.com/css?family=Lilita+One|Lato:300,400,700' rel='stylesheet' type='text/css'>
|
||||
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="css/fig.css">
|
||||
</head>
|
||||
|
|
@ -21,6 +21,7 @@
|
|||
|
||||
<p>Let's set up the three files that'll get us started. First, our app is going to be running inside a Docker container which contains all of its dependencies. We can define what goes inside that Docker container using a file called <code>Dockerfile</code>. It'll contain this to start with:</p>
|
||||
<div class="highlight"><pre><code class="text language-text" data-lang="text">FROM binaryphile/ruby:2.0.0-p247
|
||||
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev
|
||||
RUN mkdir /myapp
|
||||
WORKDIR /myapp
|
||||
ADD Gemfile /myapp/Gemfile
|
||||
|
|
|
|||
2
yml.html
2
yml.html
|
|
@ -4,7 +4,7 @@
|
|||
<meta charset="utf-8">
|
||||
<title>fig.yml reference</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href='http://fonts.googleapis.com/css?family=Lilita+One|Lato:300,400' rel='stylesheet' type='text/css'>
|
||||
<link href='http://fonts.googleapis.com/css?family=Lilita+One|Lato:300,400,700' rel='stylesheet' type='text/css'>
|
||||
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="css/fig.css">
|
||||
</head>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue