-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (34 loc) · 933 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Build rootfs for composer
TAG = 1.6.4
release: TAG=$(shell curl --silent "https://api.github.com/repos/composer/composer/releases/latest" | docker run --rm -i imega/jq -r '.tag_name')
release: build
@docker pull imega/composer:${TAG} || ( \
docker push imega/composer:$(TAG) && \
docker push imega/composer:latest \
)
build: buildfs test
@docker build -t imega/composer:$(TAG) .
@docker tag imega/composer:$(TAG) imega/composer:latest
buildfs:
@docker run --rm \
-v $(CURDIR)/runner:/runner \
-v $(CURDIR)/build:/build \
-e TAG=$(TAG) \
imega/base-builder:1.6.0 \
--packages=" \
busybox@main \
git \
php7 \
php7-common \
php7-phar \
php7-openssl \
php7-mbstring \
php7-json \
php7-zlib \
php7-dom \
openssh-client \
" \
-d="curl"
test:
@docker build -t imega/composer:test .
@docker run --rm -v $(CURDIR):/data imega/composer:test install -vvv --ignore-platform-reqs