Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Commit

Permalink
Docker build without grunt
Browse files Browse the repository at this point in the history
  • Loading branch information
jsamsa committed Oct 12, 2016
1 parent 358cd12 commit 201d67e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
FROM node:5.7.1-slim
MAINTAINER Tim Levett <tim.levett@wisc.edu>
RUN npm install -g grunt-cli superstatic
RUN npm install -g superstatic

RUN apt-get update && apt-get install -y bzip2 && apt-get install -y git

# Add frame
COPY tools /build/tools
copy docs /build/docs
COPY uw-frame-components /build/uw-frame-components
COPY uw-frame-static /build/uw-frame-static
COPY package.json /build/
COPY Gruntfile.js /build/

# build frame
WORKDIR /build
RUN npm install
RUN npm run build-static
RUN cp -r /build/uw-frame-static/target /data

Expand Down
14 changes: 7 additions & 7 deletions docs/markdown/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ Run a local instance of uw-frame in a matter of minutes using the following step
1. Clone the repo: `git clone git@github.com:UW-Madison-DoIT/uw-frame.git`
- (optional) If you want to use a specific release, checkout its [tag](https://github.com/UW-Madison-DoIT/uw-frame/releases): `git checkout <tag>`
2. Run the following commands:
```
npm install -g grunt-cli
npm install
npm run static
```
```
npm install
npm run static:dev
```

3. Open a browser and go to the location specified in the build output


Expand All @@ -36,11 +36,11 @@ There are a couple ways you can create a static frame application.
1. Use the [npm package](https://www.npmjs.com/package/uw-frame). See the [widget creator](https://github.com/UW-Madison-DoIT/myuw-smart-widget-creator) app for an example that uses the package.
2. Use the Docker superstatic container:
- Build the docker container (`docker build -t myuw/frame .`) and run it to get the frame demo application
- Run `docker run -v myapp-dir:/data/my-app myuw/frame` to replace the my-app directory with a volume mounted from localhost
- Run `docker run -v myapp-dir:/data/my-app -p 8009:8009 myuw/frame` to replace the my-app directory with a volume mounted from localhost
- For deployment, create a Dockerfile like so:
```
FROM myuw/frame

COPY ./someapp /data/my-app
```
See the [Dockerfile](https://github.com/UW-Madison-DoIT/uw-frame/blob/master/Dockerfile) for specifics.
See the [Dockerfile](https://github.com/UW-Madison-DoIT/uw-frame/blob/master/Dockerfile) for specifics.

0 comments on commit 201d67e

Please sign in to comment.