当前位置: 首页 > 工具软件 > dev-practice > 使用案例 >

ShellPays - Barcodepay Intergration Platform - Practice on Aliyu ECS+RDS

子车雅珺
2023-12-01

New Docker Images Build Log - at Thu Mar 10 09:48:13

Java Server JRE @ 8u74

Tag: aves/java:8u74
From: https://hub.docker.com/_/debian/ debian:jessie
HashID: 5c4bbd6352c7

docker pull buxybox
docker pull debian:jessie

Maven Repository Volume

Tag: aves/volume/mvn:latest
From: busybox:latest
HashID: 303a8a1841db
Create the global maven repository volume

docker create --name gv_mvn -v /Users/steven/Workshop/dockerwork/workshop/mvn:/var/mvn aves/volume/mvn:latest

Filestore Data Volume

Tag: aves/volume/filestore:latest
From: busybox:latest
HashID: 9a0405acfcdc

MongoDB Data Volume

Tag: aves/volume/mongo:latest
From: busybox:latest
HashID: d7e38588e3bc

MySQL Data Volume

Tag: aves/volume/mysql:latest
From: busybox:latest
HashID: d33749d54ba7

Redis Data Volume

Tag: aves/volume/redis:latest
From: busybox:latest
HashID: dd0a1a6fbfdb

Karaf 4 @ 4.0.4

Tag: aves/karaf:v4
From: aves/java:8u74
HashID: b05aee81f42d
Create the Karaf Container

docker run -d -P --name karaf4_inst --volumes-from gv_mvn aves/karaf:v4
docker exec -it karaf4_inst client

feature:repo-add mvn:org.apache.cxf.karaf/apache-cxf/3.1.4/xml/features
feature:repo-add mvn:org.apache.camel.karaf/apache-camel/2.16.1/xml/features
feature:repo-add mvn:org.aves.kestrel/kestrel-provisioning/4.3.0/xml/features

feature:install -v jndi jdbc http war
feature:install -v cxf cxf-commands
feature:install -v camel-core camel-blueprint camel-http4 camel-quartz camel-mail

feature:install -v commons-pool2 jedis mongo tomcat-jdbc jtds db2jcc ojdbc ucp mysql h2 java-uuid-generator httpcomp-osgi javax-json netty poi joda-time jxl bouncycastle

Kestrel 4 @ karaf_4.0.4

Tag: aves/kestrel:v4
From: aves/java:8u74
HashID: e699f1a49fdc
Create the Kestrel Container

docker run -d -P --name kestrel4_inst --volumes-from gv_mvn aves/kestrel:v4

Nginx

Tag: aves/nginx:latest
From: nginx
HashID: 83a6f1e8aca2

docker pull nginx

Pitta MySQL Server

Tag: aves/pitta/mysqld:latest
From: mysql:5.6
HashID: 8873a979b10f

Pitta Frontend Server

Tag: aves/pitta/frontend:latest
From: aves/nginx:latest
HashID: 832ef455a32b

Pitta Backend Server

Tag: aves/pitta/backend:latest
From: aves/kestrel:v4
HashID: 832ef455a32b

Volume Container Name Convension

gv|lv ${product_name} _ ${project_name} ${tag}

Links Name Convension

${container name}:aves.dc.${product_name}
e.g redis:aves.dc.redis

Practice Pitta Deployment

Preparing the Volumes
docker create --name gv_mvn -v /Users/steven/Workshop/dockerwork/workshop/mvn:/var/mvn aves/volume/mvn:latest
docker create --name lv_redis_pitta_dev aves/volume/redis
docker create --name lv_mongo_pitta_dev aves/volume/mongo
docker create --name lv_mysql_pitta_dev aves/volume/mysql
docker create --name lv_filestore_pitta_dev aves/volume/filestore
Docker Compose Orchestration
mysqld:
  image: aves/pitta/mysqld:latest
  volumes_from:
    - lv_mysql_pitta_dev
  expose:
    - "3306"
redisd:
  image: redis:latest
  command: redis-server --appendonly yes
  volumes_from:
    - lv_redis_pitta_dev
  expose:
    - "6379"
backend:
  image: aves/pitta/backend/mysql:latest
  links:
    - mysqld:aves.dc.mysql
    - redisd:aves.dc.redis
  volumes_from:
    - lv_filestore_pitta_dev
    - gv_mvn
  env_file: ./env_backend
  expose:
    - "8181"
  ports:
    - "9669:9669"
    - "8101:8101"
frontend:
  image: aves/pitta/frontend:latest
  links:
    - backend:dc.pitta.backend
  env_file: ./env_frontend
  volumes_from:
    - lv_filestore_pitta_dev
  ports:
    - "443:443"
    - "80:80"
Backend Enviroment File (env_backend)
MYSQL_HOST=aves.dc.mysql
MYSQL_USER=root
MYSQL_PASSWORD=pass4pass
MYSQL_DB_NAME=pitta
PITTA_WXPAY_SPBIP=127.0.0.1
PITTA_CALLBACK_HOST=127.0.0.1
PITTA_ABAPAY_SRVURL=http://localhost/sei/v10/svc
Frontend Enviroment File (env_frontend)
PITTA_SERVER_NAME=127.0.0.1
Launch Applications by issue command
docker-compose up -d
Initial Database
docker exec ${mysql_container_name} /pitta_import.sh
Initial Sequence Number Generator
docker exec -it ${redis_cotainer_name} bash
redis-cli
set aglpay_seq:acqrbill 999999012140
Install Bundles to Backend
docker exec ${backend_container_name} client install-pitta
Initial SA login account
https://${host}/console/dmz/index.html#/sasetup
 类似资料: