Add new unit test case for ENV substitution · docker-java/docker-java@e6666f8 · GitHub
Skip to content

Commit e6666f8

Browse files
committed
Add new unit test case for ENV substitution
1 parent 5cbefec commit e6666f8

5 files changed

Lines changed: 50 additions & 0 deletions

File tree

src/test/java/com/github/dockerjava/client/command/BuildImageCmdTest.java

Lines changed: 11 additions & 0 deletions
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM ubuntu
2+
3+
# Copy testrun.sh files into the container
4+
5+
ENV variable abc123
6+
ADD ./testrun.sh /tmp/
7+
ADD ./subst-file-$variable.txt /tmp/
8+
COPY ./subst-file-2-${variable}.txt /tmp/
9+
RUN cp /tmp/testrun.sh /usr/local/bin/ && chmod +x /usr/local/bin/testrun.sh
10+
11+
CMD ["testrun.sh"]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Old File
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Old File
Lines changed: 26 additions & 0 deletions

0 commit comments

Comments
 (0)