Initial dockerfiles

This commit is contained in:
uazo
2021-06-19 09:46:24 +00:00
parent 6a3724fb28
commit a669eb5f0c
22 changed files with 450 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
ARG VERSION
FROM localhost:5000/uazo/chromium:$VERSION
ARG VERSION
ENV VERSION=$VERSION
USER lg
COPY apply-bromite-patches.sh .
RUN sudo chmod +x ./apply-bromite-patches.sh \
&& \
git clone https://github.com/bromite/bromite \
&& \
./apply-bromite-patches.sh

View File

@@ -0,0 +1,24 @@
#!/bin/bash
RED='\033[0;31m'
NC='\033[0m' # No Color
sudo apt install sed
cd chromium/src
echo -e ${RED} ------- apply patchs ${NC}
for file in $(cat ../../bromite/build/bromite_patches_list.txt) ; do
echo -e ${RED} " -> Apply $file" ${NC}
REPL="0,/^---/s//FILE:"$file"\n---/"
cat ../../bromite/build/patches/$file | sed $REPL | git am
if [ $? -ne 0 ]
then
echo -e "Error on ../../bromite/build/patches/${file}"
exit 1
fi
echo " "
done