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 |
| 6 | 6 |
| 7 RUN mkdir -p /out/test/ | 7 RUN mkdir -p /test/out/test |
| 8 RUN mkdir /test/base /test/blimp /test/net | |
| 8 | 9 |
| 9 # The glob below expands to all files, but does not add directories | 10 RUN useradd -ms /bin/bash blimp_user |
| 10 # recursively. | 11 |
| 12 # Ensure directories end up at expected levels. | |
| 13 # Docker copies directory CONTENTS rather than the directories themselves. | |
|
Jess
2016/07/15 20:26:59
Note for reviewers. This is the point of confusion
maniscalco
2016/07/15 20:54:01
I want to understand what's the desired directory
Sriram
2016/07/15 22:23:09
+1 asked the same question offline to Jess. I don'
Jess
2016/07/15 22:45:08
Resolved issues from here:
Use ADD . /blimp for sr
| |
| 14 ADD base /test/base | |
| 15 ADD blimp /test/blimp | |
| 16 ADD net /test/net | |
| 17 | |
| 11 # Test binaries assume src directory is 2 levels down. While this behavior can | 18 # 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 | 19 # be changed with flags, the directory structure is set up to minimize |
| 13 # potential problems with initial integration. | 20 # potential problems with initial integration. |
| 14 ADD * /out/test/ | 21 # The source glob here captures test binaries, required shared binaries (.so) |
| 22 # and .dat files at the bundle root without recopying directory contents. | |
| 23 ADD *tests *.* /test/out/test/ | |
| 15 | 24 |
| 16 RUN chown -R blimp_user /out/test/ | 25 RUN chown -R blimp_user /test |
| 17 | 26 |
| 18 USER blimp_user | 27 USER blimp_user |
| OLD | NEW |