changes
This commit is contained in:
parent
b019f87eb1
commit
dd5d3f5594
2 changed files with 8 additions and 10 deletions
|
|
@ -1,11 +1,9 @@
|
||||||
ARG distro
|
ARG distro
|
||||||
|
|
||||||
FROM $distro
|
FROM $distro
|
||||||
|
|
||||||
# dependencies needed to run ./mach bootstrap
|
# dependencies needed to run ./mach bootstrap
|
||||||
|
RUN ( apt-get -y update && apt-get -y upgrade && apt-get -y install mercurial python3 python3-dev python3-pip ; true)
|
||||||
RUN ( apt -y update && apt -y upgrade && apt -y install mercurial python3 python3-dev python3-pip ; true)
|
RUN ( dnf -y upgrade && dnf -y install mercurial python3 python3-devel ; true)
|
||||||
RUN ( dnf -y upgrade && dnf -y install mercurial python3 python3-devel && python3 -m pip install --user mercurial ; true)
|
|
||||||
|
|
||||||
# our work happens here, on the host filesystem.
|
# our work happens here, on the host filesystem.
|
||||||
WORKDIR /work
|
WORKDIR /work
|
||||||
|
|
|
||||||
12
Makefile
12
Makefile
|
|
@ -5,6 +5,7 @@ version:=$(shell cat version)
|
||||||
release:=$(shell cat release)
|
release:=$(shell cat release)
|
||||||
source_release:=$(shell cat source_release)
|
source_release:=$(shell cat source_release)
|
||||||
|
|
||||||
|
tarball=librewolf-$(version)-$(source_release).source.tar.gz
|
||||||
|
|
||||||
help :
|
help :
|
||||||
@echo "Use: make [help] [all] [clean] [veryclean] [fetch] [prune]"
|
@echo "Use: make [help] [all] [clean] [veryclean] [fetch] [prune]"
|
||||||
|
|
@ -15,14 +16,13 @@ all :
|
||||||
clean :
|
clean :
|
||||||
sudo rm -rf work
|
sudo rm -rf work
|
||||||
|
|
||||||
veryclean :
|
veryclean : clean
|
||||||
|
rm -f $(tarball)
|
||||||
prune :
|
prune :
|
||||||
docker system prune --all --force
|
docker system prune --all --force
|
||||||
|
|
||||||
# fetching the source
|
|
||||||
tarball=librewolf-$(version)-$(source_release).source.tar.gz
|
|
||||||
fetch : $(tarball)
|
fetch : $(tarball)
|
||||||
|
|
||||||
$(tarball) :
|
$(tarball) :
|
||||||
wget -O $(tarball) "https://gitlab.com/librewolf-community/browser/source/-/jobs/artifacts/main/raw/$(tarball)?job=Build"
|
wget -O $(tarball) "https://gitlab.com/librewolf-community/browser/source/-/jobs/artifacts/main/raw/$(tarball)?job=Build"
|
||||||
|
|
||||||
|
|
@ -32,12 +32,12 @@ $(tarball) :
|
||||||
tag=debian11
|
tag=debian11
|
||||||
tag_distro=debian:bullseye
|
tag_distro=debian:bullseye
|
||||||
make-docker-image-debian11 :
|
make-docker-image-debian11 :
|
||||||
script -e -c 'time docker build --no-cache --build-arg distro=$(tag_distro) -t librewolf/bsys5-image-$(tag) - < Dockerfile'
|
docker build --no-cache --build-arg distro=$(tag_distro) -t librewolf/bsys5-image-$(tag) - < Dockerfile
|
||||||
run-docker-image-debian11 :
|
run-docker-image-debian11 :
|
||||||
sudo rm -rf work
|
sudo rm -rf work
|
||||||
mkdir work
|
mkdir work
|
||||||
(cd work && tar xf ../$(tarball))
|
(cd work && tar xf ../$(tarball))
|
||||||
script -e -c 'time docker run --rm -v $(shell pwd)/work:/work:rw librewolf/bsys5-image-$(tag) sh -c "cd /work/librewolf-$(version) && MOZBUILD_STATE_PATH=$$HOME/.mozbuild ./mach --no-interactive bootstrap --application-choice=browser && . /root/.cargo/env && cargo install cbindgen && ./mach build && ./mach package"'
|
docker run --rm -v $(shell pwd)/work:/work:rw librewolf/bsys5-image-$(tag) sh -c "cd /work/librewolf-$(version) && MOZBUILD_STATE_PATH=$$HOME/.mozbuild ./mach --no-interactive bootstrap --application-choice=browser && . /root/.cargo/env && cargo install cbindgen && ./mach build && ./mach package"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue