Table of Contents |
---|
Install the tools you will need with the mac package manager homebrew
...
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install java8:
brew update
brew cask install java
- install maven
- brew install maven
- Create the settings.xml for maven - Follow the steps from here: https://hee-tis.atlassian.net/wiki/display/TISDEV/Maven, also ensure that your public ssh key is on the jenkins azure box
...
3. Connect your shell to the default
machine.
$ eval "$(docker-machine env default)"
- create an Elastic Search docker container
...
- docker-compose up ( use "-d" option to run in the background)
- docker ps → verify the container is running
- in a Chrome browser http://192.168.99.100:9200/ (localhost:9200 if your using docker for mac - native) - you should get an elastic search REST response
...
Setup an RO user on your local DB:
INSERT INTO `HeeUser` (`name`, `firstName`, `lastName`, `gmcId`, `phoneNumber`, `emailAddress`, `active`)
local_ro
VALUES
('jamesh', '
localJames', '
ROHudson', '
12345671000000',
NULL'7788996655', '
local.ro@jamesh@fake.
email.comcom', 1);
`UserDesignatedBody`
INSERT INTO`UserRole` (`userName`,
`designatedBodyCode`)
VALUES
('local_ro', '1-85KJU0')`roleName`)
VALUES
('jamesh', 'ConcernsAdmin'),
('jamesh', 'ETL'),
('jamesh', 'ProfileAdmin'),
('jamesh', 'RVAdmin'),
('jamesh', 'TisAdmin');
INSERT INTO `UserDesignatedBody` (`userName`, `designatedBodyCode`)
VALUES
('jamesh', '1-AIIDR8'),
('jamesh', '1-AIIDSA'),
('jamesh', '1-AIIDVS'),
('jamesh', '1-AIIDWA'),
('jamesh', '1-AIIDWI');
insert into Role values ('SuperUser');
INSERT INTO `RolePermission` (`roleName`, `permissionName`)
SELECT 'SuperUser' as 'roleName', `name` as 'permissionName'
FROM `Permission`;delete from RolePermission where permissionName = 'revalidation:submit:to:gmc' and roleName = 'SuperUser';
local_ro
INSERT INTO `UserRole` (`userName`, `roleName`)
VALUES
('jamesh', '
RVOfficerSuperUser');
INSERT INTO `HeeUser` (`name`, `firstName`, `lastName`, `gmcId`, `phoneNumber`, `emailAddress`, `active`)
jamesh
VALUES
('local_ro', '
Jameslocal', '
HudsonRO', '
10000001234567', NULL , '
james@local.ro@fake.email.com', 1);
jamesh
INSERT INTO `UserDesignatedBody` (`userName`, `designatedBodyCode`)
VALUES
('local_ro', '1-85KJU0');
INSERT INTO `UserRole` (`userName`, `roleName`)
jamesh
VALUES
('local_ro', '
ConcernsAdmin'),
('jamesh', 'RVAdminRVOfficer');
Shell script to automate running the application
...