You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by sm...@apache.org on 2016/03/27 05:12:47 UTC
directory-fortress-core git commit: update to use latest release
packages
Repository: directory-fortress-core
Updated Branches:
refs/heads/master d14990b69 -> 6105e2c5b
update to use latest release packages
Project: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/commit/6105e2c5
Tree: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/tree/6105e2c5
Diff: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/diff/6105e2c5
Branch: refs/heads/master
Commit: 6105e2c5be9ed49b5952d7600c0cde123cdd4c80
Parents: d14990b
Author: Shawn McKinney <sm...@apache.org>
Authored: Sat Mar 26 22:12:39 2016 -0500
Committer: Shawn McKinney <sm...@apache.org>
Committed: Sat Mar 26 22:12:39 2016 -0500
----------------------------------------------------------------------
README-QUICKSTART-SLAPD.md | 148 +++++++++++++++++++++-------------------
1 file changed, 78 insertions(+), 70 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/directory-fortress-core/blob/6105e2c5/README-QUICKSTART-SLAPD.md
----------------------------------------------------------------------
diff --git a/README-QUICKSTART-SLAPD.md b/README-QUICKSTART-SLAPD.md
index 02ee292..3b95b8f 100644
--- a/README-QUICKSTART-SLAPD.md
+++ b/README-QUICKSTART-SLAPD.md
@@ -26,10 +26,9 @@
* SECTION 1. Prerequisites
* SECTION 2. Apache Fortress Core and OpenLDAP Setup
- * SECTION 3. Apache Fortress Realm Setup
- * SECTION 4. Apache Tomcat Setup
- * SECTION 5. Apache Fortress Rest Setup
- * SECTION 6. Apache Fortress Web Setup
+ * SECTION 3. Apache Tomcat Setup
+ * SECTION 4. Apache Fortress Rest Setup
+ * SECTION 5. Apache Fortress Web Setup
-------------------------------------------------------------------------------
## SECTION 1. Prerequisites
@@ -150,25 +149,7 @@ ________________________________________________________________________________
* SECTION 14. Instructions to performance test.
___________________________________________________________________________________
-## SECTION 3. Apache Fortress Realm Setup
-
-During this section, you will be asked to setup Apache Fortress Realm.
-
-1. Download and prepare:
-
- ```
- git clone https://git-wip-us.apache.org/repos/asf/directory-fortress-realm.git
- cd directory-fortress-realm
- ```
-
-2. Build:
-
- ```
- mvn clean install
- ```
-
-___________________________________________________________________________________
-## SECTION 4. Apache Tomcat Setup
+## SECTION 3. Apache Tomcat Setup
During this section, you will be asked to setup Apache Tomcat 8 and prepare for usage with Apache Fortress
@@ -181,11 +162,11 @@ During this section, you will be asked to setup Apache Tomcat 8 and prepare for
```
*Change the tomcat version as neeeded - v7 and beyond are ok.*
-2. Copy the fortress realm proxy jar into tomcat/lib folder:
+2. Download the fortress realm proxy jar into tomcat/lib folder:
- ```
- sudo cp ./directory-fortress-realm/proxy/target/fortress-realm-proxy-1.0-RC41-SNAPSHOT.jar /usr/local/tomcat8/lib
- ```
+ ```
+ sudo wget http://repo.maven.apache.org/maven2/org/apache/directory/fortress/fortress-realm-proxy/1.0-RC42/fortress-realm-proxy-1.0-RC42.jar -P /usr/local/tomcat8/lib
+ ```
3. Prepare tomcat fortress usage:
@@ -204,113 +185,140 @@ During this section, you will be asked to setup Apache Tomcat 8 and prepare for
5. Save and exit tomcat-users.xml file
-6. Start tomcat server:
+6. Configure Tomcat as a service (optional)
+
+ a. Edit the config file:
```
- sudo /usr/local/tomcat8/bin/startup.sh
+ vi /etc/init.d/tomcat
```
-7. Verify clean logs after startup:
+ b. Add the following:
```
- tail -f -n10000 /usr/local/tomcat8/logs/catalina.out
+ #!/bin/bash
+ # description: Tomcat Start Stop Restart
+ # processname: tomcat
+ # chkconfig: 234 20 80
+ CATALINA_HOME=/usr/local/tomcat8
+ case $1 in
+ start)
+ sh $CATALINA_HOME/bin/startup.sh
+ ;;
+ stop)
+ sh $CATALINA_HOME/bin/shutdown.sh
+ ;;
+ restart)
+ sh $CATALINA_HOME/bin/shutdown.sh
+ sh $CATALINA_HOME/bin/startup.sh
+ ;;
+ esac
+ exit 0
```
-8. Verify setup by signing onto the Tomcat Manager app with credentials userId: tcmanagergui, password: m@nager123
+ c. Add the init script to startup for run level 2, 3 and 4:
```
- http://hostname:8080/manager
+ cd /etc/init.d
+ chmod 755 tomcat
+ chkconfig --add tomcat
+ chkconfig --level 234 tomcat on
```
-___________________________________________________________________________________
-## SECTION 5. Apache Fortress Rest Setup
-
-During this section, you will be asked to setup Apache Fortress Rest Application
+7. Start tomcat server:
-1. Download and prepare the package:
+ a. If running Tomcat as a service:
```
- git clone https://git-wip-us.apache.org/repos/asf/directory-fortress-enmasse.git
- cp ./directory-fortress-core/config/fortress.properties ./directory-fortress-enmasse/src/main/resources
- cd directory-fortress-enmasse
+ service tomcat start
```
-2. Build:
+ b. Else
```
- mvn clean install
+ sudo /usr/local/tomcat8/bin/startup.sh
```
-3. Perform fortress rest test policy load:
+8. Verify clean logs after startup:
```
- mvn install -Dload.file=./src/main/resources/FortressRestServerPolicy.xml
+ tail -f -n10000 /usr/local/tomcat8/logs/catalina.out
```
-4. Deploy:
+9. Verify setup by signing onto the Tomcat Manager app with credentials userId: tcmanagergui, password: m@nager123
```
- mvn tomcat:deploy
+ http://hostname:8080/manager
```
-5. Redeploy (if need be):
+___________________________________________________________________________________
+## SECTION 4. Apache Fortress Rest Setup
- ```
- mvn tomcat:redeploy
- ```
+During this section, you will be asked to setup Apache Fortress Rest Application
-6. Smoke test:
+1. Download and prepare the package:
```
- mvn test -Dtest=EmTest
+ wget http://www.apache.org/dist/directory/fortress/dist/1.0-RC42/fortress-rest-1.0-RC42-source-release.zip
+ unzip fortress-rest-1.0-RC42-source-release.zip
+ cp ./directory-fortress-core/config/fortress.properties ./fortress-rest-1.0-RC42/src/main/resources
+ cd fortress-rest-1.0-RC42
```
-___________________________________________________________________________________
-## SECTION 6. Apache Fortress Web Setup
-During this section, you will be asked to setup Apache Fortress Web Application
+2. Build, perform fortress rest test policy load and deploy to Tomcat:
-1. Download and prepare the package:
+ ```
+ mvn clean install -Dload.file=./src/main/resources/FortressRestServerPolicy.xml tomcat:deploy
+ ```
+
+3. Redeploy (if need be):
```
- git clone https://git-wip-us.apache.org/repos/asf/directory-fortress-commander.git
- cp ./directory-fortress-core/config/fortress.properties ./directory-fortress-commander/src/main/resources
- cd directory-fortress-commander
+ mvn tomcat:redeploy
```
-2. Build:
+4. Smoke test:
```
- mvn clean install
+ mvn test -Dtest=EmTest
```
-3. Perform fortress web test policy load:
+___________________________________________________________________________________
+## SECTION 5. Apache Fortress Web Setup
+
+During this section, you will be asked to setup Apache Fortress Web Application
+
+1. Download and prepare the package:
```
- mvn install -Dload.file=./src/main/resources/FortressWebDemoUsers.xml
+ wget http://www.apache.org/dist/directory/fortress/dist/1.0-RC42/fortress-web-1.0-RC42-source-release.zip
+ unzip fortress-web-1.0-RC42-source-release.zip
+ cp ./directory-fortress-core/config/fortress.properties ./fortress-web-1.0-RC42/src/main/resources
+ cd fortress-web-1.0-RC42
```
-4. Deploy:
+2. Build, perform fortress web test policy load and deploy to Tomcat:
```
- mvn tomcat:deploy
+ mvn clean install -Dload.file=./src/main/resources/FortressWebDemoUsers.xml tomcat:deploy
```
-5. Redeploy (if need be):
+3. Redeploy (if need be):
```
mvn tomcat:redeploy
```
-6. Open browser and test (creds: test/password):
+4. Open browser and test (creds: test/password):
```
http://hostname:8080/fortress-web
```
-7. Click on the links, to pull up various views on the data stored in the directory.
+5. Click on the links, to pull up various views on the data stored in the directory.
-8. Run the selenium automated test:
+6. Run the selenium automated test:
```
mvn test -Dtest=FortressWebSeleniumITCase