You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by de...@apache.org on 2017/05/24 22:28:08 UTC

[6/6] incubator-trafficcontrol git commit: update install instructions

update install instructions


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/48ffbc13
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/48ffbc13
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/48ffbc13

Branch: refs/heads/master
Commit: 48ffbc134f1c4c8b2549b3f0ad968ab65c08a029
Parents: 5cca48d
Author: Dan Kirkwood <da...@gmail.com>
Authored: Wed May 24 15:14:50 2017 +0000
Committer: Dewayne Richardson <de...@apache.org>
Committed: Wed May 24 16:27:55 2017 -0600

----------------------------------------------------------------------
 traffic_ops/INSTALL.md | 62 ++-------------------------------------------
 1 file changed, 2 insertions(+), 60 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/48ffbc13/traffic_ops/INSTALL.md
----------------------------------------------------------------------
diff --git a/traffic_ops/INSTALL.md b/traffic_ops/INSTALL.md
index 91f5921..5f51acc 100644
--- a/traffic_ops/INSTALL.md
+++ b/traffic_ops/INSTALL.md
@@ -3,20 +3,14 @@
 ## Disable selinux:
 ### change `/etc/selinux/config` to `SELINUX=disabled`
 
-## Install Postgreql 9.6 client and libraries
+## Add access to Postgreql 9.6 yum repository 
 
 Instructions are here: https://yum.postgresql.org/
 
-- grab the link for CentOS 7 and install:
+- From this page,  copy the link for CentOS 7 and install:
 
     $ sudo yum install https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-xxxx.noarch.rpm
     
-  NOTE: get a valid link from https://yum.postgresql.org/ with the correct version number.
-  
-- install `postgresql96` (for psql commands) and `postgresql96-devel` (for includes/libraries needed to install `DBD::Pg` perl library)
-
-    $ sudo yum install postgresql96 postgresql96-devel
-
 ## Install Postgres 9.6 server (in a container or on the host)
 
 ### on the host:
@@ -39,61 +33,11 @@ Install `docker` and `docker-compose` using instructions here:
     
     https://docs.docker.com/compose/install/
 
-Add yourself to `docker` group
-
-    $ sudo usermod -G docker $USER
-
-Remember to logout and login again..   You should see `docker` in your list of groups:
-
-    $ id
-    uid=9876(myuser) gid=9876(myuser) groups=9876(myuser),990(docker) ...
-
-Edit `mysql-to-postgres.env` to suit your needs.
-* modify `POSTGRES_*` vars to apply to new postgres container that will house your database, e.g.
-  * POSTGRES_USER=postgres
-  * POSTGRES_PASSWORD=itSas3cre4
-  
-If migrating from an existing pre-2.0 traffic_ops server (mysql):
-* `TO_*` vars for admin access to existing mysql-based `traffic_ops` (to get a db dump), e.g.
-  * TO_SERVER=https://trafficops.example.com
-  * TO_USER=dennisr
-  
-* `MYSQL_*` vars to apply to temporary mysql container -- really no need to change..
-
-Start a docker container to run postgres
-
-    $ cd incubator-trafficcontrol/traffic_ops/app/db/pg-migration
-    $ ./start_postgres.sh
-
-Run migration from existing mysql-based `traffic_ops`
-
-    $ ./migrate.sh
 
 ## Install `traffic_ops`
 
     $ sudo yum install traffic_ops
 
-## Install `go` and `git` (required for `goose` and some `Perl` modules)
-
-    $ sudo yum install git go
-    
-## Install Perl modules
-
-    $ sudo cpanm Carton
-
-IMPORTANT!!: We're using a later version of Postgresql,  so it's not installed in the default place.
-We need to tell carton where it is so the `DBD::Pg` module is installed correctly.
-
-    $ sudo su -
-    # cd /opt/traffic_ops/app
-    # POSTGRES_HOME=/usr/pgsql-9.6 /usr/local/bin/carton
-
-
-## Install goose
-
-    $ sudo GOPATH=/usr/local go get bitbucket.org/liamstask/goose/cmd/goose
-
-
 ## Install any extensions needed
 
    - install in /opt/traffic_ops_extensions
@@ -104,6 +48,4 @@ We need to tell carton where it is so the `DBD::Pg` module is installed correctl
 
 ## as the root user run postinstall
     $ sudo su -
-    # export POSTGRES_HOME=/usr/pgsql-9.6
-    # export GOPATH=/usr/local
     # /opt/traffic_ops/install/bin/postinstall