Skip to content

Commit

Permalink
Merge pull request #43 from cmu-sei/9.25.2020
Browse files Browse the repository at this point in the history
Update for 9.25.2020
  • Loading branch information
sei-ebram authored Sep 25, 2020
2 parents 4609d9b + 8d2f4af commit 37f8bd3
Show file tree
Hide file tree
Showing 430 changed files with 28,080 additions and 13,786 deletions.
758 changes: 379 additions & 379 deletions alloy.api/Alloy.Api/Services/AlloyBackgroundService.cs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions alloy.ui/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,5 @@ Thumbs.db
/terraform/

src/assets/config/settings.env.json
docker/
.vscode/
43 changes: 16 additions & 27 deletions alloy.ui/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,10 @@
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.app.json",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.css"
],
"scripts": []
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["src/styles/styles.scss"],
"scripts": [],
"preserveSymlinks": true
},
"configurations": {
"production": {
Expand Down Expand Up @@ -84,26 +80,16 @@
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.spec.json",
"karmaConfig": "src/karma.conf.js",
"styles": [
"src/styles.css"
],
"styles": ["src/styles.css"],
"scripts": [],
"assets": [
"src/favicon.ico",
"src/assets"
]
"assets": ["src/favicon.ico", "src/assets"]
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"src/tsconfig.app.json",
"src/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
"tsConfig": ["src/tsconfig.app.json", "src/tsconfig.spec.json"],
"exclude": ["**/node_modules/**"]
}
}
}
Expand All @@ -129,13 +115,16 @@
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": "e2e/tsconfig.e2e.json",
"exclude": [
"**/node_modules/**"
]
"exclude": ["**/node_modules/**"]
}
}
}
}
},
"defaultProject": "alloy"
}
"defaultProject": "alloy",
"schematics": {
"@schematics/angular:component": {
"styleext": "scss"
}
}
}
27 changes: 27 additions & 0 deletions alloy.ui/default.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
server {

listen 80;

sendfile on;

default_type application/octet-stream;


gzip on;
gzip_http_version 1.1;
gzip_disable "MSIE [1-6]\.";
gzip_min_length 256;
gzip_vary on;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_comp_level 9;


root /usr/share/nginx/html;


location / {
try_files $uri $uri/ /index.html =404;
}

}
1 change: 1 addition & 0 deletions alloy.ui/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
version: '3.6'
33 changes: 33 additions & 0 deletions alloy.ui/dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
FROM node as builder

COPY package.json package-lock.json ./
COPY ./modules/* /modules/

# Storing node modules on a separate layer will prevent unnecessary npm install at each build
RUN npm set progress=false && \
npm config set depth 0 && \
npm cache clean --force && \
npm config set unsafe-perm true

RUN npm i && mkdir /ng-app && cp -R ./node_modules ./ng-app

WORKDIR /ng-app

COPY . .

RUN $(npm bin)/ng build --prod

### Stage 2: Setup ###

FROM nginx:1.13.3-alpine

COPY default.conf /etc/nginx/conf.d/default.conf

RUN rm -rf /usr/share/nginx/html/*

COPY --from=builder /ng-app/dist/alloy /usr/share/nginx/html

# Build Angular app in production mode and store artifacts in dist folder
RUN rm -f ./src/assets/config/settings.env.json

ENTRYPOINT ["nginx", "-g", "daemon off;"]
Binary file added alloy.ui/modules/crucible-common-0.0.2.tgz
Binary file not shown.
Loading

0 comments on commit 37f8bd3

Please sign in to comment.