Skip to content

Commit

Permalink
Merge pull request #1090 from US-CBP/Release_1.0
Browse files Browse the repository at this point in the history
Release 1.0
  • Loading branch information
originalname51 committed May 9, 2019
2 parents ffb8d2a + 0c54537 commit f2aca60
Show file tree
Hide file tree
Showing 583 changed files with 88,138 additions and 36,637 deletions.
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,20 @@ local.properties

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

# for experimental gradle build
build/
gradle/
.gradle/
*.gradle
gradle*

.apt_generated
.vscode

*.raw
*.raw.tar.gz
*.vdi

**/bower_components
*yarn.lock
44 changes: 0 additions & 44 deletions .travis.yml

This file was deleted.

61 changes: 46 additions & 15 deletions Docker Usage Instructions.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@


# Docker Instructions
----------
**Installation**
Expand All @@ -9,7 +11,50 @@
$ docker version
```

**Dec 2018** update -
_**Option1:**_ Type in individual Docker commands

Tagged images of GTAS are available on Docker Hub - run these commands to start testing GTAS in your local env.

```
$ docker network create gtas_default
$ docker container run -d --name mariahost -p 3306:3306 --network gtas_default sanandreas/gtas_mariadb:v3
$ docker container run -d --name redis -p 6379:6379 --network gtas_default redis
$ docker container run -d --name activemq -p 61616:61616 -p 8161:8161 --network gtas_default rmohr/activemq
```
Update this following command with your local volume mounts (place where you drop files to be parsed) to help the application pick API/PNR files from your local hard drive.

Replace this < your local folder> with your local mappings
```
$ docker container run -d --name tomcat -p 8080:8080 --network gtas_default -v //c/db/input: < your local input folder> -v //c/db/output: < your local output folder> sanandreas/gtas_tomcat:v3
```

_**Option2:**_ Let __**docker-compose**__ handle the process of building and deploying

- From under <**gtas-parent/docker**> folder, look up this file
*docker-compose.yml*
- Run these two following lines to update docker with your local file structure for input and output API/ PNR files - **change the Right Hand Side with your local file system values**
- Ex: LOCAL_DRIVE_MAPPING_INPUT=<your_local_path>

- Note that for Windows file system - we use two forward slashes //
and for Linux/Unix/Mac file system - we use single forward slash /
```
echo LOCAL_DRIVE_MAPPING_INPUT=//C/Message > .env
echo LOCAL_DRIVE_MAPPING_OUTPUT=//C/MessageOld >> .env
```
Then go ahead and issue this command
```
$ docker-compose up
```
This will get you up and running with GTAS in your local env.
Access the application at _**http://localhost:8080/gtas**_

---
**Build Instructions**

There are couple of ways to engage Docker within GTAS
Expand Down Expand Up @@ -89,18 +134,4 @@ $ docker run -d --rm --name tomcat -p 8080:8080 --link mariahost:mariahost gtas_

Give it a couple mins

and then open up the login screen going to _**http://localhost:8080/gtas**_














and then open up the login screen going to _**http://localhost:8080/gtas**_
20 changes: 20 additions & 0 deletions gtas-neo4j-etl/config/application.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
logging.file=neo4j-job-scheduler.log
execInterval = 60

#Windows settings
#opSystem = windows
#pdiDir = C:/kettle-neo4j-remix-8.2.0.3-519-REMIX/data-integration/kitchen.bat
#jobDir=C:/gtas-neo4j-etl/job/gtas-to-neo-job.kjb
#logLevel=Minimal
#logDir=C:/gtas-neo4j-etl/log/gtas-to-neo-job
#configFilePropertyName=EXT_ETL_CONFIG_FILE
#configFile=C:/gtas-neo4j-etl/config/gtas-neo4j-config.properties

##Linux settings
opSystem = linux
pdiDir = /opt/pentaho/data-integration/./kitchen.sh
jobDir=/gtas-neo4j-etl/job/gtas-to-neo-job.kjb
logLevel=Minimal
logDir=/gtas-neo4j-etl/log/gtas-neo4j
configFilePropertyName=EXT_ETL_CONFIG_FILE
configFile=/gtas-neo4j-etl/config/gtas-neo4j-config.properties
31 changes: 31 additions & 0 deletions gtas-neo4j-etl/config/gtas-neo4j-config.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
EXT_VAR_DATA_LOADER_NAME = GTAS-NEO4J DATA LOADER
EXT_VAR_GTAS_DB_HOST_NAME = localhost
EXT_VAR_GTAS_DB_NAME = gtas
EXT_VAR_GTAS_DB_PORT_NUMBER = 3306
EXT_VAR_GTAS_DB_USER_NAME =
EXT_VAR_GTAS_DB_PASSWORD =
EXT_VAR_NEO4J_DB_HOST_NAME=localhost
EXT_VAR_NEO4J_DB_BOLT_PORT=7687
EXT_VAR_NEO4J_DB_BROWSER_PORT=7474
EXT_VAR_NEO4J_DB_USER_NAME =
EXT_VAR_NEO4J_DB_PASSWORD =
EXT_VAR_TEMP_GTAS_ALL_FLIGHT_FILE=gtas-all-flight-temp.txt
EXT_VAR_TEMP_GTAS_PNR_FLIGHT_FILE=gtas-PNR-flight-temp.txt
EXT_VAR_TEMP_GTAS_HITS_FULL_FILE_NAME=gtas-hit-temp.txt
EXT_VAR_TEMP_GTAS_MESSAGE_ID_FILE=gtas-message-id-temp.txt
EXT_VAR_GTAS_MESSAGE_STATUS_TABLE=message_status
EXT_VAR_DOCUMENT_BATCH_SIZE=5000
EXT_VAR_PASSENGER_BATCH_SIZE=5000
EXT_VAR_FLIGHT_ORIGIN_BATCH_SIZE=5000
EXT_VAR_FLIGHT_DESTINATION_BATCH_SIZE=5000
EXT_VAR_ADDRESS_BATCH_SIZE=5000
EXT_VAR_CREDITCARD_BATCH_SIZE=5000
EXT_VAR_EMAIL_BATCH_SIZE=5000
EXT_VAR_PHONE_BATCH_SIZE=5000
EXT_VAR_PASSENGER_HIT_BATCH_SIZE=5000
EXT_VAR_FLIGHT_HIT_BATCH_SIZE=5000
EXT_VAR_GTAS_MSG_STATUS_UPDATE_BATCH_SIZE=5000
EXT_VAR_GTAS_MSG_STATUS=NEO_LOADED
EXT_VAR_NEO4J_MAX_POOL_SIZE=10


Binary file not shown.
Binary file not shown.
Loading

0 comments on commit f2aca60

Please sign in to comment.