Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Add docker support #173

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.sass-cache
25 changes: 8 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,26 @@

[![Build Status](https://travis-ci.org/saglacio/saglac.io.svg?branch=master)](https://travis-ci.org/saglacio/saglac.io)

Website for [saglac.io](https://saglac.io). This is a basic [Jekyll](https://jekyllrb.com/) website :rocket:
The meetup website for [saglac.io](https://saglac.io) running on [Jekyll](https://jekyllrb.com/) :rocket:

## Prerequisites
## Development

On macOS, use [`brew`](https://brew.sh/index_fr) to install [`rbenv`](https://github.com/rbenv/rbenv).
### Requirements

```bash
brew install rbenv
# Set up rbenv in your shell.
rbenv init
# Install the ruby version needed for this project
rbenv install
```
- [docker](https://www.docker.com) and [docker-compose](https://docs.docker.com/compose/)

Restart your shell to make sure everything is correctly loaded.

## Development
### Getting started

Run:

```bash
gem install bundle
bundle install
bundle exec jekyll serve --watch
docker-compose up -d
docker-compose logs -f
```

Visit http://0.0.0.0:4000 ... :boom:!

## Add an event
### Add an event

Everything is in the `_data` directory, just send a [pull-request](https://github.com/saglacio/saglac.io/pulls)!

Expand Down
12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: '3'

services:
jekyll:
build:
context: .
dockerfile: docker/ruby/Dockerfile
command: ["bundle", "exec", "jekyll", "server", "--force_polling", "-H", "0.0.0.0", "-P", "4000"]
ports:
- 4000:4000
volumes:
- "./:/app"
7 changes: 7 additions & 0 deletions docker/ruby/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM ruby:2.4.2

WORKDIR /app

RUN gem install bundler
ADD ./Gemfile* ./
RUN bundle install