Skip to content

Instantly share code, notes, and snippets.

@girishaiocdawacs
Created November 21, 2020 08:15
Show Gist options
  • Save girishaiocdawacs/5fffb32283ff1526139de39d1679459b to your computer and use it in GitHub Desktop.
Save girishaiocdawacs/5fffb32283ff1526139de39d1679459b to your computer and use it in GitHub Desktop.
Setting up dev environment for awacs-cloud
#! /bin/bash
rm -rf /c/Users/giris/.m2/repository/com/aiocdawacs/
cd admin-server
mvn clean package
cd ..
cd smart-pharmacy-product-service
mvn clean package
cd ../
cd awacs-cloud-auth-server
mvn clean package
cd ../
cd smart-pharmacy-user-management
mvn clean package
cd ../
version: '3.3'
services:
adminserver:
build: admin-server
restart: always
ports:
- "8765:8765"
expose:
- "8765"
environment:
spring.security.user.name : awacs
spring.security.user.password : awacs
socialweb:
build: smart-pharmacy-user-management
restart: always
ports:
- "9393:9393"
expose:
- "9393"
environment:
social_login_type: "github, facebook, google"
authserver:
build: awacs-cloud-auth-server
restart: always
ports:
- 8100:8100
expose:
- 8100
depends_on:
- db
environment:
spring.boot.admin.client.url: "http://adminserver:8765"
spring.boot.admin.client.username: 'awacs'
spring.boot.admin.client.password: 'awacs'
spring.datasource.url : "jdbc:mysql://db:3306/awacs_cloud"
spring.datasource.username : root
spring.datasource.password : secret
spring.jpa.properties.hibernate.dialect : org.hibernate.dialect.MySQL8Dialect
spring.jpa.show-sql : "true"
productservice:
build: smart-pharmacy-product-service
restart: always
ports:
- 8181:8181
expose:
- 8181
depends_on:
- db
- jms
environment:
SPRING_PROFILES_ACTIVE: dev
spring.boot.admin.client.url: "http://adminserver:8765"
spring.boot.admin.client.username: 'awacs'
spring.boot.admin.client.password: 'awacs'
awacs.cloud.auth-server.check-token : "http://authserver:8100/oauth/check_token"
spring.activemq.broker-url : "tcp://jms:61616"
spring.activemq.in-memory : "false"
spring.cloud.gcp.project-id: "awacs-cloud-prod"
db:
image: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
ports:
- 3306:3306
environment:
MYSQL_DATABASE: awacs_cloud
MYSQL_ROOT_PASSWORD: secret
volumes:
- ./db/:/docker-entrypoint-initdb.d/
jms:
image: webcenter/activemq:latest
restart: always
ports:
- 61616:61616
- 8161:8161
- 61613:61613
environment:
ACTIVEMQ_ADMIN_LOGIN: admin
ACTIVEMQ_ADMIN_PASSWORD: admin123
ACTIVEMQ_CONFIG_QUEUES_controller.events.error: controller.events.error
deploy:
mode: replicated
replicas: 1
adminer:
image: adminer
restart: always
ports:
- 8080:8080
expose:
- 8080
nginx:
build:
context: awacs-nginx
dockerfile: Dockerfile.nginx
container_name: awacs_nginx
restart: always
ports:
- 80:80
- 443:443
expose:
- 80
- 443
links:
- adminserver
- socialweb
- productservice
- adminer
- authserver
depends_on:
- adminserver
- socialweb
- productservice
- adminer
- authserver
#! /bin/bash
cd /d/aiocd-workspace/java-workspace/
rm -rf smart-pharmacy-product-service
git clone https://github.com/girishaiocdawacs/smart-pharmacy-product-service.git
rm -rf smart-pharmacy-user-management
git clone https://github.com/girishaiocdawacs/smart-pharmacy-user-management.git
rm -rf angularweb
git clone https://github.com/girishaiocdawacs/angularweb.git
rm -rf admin-server
git clone https://github.com/girishaiocdawacs/admin-server.git
rm -rf awacs-cloud-commons
git clone https://github.com/girishaiocdawacs/awacs-cloud-commons.git
rm -rf awacs-cloud-auth-server
git clone https://github.com/girishaiocdawacs/awacs-cloud-auth-server.git
rm -rf awacs-cloud-production-shakeout
git clone https://github.com/girishaiocdawacs/awacs-cloud-production-shakeout.git
#cd angularweb
#npm install
#ng serve --open --port 8090
@girishaiocdawacs
Copy link
Author

Development environment -
Eclipse = Use 2020-09 version eclipse
Maven 3.6.3
STS 4 Enabled.
Docker Toolbox etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment