-
Notifications
You must be signed in to change notification settings - Fork 17
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 #43 from cmu-sei/9.25.2020
Update for 9.25.2020
- Loading branch information
Showing
430 changed files
with
28,080 additions
and
13,786 deletions.
There are no files selected for viewing
758 changes: 379 additions & 379 deletions
758
alloy.api/Alloy.Api/Services/AlloyBackgroundService.cs
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -48,3 +48,5 @@ Thumbs.db | |
/terraform/ | ||
|
||
src/assets/config/settings.env.json | ||
docker/ | ||
.vscode/ |
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,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; | ||
} | ||
|
||
} |
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 @@ | ||
version: '3.6' |
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,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 not shown.
Oops, something went wrong.