Skip to content

Commit acebeb7

Browse files
committed
[firefox][fennec][thunderbird] fix image build by installing dependencies *after* checkout
1 parent ca20852 commit acebeb7

4 files changed

Lines changed: 29 additions & 37 deletions

File tree

fennec/fennec.dockerfile

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,6 @@ RUN mkdir /tmp/android-studio \
99
&& mv android-studio /home/user \
1010
&& rm -rf /tmp/android-studio
1111

12-
# Install Fennec build dependencies.
13-
RUN sudo apt-get update \
14-
&& sudo apt-get install -y --no-install-recommends rsync yasm \
15-
&& wget -O /tmp/bootstrap.py https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py \
16-
&& python /tmp/bootstrap.py --no-interactive --application-choice=mobile_android \
17-
&& rm -f /tmp/bootstrap.py \
18-
&& sudo rm -rf /var/lib/apt/lists/* \
19-
&& rustup target add armv7-linux-androideabi \
20-
&& rustup target add i686-linux-android
21-
2212
# Download Fennec's source code.
2313
RUN hg clone --uncompressed https://hg.mozilla.org/mozilla-unified/ fennec \
2414
&& cd fennec \
@@ -29,6 +19,14 @@ WORKDIR fennec
2919
ADD mozconfig /home/user/fennec/
3020
RUN sudo chown user:user /home/user/fennec/mozconfig
3121

22+
# Install Fennec build dependencies.
23+
RUN sudo apt-get update \
24+
&& sudo apt-get install -y --no-install-recommends rsync yasm \
25+
&& python python/mozboot/bin/bootstrap.py --no-interactive --application-choice=mobile_android \
26+
&& sudo rm -rf /var/lib/apt/lists/* \
27+
&& rustup target add armv7-linux-androideabi \
28+
&& rustup target add i686-linux-android
29+
3230
# Set up additional Fennec build dependencies.
3331
RUN mkdir -p /home/user/.mozbuild \
3432
&& ./mach mercurial-setup -u \

firefox/firefox-git.dockerfile

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
FROM janitortechnology/ubuntu-dev
22

3-
# Install Firefox build dependencies.
4-
# One-line setup command from:
5-
# https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Linux_Prerequisites#Most_Distros_-_One_Line_Bootstrap_Command
6-
RUN sudo apt-get update \
7-
&& wget -O /tmp/bootstrap.py https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py \
8-
&& python /tmp/bootstrap.py --no-interactive --application-choice=browser \
9-
&& rm -f /tmp/bootstrap.py \
10-
&& sudo rm -rf /var/lib/apt/lists/*
11-
123
# Install Mozilla's moz-git-tools.
134
RUN git clone https://github.com/mozilla/moz-git-tools /home/user/.moz-git-tools \
145
&& cd /home/user/.moz-git-tools \
@@ -31,6 +22,13 @@ WORKDIR /home/user/firefox
3122
# Add Firefox build configuration.
3223
COPY --chown=user:user mozconfig /home/user/firefox/
3324

25+
# Install Firefox build dependencies.
26+
# One-line setup command from:
27+
# https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Linux_Prerequisites#Most_Distros_-_One_Line_Bootstrap_Command
28+
RUN sudo apt-get update \
29+
&& python python/mozboot/bin/bootstrap.py --no-interactive --application-choice=browser \
30+
&& sudo rm -rf /var/lib/apt/lists/*
31+
3432
# Set up Mercurial extensions for Firefox.
3533
RUN mkdir -p /home/user/.mozbuild \
3634
&& ./mach mercurial-setup -u \

firefox/firefox-hg.dockerfile

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
FROM janitortechnology/ubuntu-dev
22

3-
# Install Firefox build dependencies.
4-
# One-line setup command from:
5-
# https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Linux_Prerequisites#Most_Distros_-_One_Line_Bootstrap_Command
6-
RUN sudo apt-get update \
7-
&& wget -O /tmp/bootstrap.py https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py \
8-
&& python /tmp/bootstrap.py --no-interactive --application-choice=browser \
9-
&& rm -f /tmp/bootstrap.py \
10-
&& sudo rm -rf /var/lib/apt/lists/*
11-
123
# Download Firefox's source code.
134
RUN hg clone --uncompressed https://hg.mozilla.org/mozilla-unified/ firefox \
145
&& cd firefox \
@@ -18,6 +9,13 @@ WORKDIR firefox
189
# Add Firefox build configuration.
1910
COPY --chown=user:user mozconfig /home/user/firefox/
2011

12+
# Install Firefox build dependencies.
13+
# One-line setup command from:
14+
# https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Linux_Prerequisites#Most_Distros_-_One_Line_Bootstrap_Command
15+
RUN sudo apt-get update \
16+
&& python python/mozboot/bin/bootstrap.py --no-interactive --application-choice=browser \
17+
&& sudo rm -rf /var/lib/apt/lists/*
18+
2119
# Set up Mercurial extensions for Firefox.
2220
RUN mkdir -p /home/user/.mozbuild \
2321
&& ./mach mercurial-setup -u

thunderbird/thunderbird.dockerfile

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
FROM janitortechnology/ubuntu-dev
22
MAINTAINER Philipp Kewisch "mozilla@kewis.ch"
33

4-
# Install Firefox build dependencies.
5-
# One-line setup command from:
6-
# https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Linux_Prerequisites#Most_Distros_-_One_Line_Bootstrap_Command
7-
RUN sudo apt-get update \
8-
&& wget -qO /tmp/bootstrap.py https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py \
9-
&& python /tmp/bootstrap.py --no-interactive --application-choice=browser \
10-
&& rm -f /tmp/bootstrap.py \
11-
&& sudo rm -rf /var/lib/apt/lists/*
12-
134
# Download Thunderbird's source code.
145
RUN hg clone --uncompressed https://hg.mozilla.org/comm-central/ thunderbird \
156
&& cd thunderbird \
@@ -20,6 +11,13 @@ WORKDIR thunderbird
2011
ADD .mozconfig /home/user/thunderbird/
2112
RUN sudo chown user:user /home/user/thunderbird/.mozconfig
2213

14+
# Install Firefox build dependencies.
15+
# One-line setup command from:
16+
# https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Linux_Prerequisites#Most_Distros_-_One_Line_Bootstrap_Command
17+
RUN sudo apt-get update \
18+
&& python python/mozboot/bin/bootstrap.py --no-interactive --application-choice=browser \
19+
&& sudo rm -rf /var/lib/apt/lists/*
20+
2321
# Set up Mercurial so mach doesn't complain.
2422
RUN mkdir -p /home/user/.mozbuild \
2523
&& ./mozilla/mach mercurial-setup -u

0 commit comments

Comments
 (0)