You are on page 1of 8

MACHINE SETUP FOR MAC

Install brew
1.Run below command in your terminal

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/


install.sh)”

2.When command is successfully completed, at the end it asks to run some other commands to
run to complete the procedure.Run that in your terminal.

3. Run “brew —version” to see if it is successfully installed or not.

Install Gradle
1.Run below command in your terminal

brew install gradle@7

2. Run “gradle —version” to see if it is successfully installed or not.

Install java
1. Go to the below site

https://docs.microsoft.com/en-us/java/openjdk/download

2. Download openjdk 11

3. Unzip and install .

4. Run “java —version” to see if it is successfully installed or not.

Cloning repo
1. Create a workspace where you’ll clone all the repos .For example

1. cd Documents - for going inside Documents folder

2. mkdir max_repo - for creating new directory

3. cd max_repo - for going inside that directory

2. Inside the workspace , you can clone any repo from bitbucket using command

1. git clone <bitbucket path of repo>


For example - git clone https://bitbucket.axisb.com/scm/max/
risk-service.git

If you get any SSL certi cate error , write this command

export GIT_SSL_NO_VERIFY=true

3. Again try to clone as shown in step 1

Intellij Setup

fi

1. Open the repository which you cloned in previous step in IntelliJ.

2. Accept all the certi cate pop up in IntelliJ.(If Intellij doesn’t show you any pop up then also
there is no problem)

3. Open gradle.properties le in the repository.If it doesn’t have any , create one .

4. Add below username and password in gradle.properties

mavenUser=maximus-build-user
mavenPassword=maximus@build21
5.Go to File -> Project Structure in your intellij as shown in picture

6. Go to SDK option , In JDK home path you need to give path to your jdk home .For example-

In my machine it’s - /Library/Java/JavaVirtualMachines/openjdk-11.jdk/


Contents/Home.
A folder icon having value as 11 or similar will be added in the middle.You can use this value for
con guring java at other places as well.(Highlighted with arrow).In my machine it’s 11(3)

Refer to below screenshot.

fi
fi

fi

7. Now go to Project .Con gure Project SDK as the value you set in Step 6 .For me it’s
11(3).Con gure language level as 11.

8. Now go to modules. Inside sources ->

Language level set project default as 11

fi
fi
9. Go to dependencies .Add module SDK .In my case it’s 11(3)

10.Click on Apply and Ok

11. Go to your Gradle in right most corner and click on highlighted icon as shown in below image.

12.Go to gradle settings

In Build, Execution, Deployment -> Gradle


Check path for Gradle JVM.Con gure it to value set in step 6 . In my case it’s 11(3)

13. Click on Apply and ok.

14.Download cacerts from https://con uence.axisb.com/display/MAX/Onboarding+Context+


%7C+Machine+Setup?preview=/58299538/78385380/cacerts

15.Paste this cacerts in your security folder in java .Path will be similar to

/Library/Java/JavaVirtualMachines/openjdk-11.jdk/Contents/Home/lib/
security

16.Now close everything and restart your system.

17.Now build the project in intellij using build option or by typing below command in intellij
terminal

./gradlew clean build

UI project setup
1.Clone any one of ui repo

For example :-

Run below command inside your work directory

fl
fi
git clone https://bitbucket.axisb.com/scm/max/customer-ui-next.git

2. Now open this project in IntelliJ

3. Install yarn using “brew install yarn”

4. Install nvm using “brew install nvm”

5. At the end , when command is successfully completed, there will be one export command
which you need to run in terminal.

6. There will be 2-3 lines also at the end , which you need to add in your zshrc or bash_pro le.

7 . To nd out which shell you are using run below command.

echo $SHELL

8. If it’s ZSH, add lines mentioned in point 5 at zshrc or if its’ bash add it in bash_pro le or
whatever respective le exists for your terminal.

9. For example - for zsh ,you can do

vi ~/.zshrc
Add those lines in this les, save and exit

10. Now check “nvm —version” .

11. Install node using “nvm install 16”

12. Now run “nvm use 16”

13. Now run below command one by one

- yarn con g set registry https://artifactory.axisb.com/artifactory/api/npm/npm/

- npm con g set registry https://artifactory.axisb.com/artifactory/api/npm/npm/

- yarn con g set strict-ssl false

- npm con g set strict-ssl false

- yarn con g set always-auth true

- npm con g set always-auth true

- npm login

Credentials are

username=maximus-build-user

password=maximus@build21

email= your email

- yarn login

Use same credentials

- yarn install

Docker Setup
1. Start your docker

2. Clone the maximus-docker-compose-env in your workspace


git clone https://bitbucket.axisb.com/scm/max/maximus-docker-compose-env.git
3. Now go inside this repository.

4. Try pulling the images

For example - for personal loan we use pl

PULL_IMAGES=true ENV=dev./docker-compose-maximus-env.sh up pl
5. If you get any authentication error , you need to login into artifactory. Run below command

docker login artifactory.axisb.com


Username- maximus-build-user
fi
fi
fi
fi
fi
fi
fi
fi
fi

fi

fi

Password- maximus@build21

6.Now again run the command in Step 4.

