Merge ~barryprice/charm-k8s-wordpress/+git/wordpress-k8s-image-builder:master into ~wordpress-charmers/charm-k8s-wordpress/+git/wordpress-k8s-image-builder:master

Proposed by Barry Price
Status: Merged
Approved by: Barry Price
Approved revision: c52d317b55cd8845f7307e464215d6434e6838ac
Merged at revision: 625248ee904c67b6fcaa2640476d54d7088c5bc9
Proposed branch: ~barryprice/charm-k8s-wordpress/+git/wordpress-k8s-image-builder:master
Merge into: ~wordpress-charmers/charm-k8s-wordpress/+git/wordpress-k8s-image-builder:master
Diff against target: 42 lines (+15/-5)
2 files modified
Dockerfile (+7/-2)
Makefile (+8/-3)
Reviewer Review Type Date Requested Status
Tom Haddon Approve
Canonical IS Reviewers Pending
Review via email: mp+377851@code.launchpad.net

Commit message

Add maintainer/build date labels, make tags more sensible

To post a comment you must log in.
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

Revision history for this message
Barry Price (barryprice) wrote :
Revision history for this message
Tom Haddon (mthaddon) wrote :

Approved with one comment about adding a comment

review: Approve
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Change successfully merged at revision 625248ee904c67b6fcaa2640476d54d7088c5bc9

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/Dockerfile b/Dockerfile
index a6bed91..d9d9d67 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,7 +1,12 @@
1FROM ubuntu:bionic1FROM ubuntu:bionic
22
3ARG http_proxy3LABEL maintainer="wordpress-charmers@lists.launchpad.net"
4ARG https_proxy4
5# HTTPS_PROXY used when we RUN curl to download Wordpress itself
6ARG HTTPS_PROXY
7ARG BUILD_DATE
8
9LABEL org.label-schema.build-date=$BUILD_DATE
510
6# Avoid interactive prompts11# Avoid interactive prompts
7RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections12RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
diff --git a/Makefile b/Makefile
index d3446e7..df973a9 100644
--- a/Makefile
+++ b/Makefile
@@ -2,10 +2,15 @@ build: lint deps
2 @echo "Fetching plugins and themes."2 @echo "Fetching plugins and themes."
3 @tox -e fetch3 @tox -e fetch
4 @echo "Building the image."4 @echo "Building the image."
5 @docker build . -t wordpress:latest --build-arg HTTP_PROXY=$(HTTP_PROXY) --build-arg HTTPS_PROXY=$(HTTPS_PROXY)5 @docker build \
6 --no-cache=true \
7 --build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \
8 --build-arg HTTPS_PROXY=$(HTTPS_PROXY) \
9 -t wordpress:bionic-latest \
10 .
6 @echo "Pushing to the prod-is-external registry."11 @echo "Pushing to the prod-is-external registry."
7 @docker tag wordpress:latest prod-is-external.docker-registry.canonical.com/wordpress:latest12 @docker tag wordpress:bionic-latest prod-is-external.docker-registry.canonical.com/wordpress:bionic-latest
8 @docker push prod-is-external.docker-registry.canonical.com/wordpress:latest13 @docker push prod-is-external.docker-registry.canonical.com/wordpress:bionic-latest
914
10deps:15deps:
11 @echo "Checking dependencies are present"16 @echo "Checking dependencies are present"

Subscribers

People subscribed via source and target branches