Chromium Code Reviews| Index: blimp/engine/testing/Dockerfile |
| diff --git a/blimp/engine/testing/Dockerfile b/blimp/engine/testing/Dockerfile |
| index 71c87fc8f93373d464d83d126631c2e39d2a78da..921b79e1677b8b4e7680f3a538a19b9a9dd6ca95 100644 |
| --- a/blimp/engine/testing/Dockerfile |
| +++ b/blimp/engine/testing/Dockerfile |
| @@ -4,15 +4,24 @@ |
| # Engine itself. |
| FROM base:latest |
| -RUN mkdir -p /out/test/ |
| +RUN mkdir -p /test/out/test |
| +RUN mkdir /test/base /test/blimp /test/net |
| + |
| +RUN useradd -ms /bin/bash blimp_user |
| + |
| +# Ensure directories end up at expected levels. |
| +# 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
|
| +ADD base /test/base |
| +ADD blimp /test/blimp |
| +ADD net /test/net |
| -# The glob below expands to all files, but does not add directories |
| -# recursively. |
| # Test binaries assume src directory is 2 levels down. While this behavior can |
| # be changed with flags, the directory structure is set up to minimize |
| # potential problems with initial integration. |
| -ADD * /out/test/ |
| +# The source glob here captures test binaries, required shared binaries (.so) |
| +# and .dat files at the bundle root without recopying directory contents. |
| +ADD *tests *.* /test/out/test/ |
| -RUN chown -R blimp_user /out/test/ |
| +RUN chown -R blimp_user /test |
| USER blimp_user |