adding metadata tests back to integration tests (#185)

* adding metadata tests back to integration tests and fixing resulting bugs

* fix onbuild and default env

* removing old test files

* adding the ArgsEscaped boolean on CMD commands

* fix onbuild test

* ignore failing test until container-diff is fixed

* code comments

* adding todo to remove uncomment failing test
This commit is contained in:
Sharif Elgamal
2018-05-24 11:28:32 -07:00
committed by GitHub
parent 0881b7c320
commit 5e6b60f46e
16 changed files with 119 additions and 425 deletions
@@ -0,0 +1,8 @@
FROM gcr.io/google-appengine/debian9
EXPOSE 80
EXPOSE 81/udp
ENV protocol tcp
EXPOSE 82/$protocol
ENV port 83
EXPOSE $port/udp
EXPOSE $port/$protocol
@@ -0,0 +1,7 @@
FROM gcr.io/google-appengine/debian9
LABEL foo=bar
LABEL "baz"="bat"
ENV label1 "mylabel"
LABEL label1=$label1
LABEL multilabel1=multilabel1 multilabel2=multilabel2 multilabel3=multilabel3
@@ -0,0 +1,10 @@
FROM gcr.io/distroless/base:latest
COPY . .
FROM scratch as second
ENV foopath context/foo
COPY --from=0 $foopath context/b* /foo/
FROM gcr.io/distroless/base:latest
ARG file
COPY --from=second /foo $file
@@ -17,3 +17,5 @@ RUN useradd testuser
RUN groupadd testgroup
USER testuser:testgroup
RUN echo "hey" > /tmp/foo
USER testuser:1001
RUN echo "hey2" >> /tmp/foo