Browse Source

add instructions

master
Cian Butler 3 years ago
parent
commit
9804d77345
Signed by: butlerx GPG Key ID: B37CA765BAA89170
3 changed files with 12 additions and 5 deletions
  1. +1
    -1
      Dockerfile
  2. +3
    -3
      Makefile
  3. +8
    -1
      README.md

+ 1
- 1
Dockerfile View File

@@ -1,5 +1,5 @@
FROM ruby:alpine
RUN apk --no-cache --update add \
RUN apk --no-cache --update add git \
icu-dev \
ruby-dev \
libstdc++ \


+ 3
- 3
Makefile View File

@@ -5,8 +5,7 @@ PREFIX = redbrick
IMAGE = gollum
TAG = latest

mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
current_dir := $(notdir $(patsubst %/,%,$(dir $(mkfile_path))))
DIR := ${CURDIR}

build:
docker build --pull -t $(PREFIX)/$(IMAGE):$(TAG) .
@@ -15,4 +14,5 @@ push:
docker push $(PREFIX)/$(IMAGE):$(TAG)

start:
docker run -v $(current_dir):/wiki -p 4567:80 $(PREFIX)/$(IMAGE):$(TAG)
@echo 'Starting wiki on localhost:4567'
docker run -v $(DIR):/wiki -p 4567:80 $(PREFIX)/$(IMAGE):$(TAG)

+ 8
- 1
README.md View File

@@ -1,2 +1,9 @@
# wiki
# Redbrick Wiki

Migration from Redbrick media wiki to git and markdown based wiki

## To Use

To Build run `make` this build and publish the image.

To Start run `make up` this will build and start the container.

Loading…
Cancel
Save