7.If you face any timeout issues , you can go to docker desktop .In settings->Resources

Make following changes

Cpu -6 ,memory -10gb, swap -2gb ,disk image size - 88gb

8.Try running the pull images command again

Note - You might get an error that we can’t bring customer service up.This comes
because HyWorks and customer service both works on same port.You can either quit
HyWorks or change customer service port in maximus-docker-compose-repository

Con guring etc host le

Edit your /etc/hosts le


sudo vim /etc/hosts
Append this in your etc host le

#development-tools

10.22.0.12 gocd-maximus.dev.maximus.axisb.com

10.22.0.12 jira.dev.maximus.axisb.com

10.22.0.12 bitbucket.dev.maximus.axisb.com

10.22.162.24 bitbucket.axisb.com

10.22.0.12 monitoring.dev.maximus.axisb.com

10.22.0.12 mongoclient.dev.maximus.axisb.com

10.22.0.12 tracing.dev.maximus.axisb.com

10.22.0.12 mailhog.dev.maximus.axisb.com

10.22.0.12 vendor-ui-mock.dev.maximus.axisb.com

10.22.0.12 kubernetes-dashboard.dev.maximus.axisb.com

10.22.0.12 masters-api.dev.maximus.axisb.com

10.22.0.12 styleguide.dev.maximus.axisb.com

10.22.0.12 logs.dev.maximus.axisb.com

10.22.0.12 bitbucket-primary.dev.maximus.axisb.com

10.22.0.12 jira-primary.dev.maximus.axisb.com

#logging

10.22.0.12 logs.dev.maximus.axisb.com

#sit environment

10.22.0.12 orchestration-service-sit.dev.maximus.axisb.com

10.22.0.12 web-sit.dev.maximus.axisb.com

10.22.0.12 asset-service-sit.dev.maximus.axisb.com

10.22.0.12 auth-service-sit.dev.maximus.axisb.com

10.22.0.12 customer-service-sit.dev.maximus.axisb.com

10.22.0.12 master-data-service-sit.dev.maximus.axisb.com

10.22.0.12 document-service-sit.dev.maximus.axisb.com

10.22.0.12 merchant-service-sit.dev.maximus.axisb.com

10.22.0.12 mountebank-ui-sit.dev.maximus.axisb.com

10.22.0.12. mountebank-sit.dev.maximus.axisb.com

#qa environment

fi
fi
fi

fi
10.22.0.12 orchestration-service-qa.dev.maximus.axisb.com

10.22.0.12 web-qa.dev.maximus.axisb.com

10.22.0.12 asset-service-qa.dev.maximus.axisb.com

10.22.0.12 auth-service-qa.dev.maximus.axisb.com

10.22.0.12 customer-service-qa.dev.maximus.axisb.com

10.22.0.12 master-data-service-qa.dev.maximus.axisb.com

10.22.0.12 document-service-qa.dev.maximus.axisb.com

10.22.0.12 merchant-service-qa.dev.maximus.axisb.com

10.22.0.12 mountebank-ui-qa.dev.maximus.axisb.com

10.22.0.12 mountebank-qa.dev.maximus.axisb.com

#uat environment

10.22.0.12 orchestration-service-uat.dev.maximus.axisb.com

10.22.0.12 web-uat.dev.maximus.axisb.com

10.22.0.12 asset-service-uat.dev.maximus.axisb.com

10.22.0.12 auth-service-uat.dev.maximus.axisb.com

10.22.0.12 customer-service-uat.dev.maximus.axisb.com

10.22.0.12 master-data-service-uat.dev.maximus.axisb.com

10.22.0.12 document-service-uat.dev.maximus.axisb.com

10.22.0.12 merchant-service-uat.dev.maximus.axisb.com

10.22.0.12 sangamuat.dev.maximus.axisb.com/index.php/api/bureauRequest

10.22.0.12 esbuat.dev.maximus.axisb.com

10.9.112.201 teams.microsoft.com

10.22.0.12 logs.maximus.axisb.com

#hot x environment

10.22.0.12 orchestration-service-hot x.dev.maximus.axisb.com

10.22.0.12 web-hot x.dev.maximus.axisb.com

10.22.0.12 asset-service-hot x.dev.maximus.axisb.com

10.22.0.12 auth-service-hot x.dev.maximus.axisb.com

10.22.0.12 customer-service-hot x.dev.maximus.axisb.com

10.22.0.12 master-data-service-hot x.dev.maximus.axisb.com

10.22.0.12 document-service-hot x.dev.maximus.axisb.com

10.22.0.12 merchant-service-hot x.dev.maximus.axisb.com

10.22.0.12 mountebank-ui-hot x.dev.maximus.axisb.com

10.22.0.12 mountebank-hot x.dev.maximus.axisb.com

#Backo ce

10.22.0.12 dlp-sit.dev.maximus.axisb.com

Clone multiple repos


Refer -

https://con uence.axisb.com/display/MAX/Bulk+Clone+and+Pull+of+repos+in+a+Project

fi
ffi
fl
fi
fi
fi
fi
fi
fi
fi
fi
fi
fi

You might also like