Update docs from commit eb7fd21bfdd7b0997ccbc46610ab9aa549c7c5cd
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol-website/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol-website/commit/2cf46c92 Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol-website/tree/2cf46c92 Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol-website/diff/2cf46c92 Branch: refs/heads/asf-site Commit: 2cf46c92f57dba3792a1e62552b6a32e9b4eba66 Parents: 6a3bfec Author: jenkins <bui...@apache.org> Authored: Sat Feb 3 00:02:42 2018 +0000 Committer: jenkins <bui...@apache.org> Committed: Sat Feb 3 00:02:42 2018 +0000 ---------------------------------------------------------------------- .../_sources/development/traffic_ops.rst.txt | 29 +++------------ docs/master/development/traffic_ops.html | 37 ++++---------------- docs/master/searchindex.js | 2 +- 3 files changed, 13 insertions(+), 55 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol-website/blob/2cf46c92/docs/master/_sources/development/traffic_ops.rst.txt ---------------------------------------------------------------------- diff --git a/docs/master/_sources/development/traffic_ops.rst.txt b/docs/master/_sources/development/traffic_ops.rst.txt index 107ae90..03e2f91 100644 --- a/docs/master/_sources/development/traffic_ops.rst.txt +++ b/docs/master/_sources/development/traffic_ops.rst.txt @@ -18,7 +18,7 @@ Traffic Ops Introduction ============ -Traffic Ops uses a MySql or Postgres database to store the configuration information, and the `Mojolicious framework <http://mojolicio.us/>`_ to generate the user interface and REST APIs. +Traffic Ops uses a Postgres database to store the configuration information, and the `Mojolicious framework <http://mojolicio.us/>`_ to generate the user interface and REST APIs. Software Requirements ===================== @@ -29,16 +29,15 @@ To work on Traffic Ops you need a \*nix (MacOS and Linux are most commonly used) * cpan JSON * cpan JSON::PP -* `Go 1.4 <http://golang.org/doc/install>`_ +* `Go 1.8.3 <http://golang.org/doc/install>`_ * Perl 5.10.1 * Git -* MySQL 5.1.52 +* Postgres 9.6.6 * `Goose <https://bitbucket.org/liamstask/goose/>`_ Addionally, the installation of the following RPMs (or equivalent) is required: * All RPMs listed in :ref:`rl-ps` -* mysql-test Traffic Ops Project Tree Overview ======================================= @@ -176,27 +175,9 @@ To install the Traffic Ops Developer environment: $ cd traffic_ops/app $ carton -3. Set up a user in MySQL. +3. Set up a role (user) in Postgres - Example: :: - - master $ mysql - Welcome to the MySQL monitor. Commands end with ; or \g. - Your MySQL connection id is 305 - Server version: 5.6.19 Homebrew - - Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved. - - Oracle is a registered trademark of Oracle Corporation and/or its - affiliates. Other names may be trademarks of their respective - owners. - - Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. - - mysql> create user 'to_user'@'localhost'; - mysql> grant all on to_development.* to 'to_user'@'localhost' identified by 'twelve'; - mysql> grant all on to_test.* to 'to_user'@'localhost' identified by 'twelve'; - mysql> grant all on to_integration.* to 'to_user'@'localhost' identified by 'twelve'; + See Postgres instructions on initdb https://wiki.postgresql.org/wiki/First_steps 4. Enter ``db/admin.pl --env=<enviroment name> setup`` to set up the traffic_ops database(s). http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol-website/blob/2cf46c92/docs/master/development/traffic_ops.html ---------------------------------------------------------------------- diff --git a/docs/master/development/traffic_ops.html b/docs/master/development/traffic_ops.html index 24a23f2..dc10ef7 100644 --- a/docs/master/development/traffic_ops.html +++ b/docs/master/development/traffic_ops.html @@ -198,7 +198,7 @@ <h1>Traffic Ops<a class="headerlink" href="#traffic-ops" title="Permalink to this headline">¶</a></h1> <div class="section" id="introduction"> <h2>Introduction<a class="headerlink" href="#introduction" title="Permalink to this headline">¶</a></h2> -<p>Traffic Ops uses a MySql or Postgres database to store the configuration information, and the <a class="reference external" href="http://mojolicio.us/">Mojolicious framework</a> to generate the user interface and REST APIs.</p> +<p>Traffic Ops uses a Postgres database to store the configuration information, and the <a class="reference external" href="http://mojolicio.us/">Mojolicious framework</a> to generate the user interface and REST APIs.</p> </div> <div class="section" id="software-requirements"> <h2>Software Requirements<a class="headerlink" href="#software-requirements" title="Permalink to this headline">¶</a></h2> @@ -209,16 +209,15 @@ <li>cpan JSON::PP</li> </ul> </li> -<li><a class="reference external" href="http://golang.org/doc/install">Go 1.4</a></li> +<li><a class="reference external" href="http://golang.org/doc/install">Go 1.8.3</a></li> <li>Perl 5.10.1</li> <li>Git</li> -<li>MySQL 5.1.52</li> +<li>Postgres 9.6.6</li> <li><a class="reference external" href="https://bitbucket.org/liamstask/goose/">Goose</a></li> </ul> <p>Addionally, the installation of the following RPMs (or equivalent) is required:</p> <ul class="simple"> <li>All RPMs listed in <a class="reference internal" href="../admin/traffic_ops/migration_from_10_to_20.html#rl-ps"><span class="std std-ref">Traffic Ops - Migrating from 1.x to 2.x</span></a></li> -<li>mysql-test</li> </ul> </div> <div class="section" id="traffic-ops-project-tree-overview"> @@ -370,32 +369,10 @@ $ carton </pre></div> </div> </div></blockquote> -<ol class="arabic simple" start="3"> -<li>Set up a user in MySQL.</li> -</ol> -<blockquote> -<div><p>Example:</p> -<div class="highlight-default"><div class="highlight"><pre>master $ mysql -Welcome to the MySQL monitor. Commands end with ; or \g. -Your MySQL connection id is 305 -Server version: 5.6.19 Homebrew - -Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved. - -Oracle is a registered trademark of Oracle Corporation and/or its -affiliates. Other names may be trademarks of their respective -owners. - -Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. - -mysql> create user 'to_user'@'localhost'; -mysql> grant all on to_development.* to 'to_user'@'localhost' identified by 'twelve'; -mysql> grant all on to_test.* to 'to_user'@'localhost' identified by 'twelve'; -mysql> grant all on to_integration.* to 'to_user'@'localhost' identified by 'twelve'; -</pre></div> -</div> -</div></blockquote> -<ol class="arabic" start="4"> +<ol class="arabic" start="3"> +<li><p class="first">Set up a role (user) in Postgres</p> +<p>See Postgres instructions on initdb <a class="reference external" href="https://wiki.postgresql.org/wiki/First_steps">https://wiki.postgresql.org/wiki/First_steps</a></p> +</li> <li><p class="first">Enter <code class="docutils literal"><span class="pre">db/admin.pl</span> <span class="pre">--env=<enviroment</span> <span class="pre">name></span> <span class="pre">setup</span></code> to set up the traffic_ops database(s).</p> <ul class="simple"> <li>Unit test database: <code class="docutils literal"><span class="pre">$</span> <span class="pre">db/admin.pl</span> <span class="pre">--env=test</span> <span class="pre">setup</span></code></li>