I have a Dockerfile for doing CI.
It uses the contents of a third party tarball which in-turn includes parts of Java Runtime (yes its ugly).
$ git clone xxx
$ cd xxx
$ docker build .
During execution the Dockerfile on ONE host requires ".../jre/.../server/libjvm.so" and executed on ANOTHER host requires ".../jre/.../client/libjvm.so" from that tarball.
The Docker version is everywhere 1.7.1 Nothing is ADDED to the container besides the git repo folder (./) and the tarball. How is this possible? Are there any shared environment variables implicitly passed to docker?
This is how the Dockerfile looks like:
FROM ubuntu:14.04
...
WORKDIR /
RUN wget http://SOME-URL TOOL-PACKAGE
RUN tar xf TOOL-PACKAGE
...
# setup some envs
ENV
# extend PATH
ENV PATH $PATH: ...
...
COPY ./ src
WORKDIR src
# use tool to generate some input files
RUN SOME-TOOL-BINARY-WHICH-USES-JRE
# continue build with make
RUN make