-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from KillrVideo/no-etcd
Kubernetisation Rework
- Loading branch information
Showing
40 changed files
with
1,326 additions
and
3,476 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,4 @@ node_modules | |
.env | ||
|
||
# Webstorm/IDEA | ||
.idea | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
language: node_js | ||
node_js: | ||
- "8" | ||
|
||
# Sudo required for doing docker build | ||
sudo: required | ||
services: | ||
- docker | ||
|
||
# Build the app and a docker image | ||
script: | ||
- docker build -t ${TRAVIS_COMMIT} . | ||
|
||
# If successful, see if we need to publish also | ||
after_success: | ||
- test -z $TRAVIS_TAG && travis_terminate 0 | ||
- docker tag ${TRAVIS_COMMIT} killrvideo/killrvideo-nodejs:${TRAVIS_TAG} | ||
- echo "$DOCKER_PASS" | docker login -u "$DOCKER_USER" --password-stdin | ||
- docker push killrvideo/killrvideo-nodejs:${TRAVIS_TAG} | ||
|
||
env: | ||
global: | ||
# DOCKER_USER | ||
- secure: hL9GzKnAuHP130bLzB1nK9eF6bfPD4yFdQ1IdRRp7QDZ+AJ2MUw483w5Uacw6/VNk+KlItO9ySxkAI8gaBcxjxcp+TmFkmD0o4rRQixCoZiqlNeTCMmkx5J6KffNALiFBFPjOvVNXLEYh6lbyIsPJR0/eHGlhCbfpx9Ok9PxzVV4AtNNXVcqCl4hZFWPU8OX7nL0pyQ86MD1WiC/1nfTaE/9zaZ8M/qJhv558KmsSXnFN1eGrwVJLt8XPbZ5aKEvJq3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dN3ztUAhaAPT0IqHnycngMBKe2Y7+EDalsDBsffOpO0k= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM node:8 | ||
WORKDIR /usr/src/app | ||
|
||
COPY . . | ||
|
||
RUN npm install --unsafe-perm | ||
RUN npm run build | ||
|
||
CMD node dist/index.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"services": { | ||
"web": [ | ||
"web:3000" | ||
], | ||
"cassandra": [ | ||
"dse" | ||
], | ||
"dse-search": [ | ||
"dse:8983" | ||
], | ||
"UploadsService": [ | ||
"backend:50101" | ||
], | ||
"RatingsService": [ | ||
"backend:50101" | ||
], | ||
"CommentsService": [ | ||
"backend:50101" | ||
], | ||
"SearchService": [ | ||
"backend:50101" | ||
], | ||
"StatisticsService": [ | ||
"backend:50101" | ||
], | ||
"VideoCatalogService": [ | ||
"backend:50101" | ||
], | ||
"UserManagementService": [ | ||
"backend:50101" | ||
], | ||
"SuggestedVideoService": [ | ||
"backend:50101" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,63 @@ | ||
version: '3' | ||
|
||
# Other services are specified in .\lib\killrvideo-docker-common\docker-compose.yaml | ||
services: | ||
# Start the KillrVideo web UI on port 3000 | ||
# NodeJS Backend | ||
backend: | ||
build: . | ||
volumes: | ||
- .:/usr/src/app | ||
depends_on: | ||
- dse | ||
env_file: ./killrvideo.env | ||
environment: | ||
NODE_ENV: development | ||
|
||
# Datastax Enterprise | ||
dse: | ||
image: datastax/dse-server:6.7.0 | ||
command: [ -s -g ] | ||
ports: | ||
- "9042:9042" | ||
- "8983:8983" | ||
- "8182:8182" | ||
env_file: ./killrvideo.env | ||
environment: | ||
DS_LICENSE: accept | ||
# Allow DSE to lock memory with mlock | ||
cap_add: | ||
- IPC_LOCK | ||
ulimits: | ||
memlock: -1 | ||
|
||
# Frontend | ||
web: | ||
image: killrvideo/killrvideo-web:1.2.6 | ||
image: killrvideo/killrvideo-web:3.0.0-rc1 | ||
env_file: ./killrvideo.env | ||
ports: | ||
- "3000:3000" | ||
- "3000:3000" | ||
depends_on: | ||
- dse | ||
- etcd | ||
environment: | ||
SERVICE_3000_NAME: web | ||
KILLRVIDEO_ETCD: "etcd:2379" | ||
KILLRVIDEO_DSE_USERNAME: $KILLRVIDEO_DSE_USERNAME | ||
KILLRVIDEO_DSE_PASSWORD: $KILLRVIDEO_DSE_PASSWORD | ||
KILLRVIDEO_CASSANDRA_REPLICATION: $KILLRVIDEO_CASSANDRA_REPLICATION | ||
KILLRVIDEO_LOGGING_LEVEL: $KILLRVIDEO_LOGGING_LEVEL | ||
- dse | ||
|
||
# DSE Configurator to setup DSE | ||
dse-config: | ||
image: killrvideo/killrvideo-dse-config:3.0.0-rc1 | ||
env_file: ./killrvideo.env | ||
depends_on: | ||
- dse | ||
|
||
# The sample data generator | ||
# Sample Data Generator | ||
generator: | ||
image: killrvideo/killrvideo-generator:1.2.4 | ||
image: killrvideo/killrvideo-generator:3.0.0-rc4 | ||
env_file: ./killrvideo.env | ||
depends_on: | ||
- dse | ||
- etcd | ||
environment: | ||
KILLRVIDEO_ETCD: "etcd:2379" | ||
KILLRVIDEO_DSE_USERNAME: $KILLRVIDEO_DSE_USERNAME | ||
KILLRVIDEO_DSE_PASSWORD: $KILLRVIDEO_DSE_PASSWORD | ||
NODE_ENV: $NODE_ENV | ||
KILLRVIDEO_CASSANDRA_REPLICATION: $KILLRVIDEO_CASSANDRA_REPLICATION | ||
KILLRVIDEO_LOGGING_LEVEL: $KILLRVIDEO_LOGGING_LEVEL | ||
- dse | ||
- backend | ||
|
||
# One instance of DataStax Studio | ||
# DataStax Studio | ||
studio: | ||
image: killrvideo/killrvideo-studio:2.0.0 | ||
image: datastax/dse-studio:6.7.0 | ||
ports: | ||
# The Web UI exposed to our host | ||
- "9091:9091" | ||
- "9091:9091" | ||
depends_on: | ||
- dse | ||
- dse | ||
environment: | ||
SERVICE_9091_NAME: studio | ||
DS_LICENSE: accept | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
KILLRVIDEO_DSE_USERNAME=cassandra | ||
KILLRVIDEO_DSE_PASSWORD=cassandra | ||
KILLRVIDEO_LOGGING_LEVEL=debug | ||
DS_LICENSE: accept |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.