Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
apollo
Commits
6a90ad05
Commit
6a90ad05
authored
Aug 14, 2017
by
nobodyiam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add build.bat and add notice on meta servers
parent
f6d4da92
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
6 deletions
+46
-6
build.bat
scripts/build.bat
+42
-0
build.sh
scripts/build.sh
+4
-6
No files found.
scripts/build.bat
0 → 100644
View file @
6a90ad05
@echo off
rem apollo config db info
set apollo_config_db_url="jdbc:mysql://localhost:3306/ApolloConfigDB?characterEncoding=utf8"
set apollo_config_db_username="root"
set apollo_config_db_password=""
rem apollo portal db info
set apollo_portal_db_url="jdbc:mysql://localhost:3306/ApolloPortalDB?characterEncoding=utf8"
set apollo_portal_db_username="root"
set apollo_portal_db_password=""
rem meta server url, different environments should have different meta server addresses
set dev_meta="http://localhost:8080"
set fat_meta="http://someIp:8080"
set uat_meta="http://anotherIp:8080"
set pro_meta="http://yetAnotherIp:8080"
set META_SERVERS_OPTS=-Ddev_meta=%dev_meta% -Dfat_meta=%fat_meta% -Duat_meta=%uat_meta% -Dpro_meta=%pro_meta%
rem =============== Please do not modify the following content ===============
cd ..
rem package config-service and admin-service
echo "==== starting to build config-service and admin-service ===="
call mvn clean package -DskipTests -pl apollo-configservice,apollo-adminservice -am -Dapollo_profile=github -Dspring_datasource_url=%apollo_config_db_url% -Dspring_datasource_username=%apollo_config_db_username% -Dspring_datasource_password=%apollo_config_db_password%
echo "==== building config-service and admin-service finished ===="
echo "==== starting to build portal ===="
call mvn clean package -DskipTests -pl apollo-portal -am -Dapollo_profile=github -Dspring_datasource_url=%apollo_portal_db_url% -Dspring_datasource_username=%apollo_portal_db_username% -Dspring_datasource_password=%apollo_portal_db_password% %META_SERVERS_OPTS%
echo "==== building portal finished ===="
echo "==== starting to build client ===="
call mvn clean install -DskipTests -pl apollo-client -am %META_SERVERS_OPTS%
echo "==== building client finished ===="
scripts/build.sh
View file @
6a90ad05
...
@@ -10,11 +10,11 @@ apollo_portal_db_url=jdbc:mysql://localhost:3306/ApolloPortalDB?characterEncodin
...
@@ -10,11 +10,11 @@ apollo_portal_db_url=jdbc:mysql://localhost:3306/ApolloPortalDB?characterEncodin
apollo_portal_db_username
=
root
apollo_portal_db_username
=
root
apollo_portal_db_password
=
apollo_portal_db_password
=
# meta server url
# meta server url
, different environments should have different meta server addresses
dev_meta
=
http://localhost:8080
dev_meta
=
http://localhost:8080
fat_meta
=
http://
localhost
:8080
fat_meta
=
http://
someIp
:8080
uat_meta
=
http://
localhost
:8080
uat_meta
=
http://
anotherIp
:8080
pro_meta
=
http://
localhost
:8080
pro_meta
=
http://
yetAnotherIp
:8080
META_SERVERS_OPTS
=
"-Ddev_meta=
$dev_meta
-Dfat_meta=
$fat_meta
-Duat_meta=
$uat_meta
-Dpro_meta=
$pro_meta
"
META_SERVERS_OPTS
=
"-Ddev_meta=
$dev_meta
-Dfat_meta=
$fat_meta
-Duat_meta=
$uat_meta
-Dpro_meta=
$pro_meta
"
...
@@ -40,5 +40,3 @@ mvn clean install -DskipTests -pl apollo-client -am $META_SERVERS_OPTS
...
@@ -40,5 +40,3 @@ mvn clean install -DskipTests -pl apollo-client -am $META_SERVERS_OPTS
echo
"==== building client finished ===="
echo
"==== building client finished ===="
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment