An open API service indexing awesome lists of open source software.

https://github.com/bjnandi/laravel-glue-app-microservices-eks


https://github.com/bjnandi/laravel-glue-app-microservices-eks

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

Welcome to Team Octa

# README #

1) Install AWS cli
2) Install Eksctl
3) Install Kubectl

4) Create Cluster
eksctl create cluster -f cluster.yaml

5) Run
create_iam_role.sh

6) Run
eksctl create iamidentitymapping --cluster basic-cluster --arn arn:aws:iam::916116923608:role/CodeBuildKubectlRole --group system:masters --username CodeBuildKubectlRole

7) Run for View IAM
kubectl get configmaps aws-auth -n kube-system -o yaml > aws-auth.yaml

8) Create Build

9) Change IAM role to code Build

CodeBuildKubectlRole (arn:aws:iam::916116923608:role/CodeBuildKubectlRole)

10) Create Pipeline

################################################################################

This repo containers standalone dokcerfile to create 3 images to deploy glue app

How to use

##First You need to build a image from dockerfile by following commands

First goto the directory where containes dockefiles the enter the command as below

docker build -t "image_tag_name" -f "dockerfilename" .

after the succesfull build you have to create container from the image.
please pass the appropiat values such as Database Host, username and password, webaddress.
Please follow the bollow format to pass environment variables.

docker run -itd -p "desired Port to publish" --name "container name " -e "variablename"="value" "imagestagname"

e.g : building image with nginx webserver ip

docker run -itd -p 80:80 --name glue-frontend -e SERVER_NAME=glue.cloudboost.ml teamcloudboost/glue-independent:frontend

Availble environments variables are given below

For DATABASE Container ( Database server will configured as per variable values) :

MYSQL_ROOT_PASSWORD [DATABASE ROOT PASSWORD]
APP_DB [DB NAME FOR GLUE APP]
APP_DB_USER [DB_USERNAME]
APP_DB_PASS [DB_PASSWORD]

docker run -itd -p 3306:3306 --name glue-database teamcloudboost/glue-independent:database


========================================================================

For Frontend Container :

SERVER_NAME [NGINX SERVER NAME]
APP_DB [DATABASE HOST FOR GLUE APP]
APP_DB_USER [DATABASE USERNAME]
APP_DB_PASS [DATABASE PASSWORD]
DB_HOST [DATABASE SERVER IP]
BACK_HOST [BACKEND SERVER IP]

docker run -itd -p 80:80 --name glue-frontend -e APP_DB=laravel -e APP_DB_USER=laravel -e APP_DB_PASS=laravel -e DB_HOST=192.168.0.5 -e SERVER_NAME=192.168.0.5 -e BACK_HOST=192.168.0.5 teamcloudboost/glue-independent:frontend


==========================================================================

For Backend Container :

DB_HOST [DATABASE HOST/SERVER IP]
APP_DB [DATABASE NAME FOR GLUE APP]
APP_DB_USER [DATABASE USERNAME]
APP_DB_PASS [DATABASE PASSWORD]

docker run -itd -p 9000:9000 --name glue-backend -e APP_DB=laravel -e APP_DB_USER=laravel -e APP_DB_PASS=laravel -e DB_HOST=192.168.0.5 teamcloudboost/glue-independent:backend

==========================================================================

Images are available at Dockerhub

Frontend : teamcloudboost/glue-independent:frontend
Backend : teamcloudboost/glue-independent:Backend
Database : teamcloudboost/glue-independent:Database