author | Edouard Tisserant <edouard.tisserant@gmail.com> |
Sat, 16 Dec 2017 17:27:00 +0100 | |
changeset 31 | d265395c11ad |
parent 28 | 950f79385de7 |
child 32 | bec145483ea8 |
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 |
|
28
950f79385de7
HGROOT now default to parent of directory containing makefile. Added more instruction in Dockerfile
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
22
diff
changeset
|
3 |
# initialize : |
22
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 . |
28
950f79385de7
HGROOT now default to parent of directory containing makefile. Added more instruction in Dockerfile
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
22
diff
changeset
|
5 |
# |
950f79385de7
HGROOT now default to parent of directory containing makefile. Added more instruction in Dockerfile
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
22
diff
changeset
|
6 |
# build installer as-is : |
22
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
7 |
# docker run -v ~/src:/home/devel/src -v ~/build/:/home/devel/build --rm beremiz_builder |
28
950f79385de7
HGROOT now default to parent of directory containing makefile. Added more instruction in Dockerfile
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
22
diff
changeset
|
8 |
# |
950f79385de7
HGROOT now default to parent of directory containing makefile. Added more instruction in Dockerfile
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
22
diff
changeset
|
9 |
# to use on code-build-test cycle : |
950f79385de7
HGROOT now default to parent of directory containing makefile. Added more instruction in Dockerfile
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
22
diff
changeset
|
10 |
# docker create --name current -v ~/src:/home/devel/src -v ~/build/:/home/devel/build -i -t beremiz_builder /bin/bash |
950f79385de7
HGROOT now default to parent of directory containing makefile. Added more instruction in Dockerfile
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
22
diff
changeset
|
11 |
# docker start -i current |
950f79385de7
HGROOT now default to parent of directory containing makefile. Added more instruction in Dockerfile
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
22
diff
changeset
|
12 |
# # call build operations from here |
950f79385de7
HGROOT now default to parent of directory containing makefile. Added more instruction in Dockerfile
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
22
diff
changeset
|
13 |
# docker stop current |
950f79385de7
HGROOT now default to parent of directory containing makefile. Added more instruction in Dockerfile
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
22
diff
changeset
|
14 |
# docker rm current |
22
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
15 |
|
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
16 |
FROM ubuntu:xenial |
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
17 |
|
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
18 |
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
|
19 |
|
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
20 |
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
|
21 |
|
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
22 |
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
|
23 |
|
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
24 |
ARG UNAME=devel |
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
25 |
ENV UNAME ${UNAME} |
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
26 |
ARG UID=1000 |
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
27 |
ARG GID=1000 |
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
28 |
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
|
29 |
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
|
30 |
USER $UNAME |
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
31 |
|
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
32 |
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
|
33 |
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
|
34 |
|
07ad3ba42d39
Experimental docker based installer build, + update of mingw binaries - builds, untested
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
35 |
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
|
36 |