Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update Angular Versions (resolves #71) * Use Angular Universal (resolves #92) * Build Docker Image #91 * Bump minor version
- Loading branch information
1 parent
af97d22
commit 95c665a
Showing
88 changed files
with
5,974 additions
and
3,052 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
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,22 +1,31 @@ | ||
language: node_js | ||
|
||
node_js: | ||
- 'node' | ||
|
||
sudo: required | ||
|
||
services: | ||
- docker | ||
|
||
before_script: | ||
- npm install -g @angular/cli | ||
|
||
script: | ||
- ng lint | ||
- ng test --browsers=PhantomJS --reporters=mocha,coverage-istanbul --single-run --code-coverage --progress=false | ||
- ng build -prod --progress=false | ||
- npm run build:ssr | ||
|
||
after_success: | ||
- ./node_modules/coveralls/bin/coveralls.js < coverage/lcov.info | ||
|
||
before_deploy: | ||
- node pre-deploy.js | ||
- node docker | ||
|
||
deploy: | ||
provider: releases | ||
api_key: | ||
secure: wp0qvTH64CQrjYlso42DsOUT9FaSjK0T5VHtPquesnPgg+JNGxK9tn7jQxWlMMzibwQ5+JjOdUcH+imiL7rm0yiPwrT9yqHn/7o6F67D3OGTEMxfsTyCUgRHUJWsf0ats1RTlwCnOucz55t0fP8stmRV6zl5qSxskD1W0D8lC5cfGjeEemUi0St0cDsFwPNwVCxi04dflbWi++F7rWBzeeyuhtMNUtED4lMR0/bb+E9hcI6dVvsCO1Pi+yjcsTuFtPYgvBgYPLvn5UtvEo1XiMQHBgbVTNyoCjR6mFJvfAnzjMC5/fDKiLQvBnpf2t7t2uW5aiRL5xuBNI9Hc9oIAZZM7fO8sGwj+gAiRHY81S1m8twnNwOBcjqBxDPKLzz0UYce4AznvFRk2+nSdrGK8j9B63rNjmE3BJ1P3K5EIv/krAebqBLtnezl4oJTha4ZEHCfHhFx4lBFIFfc/UKfCzS/VMUDBSyYcVXINACwaQAk70v5liuaKSaj1Umly6DinfPdTOUPA8O/pCsuHx98HNzV5rc7RO134V6BPu5FaT575m9Rrr0zOhExVeawWKQwfj99L4aW2COvO7G2ycD9cF6y1oJRHQPDatvM/iEo+fg3x+M8CeSS6/7xYF5w+e9wLEIo52e4tyJAnCrp0gjePwp6iVPPCT1opkybAb9GloE= | ||
provider: script | ||
file: release.tar.gz | ||
skip_cleanup: true | ||
script: deploy.sh | ||
on: | ||
repo: clarkmalmgren/bolingbrook-church | ||
tags: true |
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,8 @@ | ||
#! /bin/bash | ||
|
||
docker --version | ||
pip install --user awscli | ||
export PATH=$PATH:$HOME/.local/bin | ||
|
||
eval $(aws ecr get-login --region us-east-1) | ||
docker push 971947037958.dkr.ecr.us-east-1.amazonaws.com/bolingbrook-church/website |
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 @@ | ||
let EZDocker = require('ezdocker').default; | ||
let { 'version': version } = require('./package.json'); | ||
|
||
EZDocker.createFromArgs() | ||
.repository('971947037958.dkr.ecr.us-east-1.amazonaws.com/bolingbrook-church/website') | ||
.buildImage() | ||
.with.tag(version) | ||
.and.path('docker') | ||
.and.path('dist', 'dist'); |
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,28 @@ | ||
FROM ubuntu:16.04 | ||
|
||
# Used to generate unique hash so apt-get runs again... | ||
RUN echo "Bolingbrook Church" | ||
|
||
# Update and Install Dependencies | ||
RUN apt-get update | ||
RUN apt-get -y dist-upgrade | ||
RUN apt-get -y install curl | ||
|
||
# Install NPM | ||
RUN curl -sL https://deb.nodesource.com/setup_9.x | bash - | ||
RUN apt-get -y install nodejs | ||
|
||
# Install ForeverJS | ||
RUN npm install -g forever | ||
|
||
# Create User and use it | ||
RUN useradd -ms /bin/bash faith | ||
USER faith | ||
|
||
# Add Files | ||
ADD dist /opt/bolingbrook-church/dist | ||
WORKDIR /opt/bolingbrook-church | ||
|
||
# Expose Port 4000 and Create Start Script | ||
EXPOSE 4000 | ||
ENTRYPOINT forever dist/server.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
Oops, something went wrong.