Fully qualify images in dockerfile tests (#257)

This commit is contained in:
priyawadhwa 2018-07-25 17:56:17 -07:00 committed by GitHub
parent acf0688195
commit ca5069271c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 17 additions and 17 deletions

View File

@ -1,4 +1,4 @@
FROM gcr.io/google-appengine/debian9:latest
FROM gcr.io/google-appengine/debian9@sha256:1d6a9a6d106bd795098f60f4abb7083626354fa6735e81743c7f8cfca11259f0
ENV dir /tmp/dir/
ONBUILD RUN echo "onbuild" > /tmp/onbuild
ONBUILD RUN mkdir $dir

View File

@ -1,4 +1,4 @@
FROM gcr.io/google-appengine/debian9:latest
FROM gcr.io/google-appengine/debian9@sha256:1d6a9a6d106bd795098f60f4abb7083626354fa6735e81743c7f8cfca11259f0
# First, try adding some regular files
ADD context/foo foo
ADD context/foo /foodir/

View File

@ -1,4 +1,4 @@
FROM alpine:3.7
FROM alpine@sha256:5ce5f501c457015c4b91f91a15ac69157d9b06f1a75cf9107bf2b62e0843983a
COPY context/foo foo
COPY context/foo /foodir/
COPY context/bar/b* bar/

View File

@ -1,4 +1,4 @@
FROM alpine:3.7
FROM alpine@sha256:5ce5f501c457015c4b91f91a15ac69157d9b06f1a75cf9107bf2b62e0843983a
COPY context/foo foo
COPY context/foo /foodir/
COPY context/bar/b* bar/

View File

@ -1,4 +1,4 @@
FROM alpine:3.7
FROM alpine@sha256:5ce5f501c457015c4b91f91a15ac69157d9b06f1a75cf9107bf2b62e0843983a
COPY context/foo foo
COPY context/foo /foodir/
COPY context/bar/b* bar/

View File

@ -1,4 +1,4 @@
FROM gcr.io/google-appengine/debian9
FROM gcr.io/google-appengine/debian9@sha256:1d6a9a6d106bd795098f60f4abb7083626354fa6735e81743c7f8cfca11259f0
ENV hey hey
ENV PATH /usr/local
ENV hey hello

View File

@ -1,4 +1,4 @@
FROM gcr.io/google-appengine/debian9
FROM gcr.io/google-appengine/debian9@sha256:1d6a9a6d106bd795098f60f4abb7083626354fa6735e81743c7f8cfca11259f0
EXPOSE 80
EXPOSE 81/udp
ENV protocol tcp

View File

@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
FROM gcr.io/google-appengine/debian9:latest
FROM gcr.io/google-appengine/debian9@sha256:1d6a9a6d106bd795098f60f4abb7083626354fa6735e81743c7f8cfca11259f0

View File

@ -1,4 +1,4 @@
FROM gcr.io/google-appengine/debian9
FROM gcr.io/google-appengine/debian9@sha256:1d6a9a6d106bd795098f60f4abb7083626354fa6735e81743c7f8cfca11259f0
LABEL foo=bar
LABEL "baz"="bat"
ENV label1 "mylabel"

View File

@ -1,4 +1,4 @@
FROM gcr.io/distroless/base:latest
FROM gcr.io/distroless/base@sha256:628939ac8bf3f49571d05c6c76b8688cb4a851af6c7088e599388259875bde20
CMD ["command", "one"]
CMD ["command", "two"]
CMD echo "hello"

View File

@ -1,4 +1,4 @@
FROM gcr.io/distroless/base:latest as base
FROM gcr.io/distroless/base@sha256:628939ac8bf3f49571d05c6c76b8688cb4a851af6c7088e599388259875bde20 as base
COPY . .
FROM scratch as second

View File

@ -1,3 +1,3 @@
FROM busybox
FROM busybox@sha256:1bd6df27274fef1dd36eb529d0f4c8033f61c675d6b04213dd913f902f7cafb5
ADD context/tars /tmp/tars
RUN mv /tmp/tars /foo

View File

@ -1,2 +1,2 @@
FROM busybox
FROM busybox@sha256:1bd6df27274fef1dd36eb529d0f4c8033f61c675d6b04213dd913f902f7cafb5
RUN echo "hey" > /hey

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
FROM gcr.io/google-appengine/debian9
FROM gcr.io/google-appengine/debian9@sha256:1d6a9a6d106bd795098f60f4abb7083626354fa6735e81743c7f8cfca11259f0
RUN echo "hey" > /etc/foo
RUN echo "baz" > /etc/baz
RUN cp /etc/baz /etc/bar

View File

@ -15,6 +15,6 @@
# Test to make sure the executor builds an image correctly
# when no files are changed
FROM gcr.io/google-appengine/debian9
FROM gcr.io/google-appengine/debian9@sha256:1d6a9a6d106bd795098f60f4abb7083626354fa6735e81743c7f8cfca11259f0
RUN echo "hey"
MAINTAINER kaniko

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
FROM gcr.io/google-appengine/debian9
FROM gcr.io/google-appengine/debian9@sha256:1d6a9a6d106bd795098f60f4abb7083626354fa6735e81743c7f8cfca11259f0
RUN useradd testuser
RUN groupadd testgroup
USER testuser:testgroup

View File

@ -1,4 +1,4 @@
FROM gcr.io/google-appengine/debian9
FROM gcr.io/google-appengine/debian9@sha256:1d6a9a6d106bd795098f60f4abb7083626354fa6735e81743c7f8cfca11259f0
RUN mkdir /foo
RUN echo "hello" > /foo/hey
VOLUME /foo/bar /tmp