From 2b021f67600ada5dee81bf9099d6d61713e780a9 Mon Sep 17 00:00:00 2001 From: Jean-Pierre Huynh Date: Tue, 18 Apr 2017 16:44:33 -0500 Subject: [PATCH] MAINTAINER deprecation follow up. Relates to #25466 Signed-off-by: Jean-Pierre Huynh rewritten from github.com/moby/moby 2c435ab8beba93509b957e4ac5e5801b86b5e8f1 --- .../dockerfile/parser/testfiles/ADD-COPY-with-JSON/Dockerfile | 2 +- frontend/dockerfile/parser/testfiles/ADD-COPY-with-JSON/result | 2 +- .../dockerfile/parser/testfiles/brimstone-consuldock/Dockerfile | 2 +- .../dockerfile/parser/testfiles/brimstone-consuldock/result | 2 +- frontend/dockerfile/parser/testfiles/docker/Dockerfile | 2 +- frontend/dockerfile/parser/testfiles/docker/result | 2 +- .../dockerfile/parser/testfiles/escape-after-comment/Dockerfile | 2 +- .../dockerfile/parser/testfiles/escape-after-comment/result | 2 +- .../dockerfile/parser/testfiles/escape-nonewline/Dockerfile | 2 +- frontend/dockerfile/parser/testfiles/escape-nonewline/result | 2 +- frontend/dockerfile/parser/testfiles/escape/Dockerfile | 2 +- frontend/dockerfile/parser/testfiles/escape/result | 2 +- frontend/dockerfile/parser/testfiles/escapes/Dockerfile | 2 +- frontend/dockerfile/parser/testfiles/escapes/result | 2 +- .../parser/testfiles/kartar-entrypoint-oddities/Dockerfile | 2 +- .../parser/testfiles/kartar-entrypoint-oddities/result | 2 +- .../parser/testfiles/lk4d4-the-edge-case-generator/Dockerfile | 2 +- .../parser/testfiles/lk4d4-the-edge-case-generator/result | 2 +- frontend/dockerfile/parser/testfiles/nginx/Dockerfile | 2 +- frontend/dockerfile/parser/testfiles/nginx/result | 2 +- frontend/dockerfile/parser/testfiles/znc/Dockerfile | 2 +- frontend/dockerfile/parser/testfiles/znc/result | 2 +- 22 files changed, 22 insertions(+), 22 deletions(-) diff --git a/frontend/dockerfile/parser/testfiles/ADD-COPY-with-JSON/Dockerfile b/frontend/dockerfile/parser/testfiles/ADD-COPY-with-JSON/Dockerfile index 00b444cb..035b4e8b 100644 --- a/frontend/dockerfile/parser/testfiles/ADD-COPY-with-JSON/Dockerfile +++ b/frontend/dockerfile/parser/testfiles/ADD-COPY-with-JSON/Dockerfile @@ -1,5 +1,5 @@ FROM ubuntu:14.04 -MAINTAINER Seongyeol Lim +LABEL maintainer Seongyeol Lim COPY . /go/src/github.com/docker/docker ADD . / diff --git a/frontend/dockerfile/parser/testfiles/ADD-COPY-with-JSON/result b/frontend/dockerfile/parser/testfiles/ADD-COPY-with-JSON/result index 85aee640..d1f71ecc 100644 --- a/frontend/dockerfile/parser/testfiles/ADD-COPY-with-JSON/result +++ b/frontend/dockerfile/parser/testfiles/ADD-COPY-with-JSON/result @@ -1,5 +1,5 @@ (from "ubuntu:14.04") -(maintainer "Seongyeol Lim ") +(label "maintainer" "Seongyeol Lim ") (copy "." "/go/src/github.com/docker/docker") (add "." "/") (add "null" "/") diff --git a/frontend/dockerfile/parser/testfiles/brimstone-consuldock/Dockerfile b/frontend/dockerfile/parser/testfiles/brimstone-consuldock/Dockerfile index 0364ef9d..9c0952ac 100644 --- a/frontend/dockerfile/parser/testfiles/brimstone-consuldock/Dockerfile +++ b/frontend/dockerfile/parser/testfiles/brimstone-consuldock/Dockerfile @@ -1,7 +1,7 @@ #escape=\ FROM brimstone/ubuntu:14.04 -MAINTAINER brimstone@the.narro.ws +LABEL maintainer brimstone@the.narro.ws # TORUN -v /var/run/docker.sock:/var/run/docker.sock diff --git a/frontend/dockerfile/parser/testfiles/brimstone-consuldock/result b/frontend/dockerfile/parser/testfiles/brimstone-consuldock/result index 227f748c..3b45db62 100644 --- a/frontend/dockerfile/parser/testfiles/brimstone-consuldock/result +++ b/frontend/dockerfile/parser/testfiles/brimstone-consuldock/result @@ -1,5 +1,5 @@ (from "brimstone/ubuntu:14.04") -(maintainer "brimstone@the.narro.ws") +(label "maintainer" "brimstone@the.narro.ws") (env "GOPATH" "/go") (entrypoint "/usr/local/bin/consuldock") (run "apt-get update \t&& dpkg -l | awk '/^ii/ {print $2}' > /tmp/dpkg.clean && apt-get install -y --no-install-recommends git golang ca-certificates && apt-get clean && rm -rf /var/lib/apt/lists \t&& go get -v github.com/brimstone/consuldock && mv $GOPATH/bin/consuldock /usr/local/bin/consuldock \t&& dpkg -l | awk '/^ii/ {print $2}' > /tmp/dpkg.dirty \t&& apt-get remove --purge -y $(diff /tmp/dpkg.clean /tmp/dpkg.dirty | awk '/^>/ {print $2}') \t&& rm /tmp/dpkg.* \t&& rm -rf $GOPATH") diff --git a/frontend/dockerfile/parser/testfiles/docker/Dockerfile b/frontend/dockerfile/parser/testfiles/docker/Dockerfile index b191f755..5153453f 100644 --- a/frontend/dockerfile/parser/testfiles/docker/Dockerfile +++ b/frontend/dockerfile/parser/testfiles/docker/Dockerfile @@ -24,7 +24,7 @@ # FROM ubuntu:14.04 -MAINTAINER Tianon Gravi (@tianon) +LABEL maintainer Tianon Gravi (@tianon) # Packaged dependencies RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq \ diff --git a/frontend/dockerfile/parser/testfiles/docker/result b/frontend/dockerfile/parser/testfiles/docker/result index 85011ed4..0c2f2299 100644 --- a/frontend/dockerfile/parser/testfiles/docker/result +++ b/frontend/dockerfile/parser/testfiles/docker/result @@ -1,5 +1,5 @@ (from "ubuntu:14.04") -(maintainer "Tianon Gravi (@tianon)") +(label "maintainer" "Tianon Gravi (@tianon)") (run "apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq \tapt-utils \taufs-tools \tautomake \tbtrfs-tools \tbuild-essential \tcurl \tdpkg-sig \tgit \tiptables \tlibapparmor-dev \tlibcap-dev \tmercurial \tpandoc \tparallel \treprepro \truby1.9.1 \truby1.9.1-dev \ts3cmd=1.1.0* \t--no-install-recommends") (run "git clone --no-checkout https://git.fedorahosted.org/git/lvm2.git /usr/local/lvm2 && cd /usr/local/lvm2 && git checkout -q v2_02_103") (run "cd /usr/local/lvm2 && ./configure --enable-static_link && make device-mapper && make install_device-mapper") diff --git a/frontend/dockerfile/parser/testfiles/escape-after-comment/Dockerfile b/frontend/dockerfile/parser/testfiles/escape-after-comment/Dockerfile index 6def7efd..18e9a474 100644 --- a/frontend/dockerfile/parser/testfiles/escape-after-comment/Dockerfile +++ b/frontend/dockerfile/parser/testfiles/escape-after-comment/Dockerfile @@ -4,6 +4,6 @@ # escape = ` FROM image -MAINTAINER foo@bar.com +LABEL maintainer foo@bar.com ENV GOPATH \ \go \ No newline at end of file diff --git a/frontend/dockerfile/parser/testfiles/escape-after-comment/result b/frontend/dockerfile/parser/testfiles/escape-after-comment/result index 21522a88..9ab119c4 100644 --- a/frontend/dockerfile/parser/testfiles/escape-after-comment/result +++ b/frontend/dockerfile/parser/testfiles/escape-after-comment/result @@ -1,3 +1,3 @@ (from "image") -(maintainer "foo@bar.com") +(label "maintainer" "foo@bar.com") (env "GOPATH" "\\go") diff --git a/frontend/dockerfile/parser/testfiles/escape-nonewline/Dockerfile b/frontend/dockerfile/parser/testfiles/escape-nonewline/Dockerfile index 08a8cc43..366ee3c3 100644 --- a/frontend/dockerfile/parser/testfiles/escape-nonewline/Dockerfile +++ b/frontend/dockerfile/parser/testfiles/escape-nonewline/Dockerfile @@ -2,6 +2,6 @@ # There is no white space line after the directives. This still succeeds, but goes # against best practices. FROM image -MAINTAINER foo@bar.com +LABEL maintainer foo@bar.com ENV GOPATH ` \go \ No newline at end of file diff --git a/frontend/dockerfile/parser/testfiles/escape-nonewline/result b/frontend/dockerfile/parser/testfiles/escape-nonewline/result index 21522a88..9ab119c4 100644 --- a/frontend/dockerfile/parser/testfiles/escape-nonewline/result +++ b/frontend/dockerfile/parser/testfiles/escape-nonewline/result @@ -1,3 +1,3 @@ (from "image") -(maintainer "foo@bar.com") +(label "maintainer" "foo@bar.com") (env "GOPATH" "\\go") diff --git a/frontend/dockerfile/parser/testfiles/escape/Dockerfile b/frontend/dockerfile/parser/testfiles/escape/Dockerfile index ef30414a..a515af15 100644 --- a/frontend/dockerfile/parser/testfiles/escape/Dockerfile +++ b/frontend/dockerfile/parser/testfiles/escape/Dockerfile @@ -1,6 +1,6 @@ #escape = ` FROM image -MAINTAINER foo@bar.com +LABEL maintainer foo@bar.com ENV GOPATH ` \go \ No newline at end of file diff --git a/frontend/dockerfile/parser/testfiles/escape/result b/frontend/dockerfile/parser/testfiles/escape/result index 21522a88..9ab119c4 100644 --- a/frontend/dockerfile/parser/testfiles/escape/result +++ b/frontend/dockerfile/parser/testfiles/escape/result @@ -1,3 +1,3 @@ (from "image") -(maintainer "foo@bar.com") +(label "maintainer" "foo@bar.com") (env "GOPATH" "\\go") diff --git a/frontend/dockerfile/parser/testfiles/escapes/Dockerfile b/frontend/dockerfile/parser/testfiles/escapes/Dockerfile index 1ffb17ef..03062394 100644 --- a/frontend/dockerfile/parser/testfiles/escapes/Dockerfile +++ b/frontend/dockerfile/parser/testfiles/escapes/Dockerfile @@ -1,5 +1,5 @@ FROM ubuntu:14.04 -MAINTAINER Erik \\Hollensbe \" +LABEL maintainer Erik \\Hollensbe \" RUN apt-get \update && \ apt-get \"install znc -y diff --git a/frontend/dockerfile/parser/testfiles/escapes/result b/frontend/dockerfile/parser/testfiles/escapes/result index 13e409cb..98e3e3b7 100644 --- a/frontend/dockerfile/parser/testfiles/escapes/result +++ b/frontend/dockerfile/parser/testfiles/escapes/result @@ -1,5 +1,5 @@ (from "ubuntu:14.04") -(maintainer "Erik \\\\Hollensbe \\\"") +(label "maintainer" "Erik \\\\Hollensbe \\\"") (run "apt-get \\update && apt-get \\\"install znc -y") (add "\\conf\\\\\"" "/.znc") (run "foo bar baz") diff --git a/frontend/dockerfile/parser/testfiles/kartar-entrypoint-oddities/Dockerfile b/frontend/dockerfile/parser/testfiles/kartar-entrypoint-oddities/Dockerfile index 35f9c24a..728ec9a7 100644 --- a/frontend/dockerfile/parser/testfiles/kartar-entrypoint-oddities/Dockerfile +++ b/frontend/dockerfile/parser/testfiles/kartar-entrypoint-oddities/Dockerfile @@ -1,5 +1,5 @@ FROM ubuntu:14.04 -MAINTAINER James Turnbull "james@example.com" +LABEL maintainer James Turnbull "james@example.com" ENV REFRESHED_AT 2014-06-01 RUN apt-get update RUN apt-get -y install redis-server redis-tools diff --git a/frontend/dockerfile/parser/testfiles/kartar-entrypoint-oddities/result b/frontend/dockerfile/parser/testfiles/kartar-entrypoint-oddities/result index b5ac6fe4..e774bc4f 100644 --- a/frontend/dockerfile/parser/testfiles/kartar-entrypoint-oddities/result +++ b/frontend/dockerfile/parser/testfiles/kartar-entrypoint-oddities/result @@ -1,5 +1,5 @@ (from "ubuntu:14.04") -(maintainer "James Turnbull \"james@example.com\"") +(label "maintainer" "James Turnbull \"james@example.com\"") (env "REFRESHED_AT" "2014-06-01") (run "apt-get update") (run "apt-get -y install redis-server redis-tools") diff --git a/frontend/dockerfile/parser/testfiles/lk4d4-the-edge-case-generator/Dockerfile b/frontend/dockerfile/parser/testfiles/lk4d4-the-edge-case-generator/Dockerfile index 188395fe..27f28cb9 100644 --- a/frontend/dockerfile/parser/testfiles/lk4d4-the-edge-case-generator/Dockerfile +++ b/frontend/dockerfile/parser/testfiles/lk4d4-the-edge-case-generator/Dockerfile @@ -1,6 +1,6 @@ FROM busybox:buildroot-2014.02 -MAINTAINER docker +LABEL maintainer docker ONBUILD RUN ["echo", "test"] ONBUILD RUN echo test diff --git a/frontend/dockerfile/parser/testfiles/lk4d4-the-edge-case-generator/result b/frontend/dockerfile/parser/testfiles/lk4d4-the-edge-case-generator/result index 6f7d57a3..8a499ff9 100644 --- a/frontend/dockerfile/parser/testfiles/lk4d4-the-edge-case-generator/result +++ b/frontend/dockerfile/parser/testfiles/lk4d4-the-edge-case-generator/result @@ -1,5 +1,5 @@ (from "busybox:buildroot-2014.02") -(maintainer "docker ") +(label "maintainer" "docker ") (onbuild (run "echo" "test")) (onbuild (run "echo test")) (onbuild (copy "." "/")) diff --git a/frontend/dockerfile/parser/testfiles/nginx/Dockerfile b/frontend/dockerfile/parser/testfiles/nginx/Dockerfile index bf8368e1..0a35e2c6 100644 --- a/frontend/dockerfile/parser/testfiles/nginx/Dockerfile +++ b/frontend/dockerfile/parser/testfiles/nginx/Dockerfile @@ -1,5 +1,5 @@ FROM ubuntu:14.04 -MAINTAINER Erik Hollensbe +LABEL maintainer Erik Hollensbe RUN apt-get update && apt-get install nginx-full -y RUN rm -rf /etc/nginx diff --git a/frontend/dockerfile/parser/testfiles/nginx/result b/frontend/dockerfile/parser/testfiles/nginx/result index 56ddb6f2..a895fadb 100644 --- a/frontend/dockerfile/parser/testfiles/nginx/result +++ b/frontend/dockerfile/parser/testfiles/nginx/result @@ -1,5 +1,5 @@ (from "ubuntu:14.04") -(maintainer "Erik Hollensbe ") +(label "maintainer" "Erik Hollensbe ") (run "apt-get update && apt-get install nginx-full -y") (run "rm -rf /etc/nginx") (add "etc" "/etc/nginx") diff --git a/frontend/dockerfile/parser/testfiles/znc/Dockerfile b/frontend/dockerfile/parser/testfiles/znc/Dockerfile index 3a4da6e9..626b126d 100644 --- a/frontend/dockerfile/parser/testfiles/znc/Dockerfile +++ b/frontend/dockerfile/parser/testfiles/znc/Dockerfile @@ -1,5 +1,5 @@ FROM ubuntu:14.04 -MAINTAINER Erik Hollensbe +LABEL maintainer Erik Hollensbe RUN apt-get update && apt-get install znc -y ADD conf /.znc diff --git a/frontend/dockerfile/parser/testfiles/znc/result b/frontend/dockerfile/parser/testfiles/znc/result index 5493b255..bfc7f651 100644 --- a/frontend/dockerfile/parser/testfiles/znc/result +++ b/frontend/dockerfile/parser/testfiles/znc/result @@ -1,5 +1,5 @@ (from "ubuntu:14.04") -(maintainer "Erik Hollensbe ") +(label "maintainer" "Erik Hollensbe ") (run "apt-get update && apt-get install znc -y") (add "conf" "/.znc") (cmd "/usr/bin/znc" "-f" "-r")