Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # This Dockerfile is used to build a filesystem environment containing | 1 # This Dockerfile is used to build a filesystem environment containing |
| 2 # binaries and required files for Blimp Engine test and tests for dependencies | 2 # binaries and required files for Blimp Engine test and tests for dependencies |
| 3 # of Blimp Engine. It is built on the same base image that is used to run the | 3 # of Blimp Engine. It is built on the same base image that is used to run the |
| 4 # Engine itself. | 4 # Engine itself. |
| 5 FROM base:latest | 5 FROM base:latest |
|
maniscalco
2016/07/18 16:01:04
Can you please attached an example of the tar file
Jess
2016/07/18 17:19:14
Sure. Directories with large expansions are summar
| |
| 6 | 6 |
| 7 RUN mkdir -p /out/test/ | 7 RUN mkdir -p /blimp/out/test |
|
maniscalco
2016/07/18 16:01:04
I realize we need to mkdir /blimp, but do we need
Jess
2016/07/18 17:19:14
Done.
| |
| 8 | 8 |
| 9 # The glob below expands to all files, but does not add directories | 9 RUN useradd -ms /bin/bash blimp_user |
| 10 # recursively. | |
| 11 # Test binaries assume src directory is 2 levels down. While this behavior can | |
| 12 # be changed with flags, the directory structure is set up to minimize | |
| 13 # potential problems with initial integration. | |
| 14 ADD * /out/test/ | |
| 15 | 10 |
| 16 RUN chown -R blimp_user /out/test/ | 11 # Copy complete docker root dir into /blimp directory. |
|
maniscalco
2016/07/18 16:01:04
Can you change this to explain why we're copying t
Jess
2016/07/18 17:19:14
Done.
| |
| 12 ADD . /blimp/ | |
| 13 | |
| 14 RUN chown -R blimp_user /blimp | |
| 17 | 15 |
| 18 USER blimp_user | 16 USER blimp_user |
| OLD | NEW |