Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

Commit

Permalink
Add apim-is-as-km-with-analytics pattern config files
Browse files Browse the repository at this point in the history
  • Loading branch information
VimukthiPerera committed Oct 5, 2018
1 parent 3f03b7a commit 3dd2623
Show file tree
Hide file tree
Showing 13 changed files with 1,503 additions and 192 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ MYSQL_CONNECTOR=mysql-connector-java-5.1.*-bin.jar
JDK_ARCHIVE=jdk-8u*-linux-x64.tar.gz
WORKING_DIRECTORY=/home/vagrant
JAVA_HOME=/opt/java/
CONFIGURATIONS=${WORKING_DIRECTORY}/apim-analytics/confs
CONFIGURATIONS=${WORKING_DIRECTORY}/apim-analytics-worker/confs

# operating in non-interactive mode
export DEBIAN_FRONTEND=noninteractive
Expand All @@ -46,12 +46,12 @@ fi

#moving MySQL driver
echo "Copying the MySQL driver to the server pack..."
cp ${WORKING_DIRECTORY}/${MYSQL_CONNECTOR} ${WORKING_DIRECTORY}/${WSO2_SERVER}-${WSO2_SERVER_VERSION}/repository/components/lib/${MYSQL_CONNECTOR}
cp ${WORKING_DIRECTORY}/${MYSQL_CONNECTOR} ${WORKING_DIRECTORY}/${WSO2_SERVER}-${WSO2_SERVER_VERSION}/lib/${MYSQL_CONNECTOR}
echo "Successfully copied the MySQL driver to the server pack."

# copy files with configuration changes
echo "Copying the files with configuration changes to the server pack..."
cp -TRv ${CONFIGURATIONS}/repository/conf/ ${WORKING_DIRECTORY}/${WSO2_SERVER}-${WSO2_SERVER_VERSION}/repository/conf/
cp -TRv ${CONFIGURATIONS}/conf/ ${WORKING_DIRECTORY}/${WSO2_SERVER}-${WSO2_SERVER_VERSION}/conf/
echo "Successfully copied the files."

export JAVA_HOME
Expand All @@ -61,17 +61,15 @@ rm -rf ${CONFIGURATIONS}

# start the WSO2 product pack as a background service
echo "Starting ${WSO2_SERVER}-${WSO2_SERVER_VERSION}..."
sh ${WORKING_DIRECTORY}/${WSO2_SERVER}-${WSO2_SERVER_VERSION}/bin/wso2server.sh start
nohup ${WORKING_DIRECTORY}/${WSO2_SERVER}-${WSO2_SERVER_VERSION}/wso2/worker/bin/carbon.sh &

sleep 10

# tail the WSO2 product server startup logs until the server startup confirmation is logged
tail -f ${WORKING_DIRECTORY}/${WSO2_SERVER}-${WSO2_SERVER_VERSION}/repository/logs/wso2carbon.log | while read LOG_LINE
tail -f ${WORKING_DIRECTORY}/${WSO2_SERVER}-${WSO2_SERVER_VERSION}/wso2/worker/logs/carbon.log | while read LOG_LINE
do
# echo each log line
echo "${LOG_LINE}"
# once the log line with WSO2 Carbon server start confirmation was logged, kill the started tail process
[[ "${LOG_LINE}" == *"WSO2 Carbon started"* ]] && pkill tail
[[ "${LOG_LINE}" == *"WSO2 API Manager Analytics Server started"* ]] && pkill tail
done

echo "Management console URL: https://localhost:9444/carbon"

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@
tcp://localhost:7612/,tcp://localhost:7613/,tcp://localhost:7614/
Ex - Multiple Receiver Groups with two receivers each
{tcp://localhost:7612/,tcp://localhost:7613},{tcp://localhost:7712/,tcp://localhost:7713/} -->
<StreamProcessorServerURL>tcp://am-analytics:7612</StreamProcessorServerURL>
<StreamProcessorAuthServerURL>ssl://am-analytics:7712</StreamProcessorAuthServerURL>
<StreamProcessorServerURL>tcp://172.28.128.5:7612</StreamProcessorServerURL>
<StreamProcessorAuthServerURL>ssl://172.28.128.5:7712</StreamProcessorAuthServerURL>
<!-- Administrator username to login to the remote StreamProcessor server. -->
<StreamProcessorUsername>admin</StreamProcessorUsername>
<!-- Administrator password to login to the remote StreamProcessor server. -->
Expand All @@ -160,7 +160,7 @@
<StatsProviderImpl>org.wso2.carbon.apimgt.usage.client.impl.APIUsageStatisticsRestClientImpl</StatsProviderImpl>

<!-- StreamProcessor REST API configuration -->
<StreamProcessorRestApiURL>https://am-analytics:7444</StreamProcessorRestApiURL>
<StreamProcessorRestApiURL>https://172.28.128.5:7444</StreamProcessorRestApiURL>
<StreamProcessorRestApiUsername>admin</StreamProcessorRestApiUsername>
<StreamProcessorRestApiPassword>admin</StreamProcessorRestApiPassword>

Expand Down Expand Up @@ -646,16 +646,3 @@
</SwaggerCodegen>

</APIManager>
© 2018 GitHub, Inc.
Terms
Privacy
Security
Status
Help
Contact GitHub
Pricing
API
Training
Blog
About
Press h to open a hovercard with more details.
Loading

0 comments on commit 3dd2623

Please sign in to comment.