Skip to content

Commit

Permalink
Docker Support (#180)
Browse files Browse the repository at this point in the history
* - added a dockerfile for the app
- added directions for Docker and VueJS production deployments
- added a strait `VERSION` file for standardization

Signed-off-by: Aaron Lippold <[email protected]>

* Removed auto-generated files from commit

Signed-off-by: Aaron Lippold <[email protected]>

* - added missing files

Signed-off-by: Aaron Lippold <[email protected]>
  • Loading branch information
aaronlippold authored Nov 8, 2019
1 parent 8605260 commit 4191ad1
Show file tree
Hide file tree
Showing 9 changed files with 82 additions and 70 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/VERSION.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ jobs:
run: |
git pull origin master
echo "**Release:** " > VERSION.md
git describe --tags $(git rev-list --tags --max-count=1) >> VERSION.md
git describe --tags $(git rev-list --tags --max-count=1) >> VERSION.md >> VERSION.md
git describe --tags $(git rev-list --tags --max-count=1) >> VERSION
echo "<br><br>**Date:** " >> VERSION.md
git show -s --format=%ci $(git rev-list --tags --max-count=1) >> VERSION.md
echo "<br><br>**Commit:** " >> VERSION.md
Expand Down
1 change: 0 additions & 1 deletion .github_changelog_generator
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
unreleased=false
future-release=3.0.0
since-tag=v2.0.0
21 changes: 0 additions & 21 deletions CHANGELOG.md

This file was deleted.

13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# build stage
FROM node:lts-alpine as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install --production
COPY . .
RUN npm run build

# production stage
FROM nginx:stable-alpine as production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,32 @@ There are two versions of the MITRE Heimdall Viewer - the full [Heimdall](https:
| Decentralized Deployment | Need to view subsets of the 800-53 control alignment |
| Minimal A&A Time | Need to produce more complex reports in multiple formats |

## General Deployment

Heimdall Lite is a standard VueJS app so for help with a local deployment, please see: <https://cli.vuejs.org/guide/deployment.html#general-guidelines>

## Docker Deployment

<https://hub.docker.com/r/mitre/heimdall-lite>

### Pulling from Docker

`docker pull mitre/heimdall-lite:latest`

or

`docker pull mitre/heimdall-lite:v#.#.#`

### Running via Docker

`docker run -d -p 8080:80 heimdall-lite:latest`

or

`docker run -d -p 8080:80 heimdall-lite:v#.#.#`

You can then access heimdall-lite via: `localhost:8080`\*\*

## Project setup

```
Expand Down
6 changes: 0 additions & 6 deletions VERSION.md

This file was deleted.

78 changes: 39 additions & 39 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "heimdall-lite",
"version": "2.0.2",
"version": "2.0.3",
"description": "Heimdall Lite 2.0 is a JavaScript based security results viewer and review tool supporting multiple security results formats, such as: InSpec, SonarQube, OWASP-Zap and Fortify which you can load locally, from S3 and other data sources.",
"private": true,
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="./favicon.ico">
<title>heimdall-lite 2.0.0</title>
<title>heimdall-lite 2</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css">
</head>
Expand Down

0 comments on commit 4191ad1

Please sign in to comment.