Skip to content

Commit

Permalink
Merge pull request #53 from matobet/docker
Browse files Browse the repository at this point in the history
Docker
  • Loading branch information
mareklibra authored Nov 3, 2016
2 parents 8f52e55 + 1bb40cb commit b1c9c21
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM node:4

COPY index.html /
COPY scripts /scripts
COPY config /config
COPY package.json /
RUN npm install
COPY src /src

ENTRYPOINT ["npm", "start"]
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ For early testing:
- `npm i`
- `HTTPS=true npm start`

**Quick run using Docker**

If you don't like to burden your system with all required Node.js dependencies,
a prebuilt docker image `matobet/userportal` is available for standalone usage with a running
oVirt engine instance.

Just specify where your oVirt engine is running and expose the port `3000` from the container. Example:

`docker run --rm -it -e ENGINE_URL=https://my.ovirt.instance/ovirt-engine/ -p 3000:3000 matobet/userportal`

**Production Build**

- `npm i && npm run build`
Expand Down

0 comments on commit b1c9c21

Please sign in to comment.