Commit 86af2a38 authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[TASK] Prepare php54 and php53 Makefile

parent 1a9dc8aa
...@@ -6,6 +6,20 @@ FULLVERSION_BASEIMAGE=$(MAJOR_BASEIMAGE).$(MINOR_BASEIMAGE).$(PATCHLEVEL_BASEIMA ...@@ -6,6 +6,20 @@ FULLVERSION_BASEIMAGE=$(MAJOR_BASEIMAGE).$(MINOR_BASEIMAGE).$(PATCHLEVEL_BASEIMA
SHORTVERSION_BASEIMAGE=$(MAJOR_BASEIMAGE).$(MINOR_BASEIMAGE) SHORTVERSION_BASEIMAGE=$(MAJOR_BASEIMAGE).$(MINOR_BASEIMAGE)
NAME_PHP53 = typo3gmbh/php53
MAJOR_PHP53=1
MINOR_PHP53=0
PATCHLEVEL_PHP53=0
FULLVERSION_PHP53=$(MAJOR_PHP53).$(MINOR_PHP53).$(PATCHLEVEL_PHP53)
SHORTVERSION_PHP53=$(MAJOR_PHP53).$(MINOR_PHP53)
NAME_PHP54 = typo3gmbh/php54
MAJOR_PHP54=1
MINOR_PHP54=0
PATCHLEVEL_PHP54=0
FULLVERSION_PHP54=$(MAJOR_PHP54).$(MINOR_PHP54).$(PATCHLEVEL_PHP54)
SHORTVERSION_PHP54=$(MAJOR_PHP54).$(MINOR_PHP54)
NAME_PHP55 = typo3gmbh/php55 NAME_PHP55 = typo3gmbh/php55
MAJOR_PHP55=1 MAJOR_PHP55=1
MINOR_PHP55=0 MINOR_PHP55=0
...@@ -69,40 +83,56 @@ SHORTVERSION_BAMBOO_PHP71=$(MAJOR_BAMBOO_PHP71).$(MINOR_BAMBOO_PHP71) ...@@ -69,40 +83,56 @@ SHORTVERSION_BAMBOO_PHP71=$(MAJOR_BAMBOO_PHP71).$(MINOR_BAMBOO_PHP71)
all \ all \
build \ build \
build_baseimage \ build_baseimage \
build_php53 \
build_php54 \
build_php55 \ build_php55 \
build_php56 \ build_php56 \
build_php70 \ build_php70 \
build_php71 \ build_php71 \
build_bamboo_php53 \
build_bamboo_php54 \
build_bamboo_php55 \ build_bamboo_php55 \
build_bamboo_php56 \ build_bamboo_php56 \
build_bamboo_php70 \ build_bamboo_php70 \
build_bamboo_php71 \ build_bamboo_php71 \
release \ release \
release_baseimage \ release_baseimage \
release_php53 \
release_php54 \
release_php55 \ release_php55 \
release_php56 \ release_php56 \
release_php70 \ release_php70 \
release_php71 \ release_php71 \
release_bamboo_php53 \
release_bamboo_php54 \
release_bamboo_php55 \ release_bamboo_php55 \
release_bamboo_php56 \ release_bamboo_php56 \
release_bamboo_php70 \ release_bamboo_php70 \
release_bamboo_php71 \ release_bamboo_php71 \
clean \ clean \
clean_baseimage \ clean_baseimage \
clean_php53 \
clean_php54 \
clean_php55 \ clean_php55 \
clean_php56 \ clean_php56 \
clean_php70 \ clean_php70 \
clean_php71 \ clean_php71 \
clean_bamboo_php53 \
clean_bamboo_php54 \
clean_bamboo_php55 \ clean_bamboo_php55 \
clean_bamboo_php56 \ clean_bamboo_php56 \
clean_bamboo_php70 \ clean_bamboo_php70 \
clean_bamboo_php71 \ clean_bamboo_php71 \
clean_images \ clean_images \
clean_images_baseimage \ clean_images_baseimage \
clean_images_php53 \
clean_images_php54 \
clean_images_php55 \ clean_images_php55 \
clean_images_php56 \ clean_images_php56 \
clean_images_php70 \ clean_images_php70 \
clean_images_php71 \ clean_images_php71 \
clean_images_bamboo_php53 \
clean_images_bamboo_php54 \
clean_images_bamboo_php55 \ clean_images_bamboo_php55 \
clean_images_bamboo_php56 \ clean_images_bamboo_php56 \
clean_images_bamboo_php70 \ clean_images_bamboo_php70 \
...@@ -116,10 +146,14 @@ all: \ ...@@ -116,10 +146,14 @@ all: \
build: \ build: \
build_baseimage \ build_baseimage \
build_php53 \
build_php54 \
build_php55 \ build_php55 \
build_php56 \ build_php56 \
build_php70 \ build_php70 \
build_php71 \ build_php71 \
build_bamboo_php53 \
build_bamboo_php54 \
build_bamboo_php55 \ build_bamboo_php55 \
build_bamboo_php56 \ build_bamboo_php56 \
build_bamboo_php70 \ build_bamboo_php70 \
...@@ -128,10 +162,14 @@ build: \ ...@@ -128,10 +162,14 @@ build: \
release: \ release: \
release_baseimage \ release_baseimage \
release_php53 \
release_php54 \
release_php55 \ release_php55 \
release_php56 \ release_php56 \
release_php70 \ release_php70 \
release_php71 \ release_php71 \
release_bamboo_php53 \
release_bamboo_php54 \
release_bamboo_php55 \ release_bamboo_php55 \
release_bamboo_php56 \ release_bamboo_php56 \
release_bamboo_php70 \ release_bamboo_php70 \
...@@ -140,10 +178,14 @@ release: \ ...@@ -140,10 +178,14 @@ release: \
clean: \ clean: \
clean_baseimage \ clean_baseimage \
clean_php53 \
clean_php54 \
clean_php55 \ clean_php55 \
clean_php56 \ clean_php56 \
clean_php70 \ clean_php70 \
clean_php71 \ clean_php71 \
clean_bamboo_php53 \
clean_bamboo_php54 \
clean_bamboo_php55 \ clean_bamboo_php55 \
clean_bamboo_php56 \ clean_bamboo_php56 \
clean_bamboo_php70 \ clean_bamboo_php70 \
...@@ -152,10 +194,14 @@ clean: \ ...@@ -152,10 +194,14 @@ clean: \
clean_images: \ clean_images: \
clean_images_baseimage \ clean_images_baseimage \
clean_images_php53 \
clean_images_php54 \
clean_images_php55 \ clean_images_php55 \
clean_images_php56 \ clean_images_php56 \
clean_images_php70 \ clean_images_php70 \
clean_images_php71 \ clean_images_php71 \
clean_images_bamboo_php53 \
clean_images_bamboo_php54 \
clean_images_bamboo_php55 \ clean_images_bamboo_php55 \
clean_images_bamboo_php56 \ clean_images_bamboo_php56 \
clean_images_bamboo_php70 \ clean_images_bamboo_php70 \
...@@ -187,6 +233,54 @@ clean_images_baseimage: ...@@ -187,6 +233,54 @@ clean_images_baseimage:
build_php53:
rm -rf build_php53
cp -pR php53 build_php53
docker build -t $(NAME_PHP53):$(FULLVERSION_PHP53) build_php53
docker tag $(NAME_PHP53):$(FULLVERSION_PHP53) $(NAME_PHP53):$(SHORTVERSION_PHP53)
release_php53:
@if ! docker images $(NAME_PHP53) | awk '{ print $$2 }' | grep -q -F $(FULLVERSION_PHP53); then \
echo "$(NAME_PHP53) version $(FULLVERSION_PHP53) is not yet built. Please run 'make build'"; false; \
fi
docker tag $(NAME_PHP53):$(FULLVERSION_PHP53) $(NAME_PHP53):latest
docker push $(NAME_PHP53):latest
docker push $(NAME_PHP53):$(FULLVERSION_PHP53)
docker push $(NAME_PHP53):$(SHORTVERSION_PHP53)
clean_php53:
rm -rf build_php53
clean_images_php53:
docker rmi $(NAME_PHP53):latest || true
docker rmi $(NAME_PHP53):$(SHORTVERSION_PHP53) || true
docker rmi $(NAME_PHP53):$(FULLVERSION_PHP53) || true
build_php54:
rm -rf build_php54
cp -pR php54 build_php54
docker build -t $(NAME_PHP54):$(FULLVERSION_PHP54) build_php54
docker tag $(NAME_PHP54):$(FULLVERSION_PHP54) $(NAME_PHP54):$(SHORTVERSION_PHP54)
release_php54:
@if ! docker images $(NAME_PHP54) | awk '{ print $$2 }' | grep -q -F $(FULLVERSION_PHP54); then \
echo "$(NAME_PHP54) version $(FULLVERSION_PHP54) is not yet built. Please run 'make build'"; false; \
fi
docker tag $(NAME_PHP54):$(FULLVERSION_PHP54) $(NAME_PHP54):latest
docker push $(NAME_PHP54):latest
docker push $(NAME_PHP54):$(FULLVERSION_PHP54)
docker push $(NAME_PHP54):$(SHORTVERSION_PHP54)
clean_php54:
rm -rf build_php54
clean_images_php54:
docker rmi $(NAME_PHP54):latest || true
docker rmi $(NAME_PHP54):$(SHORTVERSION_PHP54) || true
docker rmi $(NAME_PHP54):$(FULLVERSION_PHP54) || true
build_php55: build_php55:
rm -rf build_php55 rm -rf build_php55
cp -pR php55 build_php55 cp -pR php55 build_php55
...@@ -284,6 +378,56 @@ clean_images_php71: ...@@ -284,6 +378,56 @@ clean_images_php71:
build_bamboo_php53:
rm -rf build_bamboo-php53
cp -pR bamboo-remote-agent-php53 build_bamboo-php53
echo system.imageVersion=$(FULLVERSION_BAMBOO_PHP53) >> build_bamboo-php53/config/bamboo/bamboo-capabilities.properties
docker build -t $(NAME_BAMBOO_PHP53):$(FULLVERSION_BAMBOO_PHP53) build_bamboo-php53
release_bamboo_php53:
@if ! docker images $(NAME_BAMBOO_PHP53) | awk '{ print $$2 }' | grep -q -F $(FULLVERSION_BAMBOO_PHP53); then \
echo "$(NAME_BAMBOO_PHP53) version $(FULLVERSION_BAMBOO_PHP53) is not yet built. Please run 'make build'"; false; \
fi
docker tag $(NAME_BAMBOO_PHP53):$(FULLVERSION_BAMBOO_PHP53) $(NAME_BAMBOO_PHP53):$(SHORTVERSION_BAMBOO_PHP53)
docker tag $(NAME_BAMBOO_PHP53):$(FULLVERSION_BAMBOO_PHP53) $(NAME_BAMBOO_PHP53):latest
docker push $(NAME_BAMBOO_PHP53):latest
docker push $(NAME_BAMBOO_PHP53):$(FULLVERSION_BAMBOO_PHP53)
docker push $(NAME_BAMBOO_PHP53):$(SHORTVERSION_BAMBOO_PHP53)
clean_bamboo_php53:
rm -rf build_bamboo-php53
clean_images_bamboo_php53:
docker rmi $(NAME_BAMBOO_PHP53):latest || true
docker rmi $(NAME_BAMBOO_PHP53):$(SHORTVERSION_BAMBOO_PHP53) || true
docker rmi $(NAME_BAMBOO_PHP53):$(FULLVERSION_BAMBOO_PHP53) || true
build_bamboo_php54:
rm -rf build_bamboo-php54
cp -pR bamboo-remote-agent-php54 build_bamboo-php54
echo system.imageVersion=$(FULLVERSION_BAMBOO_PHP54) >> build_bamboo-php54/config/bamboo/bamboo-capabilities.properties
docker build -t $(NAME_BAMBOO_PHP54):$(FULLVERSION_BAMBOO_PHP54) build_bamboo-php54
release_bamboo_php54:
@if ! docker images $(NAME_BAMBOO_PHP54) | awk '{ print $$2 }' | grep -q -F $(FULLVERSION_BAMBOO_PHP54); then \
echo "$(NAME_BAMBOO_PHP54) version $(FULLVERSION_BAMBOO_PHP54) is not yet built. Please run 'make build'"; false; \
fi
docker tag $(NAME_BAMBOO_PHP54):$(FULLVERSION_BAMBOO_PHP54) $(NAME_BAMBOO_PHP54):$(SHORTVERSION_BAMBOO_PHP54)
docker tag $(NAME_BAMBOO_PHP54):$(FULLVERSION_BAMBOO_PHP54) $(NAME_BAMBOO_PHP54):latest
docker push $(NAME_BAMBOO_PHP54):latest
docker push $(NAME_BAMBOO_PHP54):$(FULLVERSION_BAMBOO_PHP54)
docker push $(NAME_BAMBOO_PHP54):$(SHORTVERSION_BAMBOO_PHP54)
clean_bamboo_php54:
rm -rf build_bamboo-php54
clean_images_bamboo_php54:
docker rmi $(NAME_BAMBOO_PHP54):latest || true
docker rmi $(NAME_BAMBOO_PHP54):$(SHORTVERSION_BAMBOO_PHP54) || true
docker rmi $(NAME_BAMBOO_PHP54):$(FULLVERSION_BAMBOO_PHP54) || true
build_bamboo_php55: build_bamboo_php55:
rm -rf build_bamboo-php55 rm -rf build_bamboo-php55
cp -pR bamboo-remote-agent-php55 build_bamboo-php55 cp -pR bamboo-remote-agent-php55 build_bamboo-php55
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment