docker builds

This commit is contained in:
Bert van der Weerd 2021-09-28 17:22:41 +02:00
parent 543d8c34d5
commit e720a811ef
No known key found for this signature in database
GPG key ID: 4CFABB96ADE0F5B1
19 changed files with 87 additions and 117 deletions

View file

@ -33,7 +33,9 @@ git_init :
reset :
$(BUILD) reset
# Building docker files..
.phony : docker-all docker-clean
docker-all :
make -C docker all
docker-clean :
make -C docker clean

View file

@ -1,11 +1,8 @@
all :
make -C buildenv
make -C nightly
make -C release
clean :
sudo docker image prune --force
prune :
docker system prune --all --force
sudo docker system prune --all --force

5
docker/buildenv/Makefile Normal file
View file

@ -0,0 +1,5 @@
all :
make -C debian
make -C fedora
make -C ubuntu
make -C mint

View file

@ -0,0 +1,13 @@
FROM debian
MAINTAINER Bert van der Weerd <bert@stanzabird.nl>
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Amsterdam
RUN apt-get -y update && apt-get -y upgrade
# Install build dependencies..
run apt-get -y install wget python3 python3-pip python3-dev mercurial
# Fetch mozilla nightly..
run wget -q https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py
run python3 bootstrap.py --no-interactive --application-choice=browser
run rm bootstrap.py

View file

@ -0,0 +1,2 @@
all :
sudo docker build -t mozilla/buildenv-debian .

View file

@ -0,0 +1,15 @@
FROM fedora
MAINTAINER Bert van der Weerd <bert@stanzabird.nl>
RUN dnf -y update
# locale stuff, see: https://superuser.com/questions/959380/how-do-i-install-generate-all-locales-on-fedora
RUN echo "%_install_langs C:en:en_US:en_US.UTF-8" > /etc/rpm/macros.image-language-conf
RUN dnf -y reinstall glibc-common
# Install build dependencies..
run dnf -y install wget python3 python3-pip python3-devel mercurial
# Fetch mozilla nightly..
run wget -q https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py
run python3 bootstrap.py --no-interactive --application-choice=browser
run rm bootstrap.py

View file

@ -0,0 +1,2 @@
all :
sudo docker build --no-cache --rm -t mozilla/buildenv-fedora .

View file

@ -0,0 +1,13 @@
FROM linuxmintd/mint20.2-amd64
MAINTAINER Bert van der Weerd <bert@stanzabird.nl>
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Amsterdam
RUN apt-get -y update && apt-get -y upgrade
# Install build dependencies..
run apt-get -y install wget python3 python3-pip python3-dev mercurial
# Fetch mozilla nightly..
run wget -q https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py
run python3 bootstrap.py --no-interactive --application-choice=browser
run rm bootstrap.py

View file

@ -0,0 +1,2 @@
all :
sudo docker build -t mozilla/buildenv-mint .

View file

@ -0,0 +1,13 @@
FROM ubuntu
MAINTAINER Bert van der Weerd <bert@stanzabird.nl>
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Amsterdam
RUN apt-get -y update && apt-get -y upgrade
# Install build dependencies..
run apt-get -y install wget python3 python3-pip python3-dev mercurial
# Build mozilla nightly..
run wget -q https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py
run python3 bootstrap.py --no-interactive --application-choice=browser
run rm bootstrap.py

View file

@ -0,0 +1,2 @@
all :
sudo docker build -t mozilla/buildenv-ubuntu .

View file

@ -1,18 +1,6 @@
FROM debian
MAINTAINER Bert van der Weerd <bert@stanzabird.nl>
RUN apt-get -y update && apt-get -y upgrade
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Amsterdam
# Install build dependencies..
run apt-get -y install wget python3 python3-pip python3-dev mercurial
# Fetch mozilla nightly..
run wget -q https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py
run python3 bootstrap.py --no-interactive --application-choice=browser
FROM mozilla/buildenv-debian
# Build it..
run rm bootstrap.py
workdir mozilla-unified
run ./mach build
run ./mach package

View file

