Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM ruby:2.3.3

WORKDIR /tmp

COPY Gemfile /tmp/

RUN gem install bundle
RUN bundle update && bundle check && bundle install

WORKDIR /src

EXPOSE 4000

ENTRYPOINT jekyll serve --host 0.0.0.0
# ENTRYPOINT rake generate
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ website-src $ bundle install # in the site directory, install all of the require
$ rake generate # generate the site! (or you can use jekyll serve, but you need compass for the SASS)
```

### Using Docker for development

There is an included Dockerfile and docker-compose that will auto-generate a development container for this project.

To build the image : `docker build . -t ufsit/website:dev`

To run the development server : `docker-compose up -d`

To stop the development server : `docker-compose down`

## Creating a new post:

1. `rake new_post["post title"]`
Expand Down
15 changes: 15 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: '3'

services:
jekyll:
build: .
image: ufsit/website:dev
ports:
- 127.0.0.1:4000:4000
volumes:
- ./:/src
networks:
- dev

networks:
dev: