Skip to content

Commit

Permalink
test apollo 04
Browse files Browse the repository at this point in the history
  • Loading branch information
HaiqiQin committed Aug 27, 2023
1 parent 17713aa commit 5949221
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions shenyu-e2e/script/storage_init_mysql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,17 @@
# limitations under the License.

mkdir -p /tmp/shenyu-e2e/mysql
mkdir -p /tmp/shenyu-e2e/apollo

wget -O /tmp/shenyu-e2e/mysql/mysql-connector.jar \
https://repo1.maven.org/maven2/mysql/mysql-connector-java/8.0.29/mysql-connector-java-8.0.29.jar || \
wget -O /tmp/shenyu-e2e/mysql/mysql-connector.jar \
https://repo1.maven.org/maven2/mysql/mysql-connector-java/8.0.29/mysql-connector-java-8.0.29.jar

cp db/init/mysql/schema.sql /tmp/shenyu-e2e/mysql/schema.sql
cp db/init/apollo/apolloconfigdb.sql /tmp/shenyu-e2e/apollo/apolloconfigdb.sql
cp db/init/apollo/apolloportaldb.sql /tmp/shenyu-e2e/apollo/apolloportaldb.sql

echo "GRANT ALL PRIVILEGES ON shenyu.* TO 'shenyue2e'@'%';" >> /tmp/shenyu-e2e/mysql/schema.sql
echo "GRANT ALL PRIVILEGES ON shenyu.* TO 'shenyue2e'@'%';" >> /tmp/shenyu-e2e/apollo/apolloconfigdb.sql
echo "GRANT ALL PRIVILEGES ON shenyu.* TO 'shenyue2e'@'%';" >> /tmp/shenyu-e2e/apollo/apolloportaldb.sql
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ services:
timeout: 20s
retries: 10
volumes:
- /tmp/shenyu-e2e/mysql/apolloconfigdb.sql:/docker-entrypoint-initdb.d/apolloconfigdb.sql
- /tmp/shenyu-e2e/mysql/apolloportaldb.sql:/docker-entrypoint-initdb.d/apolloportaldb.sql
- /tmp/shenyu-e2e/apollo/apolloconfigdb.sql:/docker-entrypoint-initdb.d/apolloconfigdb.sql
- /tmp/shenyu-e2e/apollo/apolloportaldb.sql:/docker-entrypoint-initdb.d/apolloportaldb.sql
- /tmp/shenyu-e2e/mysql/schema.sql:/docker-entrypoint-initdb.d/schema.sql

apollo-configservice:
Expand Down

0 comments on commit 5949221

Please sign in to comment.