Run on Paas

This commit is contained in:
bandesz
2016-12-08 16:50:37 +00:00
parent 7853817f07
commit 10950bb8a6
20 changed files with 442 additions and 63 deletions

View File

@@ -36,6 +36,7 @@ RUN \
libcairo2-dev \
libmagickwand-dev \
ghostscript \
jq \
&& echo "Install nodejs" \
&& cd /tmp \
@@ -52,4 +53,12 @@ RUN \
awscli \
wheel
RUN \
echo "Install Cloud Foundry CLI" \
&& curl -sSL "https://cli.run.pivotal.io/stable?release=debian64&source=github" -o /tmp/cloudfoundry-cli.deb \
&& dpkg -i /tmp/cloudfoundry-cli.deb \
&& cf install-plugin -r CF-Community -f "autopilot" \
&& cf install-plugin -r CF-Community -f "blue-green-deploy" \
&& cf install-plugin -r CF-Community -f "antifreeze"
WORKDIR /var/project

View File

@@ -1,17 +1,23 @@
.DEFAULT_GOAL := help
SHELL := /bin/bash
DOCKER_IMAGE_TAG := $(shell cat VERSION)
.PHONY: help
help:
@cat $(MAKEFILE_LIST) | grep -E '^[a-zA-Z_-]+:.*?## .*$$' | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: build-build-image
build-build-image:
.PHONY: build
build:
docker build \
--pull \
--build-arg HTTP_PROXY="${HTTP_PROXY}" \
--build-arg HTTPS_PROXY="${HTTP_PROXY}" \
--build-arg NO_PROXY="${NO_PROXY}" \
-f Dockerfile-build \
-t govuk/notify-admin-builder \
-t govuk/notify-admin-builder:${DOCKER_IMAGE_TAG} \
.
.PHONY: bash
bash:
docker run -it --rm \
govuk/notify-admin-builder \
bash

1
docker/VERSION Normal file
View File

@@ -0,0 +1 @@
2