Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,13 @@ before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
before_script:
- npm install -g @angular/cli
- npm install -g karma
- npm install
- ng build
script: ng test --karma-config karma.conf.js --watch=false
script:
- ng test --karma-config karma.conf.js --watch=false
notifications:
slack:
rooms:
secure: MIWvzLzwSljNV65MXIEJQA6S78vGFnmongE4Gt97hwHTv89/ONKpgCAZVUBbu9//45PNz8/e3oil109GGUsTPtNwils0kugD5R13P6V6X1oDonl/9WZlF2jfRMgymM/SixC/Bv8oIKDaioKTt/cyEqO/rSWcvcJKsN7+cSrD+Qm5cxyTtIZ9RurJiATVXmRGqnhrYya8OMQQC1GCYmM9pSlKczp084qi7ODCeDa1l29Ajw79Bwkjx6veHUlfjhRph64wfrbJj2/omRAE4jrSPSW7FMNq8Vhsfh407Z7C0EU0HHcC3x/R4r3RdjfIhzSskGldmJtffVuOHRFRjUALEkJUqWrcBamYR+8WX+R/s/SQOlRuQCb2nFUr+JH5fE8hf/ut6dDAGegtKyaT7wvvRHwM4GtghUwavaOx9B4b0Lji0+k9FT9e6Dftfmyi2xuzOkfNYd21vkjh3XTkEg64g3tOp3Tj21yn/EQdAIOAEES8+kt2NvJ6EXxPOanggLUMUPp887etgxm1HUmJl3FAHtpHb7uWeAODzowl11vnA2dpDCMDJLcOYRB7/RbTvN3y3JWqnZSIwK+eH+NjnI8DrDO1jXhYPOYOm0lMavb+BSxdrP3BacQdiS6/q4KezBF4E11AOo6n6D3MWcud7/D8CmO8C9GP7hdBun7xqAa+XBQ=
on_success: always
on_failure: always
on_success: always
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Create image based on the official Node 6 image from dockerhub
FROM node:6

# Create a directory where our app will be placed
RUN mkdir -p /usr/src/app

# Change directory so that our commands run inside this new directory
WORKDIR /usr/src/app

# Copy dependency definitions
COPY package*.json ./

# Install dependecies
RUN npm install

# Get all the code needed to run the app
COPY . .

# Expose the port the app runs in
EXPOSE 4200

# Serve the app
CMD ["npm", "start"]
84 changes: 84 additions & 0 deletions docker-compose-local.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
version: '3'

services:

discoveryservice:
image: aista/eureka
ports:
- "8761:8761"

rabbitmq:
image: rabbitmq:management
ports:
- "5672:5672"
- "15672:15672"

edgeservice:
image: aista/edge-service
ports:
- "8080:8080"
depends_on:
- discoveryservice

mysqlserver:
image: mysql:5.7
volumes:
- mysql-data:/var/lib/mysql:rw
restart: always
ports:
- '3306:3306'
environment:
MYSQL_USER:
MYSQL_PASSWORD:
MYSQL_ROOT_PASSWORD: 'root'
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
MYSQL_DATABASE: 'user_service'

userservice:
image: aista/user-service
depends_on:
- discoveryservice
- mysqlserver
ports:
- '8080'
environment:
- RABBIT_HOST=rabbitmq

calculationservice:
image: aista/calculation-service
depends_on:
- discoveryservice
- rabbitmq
command: ["go", "run", "main.go"]
ports:
- "8080"
environment:
- RABBIT_HOST=rabbitmq
- EUREKA_SERVER=discoveryservice

gmapsadapter:
image: aista/gmaps-adapter
depends_on:
- discoveryservice
- rabbitmq
ports:
- "8080"
environment:
- RABBIT_HOST=rabbitmq
- EUREKA_SERVER=discoveryservice

notificationservice:
image: aista/notification-service
depends_on:
- discoveryservice
- rabbitmq
command: notification-service
ports:
- "32700:32700"
environment:
- RABBIT_HOST=rabbitmq
- EUREKA_SERVER=discoveryservice

volumes:
mongo:
mysql-data:
Loading