2017-11-07 02:29:48 +00:00
|
|
|
server_version=6.2.2
|
2016-11-21 05:44:12 +00:00
|
|
|
|
2017-01-03 07:08:34 +00:00
|
|
|
base_image=seafileltd/base:16.04
|
|
|
|
base_image_squashed=seafileltd/base:16.04-squashed
|
2017-01-03 02:34:32 +00:00
|
|
|
server_image=seafileltd/seafile:$(server_version)
|
2016-11-11 04:54:47 +00:00
|
|
|
|
|
|
|
all:
|
2016-11-21 05:44:12 +00:00
|
|
|
@echo
|
|
|
|
@echo Pleaes use '"make base"' or '"make server"' or '"make push"'.
|
|
|
|
@echo
|
2016-11-11 04:54:47 +00:00
|
|
|
|
|
|
|
base:
|
2016-11-21 05:44:12 +00:00
|
|
|
cd base && docker build -t $(base_image) .
|
|
|
|
|
2016-11-25 06:56:23 +00:00
|
|
|
squash-base:
|
2016-11-27 14:27:09 +00:00
|
|
|
docker-squash --tag $(base_image_squashed) $(base_image) --from-layer phusion/baseimage:0.9.19
|
2016-11-25 06:56:23 +00:00
|
|
|
docker tag $(base_image_squashed) $(base_image)
|
|
|
|
|
2016-11-25 07:12:22 +00:00
|
|
|
server:
|
|
|
|
cd seafile && docker build -t $(server_image) .
|
|
|
|
|
2016-12-21 07:53:07 +00:00
|
|
|
push-base:
|
2016-11-21 05:44:12 +00:00
|
|
|
docker push $(base_image)
|
2016-12-21 07:53:07 +00:00
|
|
|
|
|
|
|
push-server:
|
2016-11-21 05:44:12 +00:00
|
|
|
docker push $(server_image)
|
2016-11-11 04:54:47 +00:00
|
|
|
|
2016-12-21 07:53:07 +00:00
|
|
|
push: push-base push-server
|
|
|
|
|
|
|
|
.PHONY: base server push push-base push-server
|