Tag: aves/java:8u74
From: https://hub.docker.com/_/debian/ debian:jessie
HashID: 5c4bbd6352c7
docker pull buxybox
docker pull debian:jessie
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
Tag: aves/volume/filestore:latest
From: busybox:latest
HashID: 9a0405acfcdc
Tag: aves/volume/mongo:latest
From: busybox:latest
HashID: d7e38588e3bc
Tag: aves/volume/mysql:latest
From: busybox:latest
HashID: d33749d54ba7
Tag: aves/volume/redis:latest
From: busybox:latest
HashID: dd0a1a6fbfdb
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
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
Tag: aves/nginx:latest
From: nginx
HashID: 83a6f1e8aca2
docker pull nginx
Tag: aves/pitta/mysqld:latest
From: mysql:5.6
HashID: 8873a979b10f
Tag: aves/pitta/frontend:latest
From: aves/nginx:latest
HashID: 832ef455a32b
Tag: aves/pitta/backend:latest
From: aves/kestrel:v4
HashID: 832ef455a32b
gv|lv ${product_name} _ ${project_name} ${tag}
${container name}:aves.dc.${product_name}
e.g redis:aves.dc.redis
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
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"
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
PITTA_SERVER_NAME=127.0.0.1
docker-compose up -d
docker exec ${mysql_container_name} /pitta_import.sh
docker exec -it ${redis_cotainer_name} bash
redis-cli
set aglpay_seq:acqrbill 999999012140
docker exec ${backend_container_name} client install-pitta
https://${host}/console/dmz/index.html#/sasetup