Show More
@@ -29,7 +29,14 b' function initcontainer() {' | |||||
29 | DBUILDUSER=build |
|
29 | DBUILDUSER=build | |
30 | ( |
|
30 | ( | |
31 | cat $DFILE |
|
31 | cat $DFILE | |
32 | echo RUN groupadd $DBUILDUSER -g `id -g` |
|
32 | if [ $(uname) = "Darwin" ] ; then | |
33 | echo RUN useradd $DBUILDUSER -u `id -u` -g $DBUILDUSER |
|
33 | # The builder is using boot2docker on OS X, so we're going to | |
|
34 | # *guess* the uid of the user inside the VM that is actually | |||
|
35 | # running docker. This is *very likely* to fail at some point. | |||
|
36 | echo RUN useradd $DBUILDUSER -u 1000 | |||
|
37 | else | |||
|
38 | echo RUN groupadd $DBUILDUSER -g `id -g` | |||
|
39 | echo RUN useradd $DBUILDUSER -u `id -u` -g $DBUILDUSER | |||
|
40 | fi | |||
34 | ) | $DOCKER build --tag $CONTAINER - |
|
41 | ) | $DOCKER build --tag $CONTAINER - | |
35 | } |
|
42 | } |
General Comments 0
You need to be logged in to leave comments.
Login now