@ -1,20 +1,6 @@
FROM fedora
MAINTAINER Bert van der Weerd <bert@stanzabird.nl>
RUN dnf -y update
# locale stuff, see: https://superuser.com/questions/959380/how-do-i-install-generate-all-locales-on-fedora
RUN echo "%_install_langs C:en:en_US:en_US.UTF-8" > /etc/rpm/macros.image-language-conf
RUN dnf -y reinstall glibc-common
# Install build dependencies..
run dnf -y install wget python3 python3-pip python3-devel mercurial
# Fetch mozilla nightly..
run wget -q https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py
run echo python3 bootstrap.py --no-interactive --application-choice=browser
FROM mozilla/buildenv-fedora
# Build it..
run rm bootstrap.py
workdir mozilla-unified
run ./mach build
run ./mach package

View file

@ -1,18 +1,6 @@
FROM linuxmintd/mint20.2-amd64
MAINTAINER Bert van der Weerd <bert@stanzabird.nl>
RUN apt-get -y update && apt-get -y upgrade
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Amsterdam
# Install build dependencies..
run apt-get -y install wget python3 python3-pip python3-dev mercurial
# Fetch mozilla nightly..
run wget -q https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py
run python3 bootstrap.py --no-interactive --application-choice=browser
FROM mozilla/buildenv-mint
# Build it..
run rm bootstrap.py
workdir mozilla-unified
run ./mach build
run ./mach package

View file

@ -1,18 +1,6 @@
FROM ubuntu
MAINTAINER Bert van der Weerd <bert@stanzabird.nl>
RUN apt-get -y update && apt-get -y upgrade
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Amsterdam
# Install build dependencies..
run apt-get -y install wget python3 python3-pip python3-dev mercurial
# Build mozilla nightly..
run wget -q https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py
run python3 bootstrap.py --no-interactive --application-choice=browser
FROM mozilla/buildenv-ubuntu
# Build it..
run rm bootstrap.py
workdir mozilla-unified
run ./mach build
run ./mach package

View file

@ -1,16 +1,5 @@
FROM debian
MAINTAINER Bert van der Weerd <bert@stanzabird.nl>
RUN apt-get -y update && apt-get -y upgrade
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Amsterdam
# Install build dependencies..
run apt-get -y install wget python3 python3-pip python3-dev mercurial
# Fetch mozilla nightly..
run wget -q https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py
run python3 bootstrap.py --no-interactive --application-choice=browser
run rm -rf mozilla-unified bootstrap.py
FROM mozilla/buildenv-debian
RUN rm -rf mozilla-unified
# Build it..
copy version /

View file

@ -1,18 +1,5 @@
FROM fedora
MAINTAINER Bert van der Weerd <bert@stanzabird.nl>
RUN dnf -y update
# locale stuff, see: https://superuser.com/questions/959380/how-do-i-install-generate-all-locales-on-fedora
RUN echo "%_install_langs C:en:en_US:en_US.UTF-8" > /etc/rpm/macros.image-language-conf
RUN dnf -y reinstall glibc-common
# Install build dependencies..
run dnf -y install wget python3 python3-pip python3-devel mercurial
# Fetch mozilla nightly..
run wget -q https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py
run echo python3 bootstrap.py --no-interactive --application-choice=browser
run rm -rf mozilla-unified bootstrap.py
FROM mozilla/buildenv-fedora
RUN rm -rf mozilla-unified
# Build it..
copy version /

View file

@ -1,16 +1,5 @@
FROM linuxmintd/mint20.2-amd64
MAINTAINER Bert van der Weerd <bert@stanzabird.nl>
RUN apt-get -y update && apt-get -y upgrade
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Amsterdam
# Install build dependencies..
run apt-get -y install wget python3 python3-pip python3-dev mercurial
# Fetch mozilla nightly..
run wget -q https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py
run python3 bootstrap.py --no-interactive --application-choice=browser
run rm -rf mozilla-unified bootstrap.py
FROM mozilla/buildenv-mint
RUN rm -rf mozilla-unified
# Build it..
copy version /

View file

@ -1,16 +1,5 @@
FROM ubuntu
MAINTAINER Bert van der Weerd <bert@stanzabird.nl>
RUN apt-get -y update && apt-get -y upgrade
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Amsterdam
# Install build dependencies..
run apt-get -y install wget python3 python3-pip python3-dev mercurial
# Build mozilla nightly..
run wget -q https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py
run python3 bootstrap.py --no-interactive --application-choice=browser
run rm -rf mozilla-unified bootstrap.py
FROM mozilla/buildenv-ubuntu
RUN rm -rf mozilla-unified
# Build it..
copy version /