0
Fork 0
mirror of https://codeberg.org/librewolf/source.git synced 2025-04-09 20:01:34 -05:00

docker builds now work: make docker-build-image docker-run-build-job

This commit is contained in:
Bert van der Weerd 2022-12-16 12:30:32 +01:00
parent b3a33012f1
commit 64b704fd44
No known key found for this signature in database
GPG key ID: 73370A0B9E5516B0
2 changed files with 9 additions and 11 deletions

View file

@ -147,7 +147,7 @@ docker-build-image :
docker build --no-cache -t $(build_image) - < assets/Dockerfile
docker-run-build-job :
docker run --rm $(build_image) sh -c "git pull && make fetch && make build package"
docker run -v $$(pwd):/output --rm $(build_image) sh -c "git pull && make fetch && make build package && cp -v ./*.bz2 /output"
docker-remove-image :
docker rmi $(build_image)

View file

@ -1,20 +1,18 @@
FROM ubuntu:jammy
#FROM fedora:36
RUN apt-get update && apt-get -y upgrade && apt-get -y install make wget git patch unzip
#RUN dnf -y update && dnf -y install make wget git patch unzip
RUN ( apt-get update && apt-get -y upgrade && apt-get -y install make wget git patch unzip ; true )
RUN ( dnf -y update && dnf -y install make wget git patch unzip ; true )
# dependencies needed to run ./mach bootstrap
RUN ( apt-get -y update && apt-get -y upgrade && apt-get -y install python3 python3-dev python3-pip wget dpkg-sig ; true)
RUN ( dnf -y upgrade && dnf -y install python3 python3-devel wget rpm-build rpm-sign ; true)
RUN ( apt-get -y update && apt-get -y upgrade && apt-get -y install python3 python3-dev python3-pip wget dpkg-sig ; true )
RUN ( dnf -y upgrade && dnf -y install python3 python3-devel wget rpm-build rpm-sign ; true )
# grab the latest source cleanly
WORKDIR /
RUN rm -rf /source
RUN git clone --recursive https://gitlab.com/librewolf-community/browser/source.git
WORKDIR /source
RUN make check && make setup-debian && make fetch && make bootstrap && make veryclean
#RUN make check && make setup-fedora && make fetch && make bootstrap && make veryclean
RUN make check && make setup-debian && make fetch && make bootstrap && make build package && make veryclean
#RUN make check && make setup-fedora && make fetch && make bootstrap && make build package && make veryclean