You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
319 B

  1. all: build push
  2. up: build start
  3. PREFIX = redbrick
  4. IMAGE = gollum
  5. TAG = latest
  6. DIR := ${CURDIR}
  7. build:
  8. docker build --pull -t $(PREFIX)/$(IMAGE):$(TAG) .
  9. push:
  10. docker push $(PREFIX)/$(IMAGE):$(TAG)
  11. start:
  12. @echo 'Starting wiki on localhost:9292'
  13. docker run -v $(DIR):/wiki -p 9292:9292 $(PREFIX)/$(IMAGE):$(TAG)