author | Edouard Tisserant <edouard.tisserant@gmail.com> |
Tue, 05 Dec 2017 00:08:10 +0100 | |
changeset 22 | 07ad3ba42d39 |
child 28 | 950f79385de7 |
permissions | -rw-r--r-- |
22
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
1 |
# Builds Beremiz windows installer |
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
2 |
|
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
3 |
# usage : |
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
4 |
# docker build --build-arg UID=$(id -u) --build-arg GID=$(id -g) -t beremiz_builder . |
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
5 |
# docker run -v ~/src:/home/devel/src -v ~/build/:/home/devel/build --rm beremiz_builder |
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
6 |
|
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
7 |
FROM ubuntu:xenial |
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
8 |
|
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
9 |
ENV TERM xterm-256color |
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
10 |
|
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
11 |
COPY provision_xenial64.sh . |
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
12 |
|
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
13 |
RUN ./provision_xenial64.sh |
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
14 |
|
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
15 |
ARG UNAME=devel |
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
16 |
ENV UNAME ${UNAME} |
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
17 |
ARG UID=1000 |
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
18 |
ARG GID=1000 |
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
19 |
RUN groupadd -g $GID $UNAME |
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
20 |
RUN useradd -m -u $UID -g $GID -s /bin/bash $UNAME |
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
21 |
USER $UNAME |
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
22 |
|
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
23 |
RUN mkdir /home/$UNAME/build /home/$UNAME/src |
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
24 |
COPY . /home/$UNAME/src/beremiz_public_dist/ |
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
25 |
|
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
26 |
CMD xvfb-run make -C /home/$UNAME/build -f /home/$UNAME/src/beremiz_public_dist/Makefile |
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
27 |