mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-19 02:10:35 +02:00
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:
@@ -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
|
||||
Reference in New Issue
Block a user