forked from Samsung/Castanets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
81 lines (71 loc) · 2.34 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/bin/echo docker build . -f
# -*- coding: utf-8 -*-
# Copyright: 2018-present Samsung Electronics France SAS, and other contributors
FROM ubuntu:16.04
MAINTAINER Philippe Coval ([email protected])
ENV DEBIAN_FRONTEND noninteractive
ENV LC_ALL en_US.UTF-8
ENV LANG ${LC_ALL}
RUN echo "# log: Configuring locales" \
&& set -x \
&& apt-get update -y \
&& apt-get install -y locales \
&& echo "${LC_ALL} UTF-8" | tee /etc/locale.gen \
&& locale-gen ${LC_ALL} \
&& dpkg-reconfigure locales \
&& sync
RUN echo "# log: Setup system" \
&& set -x \
&& apt-get update -y \
&& apt-get install -y \
apt-transport-https \
git \
lsb-release \
sudo \
ttf-mscorefonts-installer \
&& apt-get clean \
&& sync
WORKDIR /usr/local/opt/depot_tools
RUN echo "# log: ${project}: Preparing sources" \
&& set -x \
&& git clone --recursive --depth 1 \
https://chromium.googlesource.com/chromium/tools/depot_tools . \
&& sync
ENV project castanets
ADD . /usr/local/opt/${project}/src/${project}/src
WORKDIR /usr/local/opt/${project}/src/${project}/src
RUN echo "# log: ${project}: Preparing sources" \
&& set -x \
&& git checkout castanets_63 \
|| git checkout -b castanets_63 remotes/origin/castanets_63 \
&& sync
WORKDIR /usr/local/opt/${project}/src/${project}/src
RUN echo "# log: ${project}: Preparing sources" \
&& set -x \
&& export PATH="${PATH}:/usr/local/opt/depot_tools" \
&& yes | build/install-build-deps.sh \
&& sync
WORKDIR /usr/local/opt/${project}/src/${project}/src
RUN echo "# log: ${project}: Preparing sources" \
&& set -x \
&& export PATH="${PATH}:/usr/local/opt/depot_tools" \
&& build/create_gclient.sh \
&& sync
WORKDIR /usr/local/opt/${project}/src/${project}/src
RUN echo "# log: ${project}: Preparing sources" \
&& set -x \
&& export PATH="${PATH}:/usr/local/opt/depot_tools" \
&& gclient sync --with_branch_head \
&& sync
WORKDIR /usr/local/opt/${project}/src/${project}/src
RUN echo "# log: ${project}: Preparing sources" \
&& set -x \
&& export PATH="${PATH}:/usr/local/opt/depot_tools" \
&& gn gen out/Default \
&& echo 'enable_castanets=true' | tee out/Default/args.gn \
&& echo 'enable_nacl=false' | tee -a out/Default/args.gn \
&& gn args --list out/Default \
&& cat out/Default/args.gn \
&& ninja -C out/Default chrome \
&& ./out/Default/chrome -version \
&& sync