2
0

our own build-env image

This commit is contained in:
2021-04-12 09:42:19 +02:00
parent b45ffcf9cb
commit 4318121e05
3 changed files with 100 additions and 26 deletions

View File

@@ -29,31 +29,9 @@ spec:
- name: openwrt-configs
type: git
steps:
- name: setup
#image: cr.lan/debian-stable-build-essential
image: docker.io/openjdk/jdk-buster
script: |
#!/usr/bin/env bash
#echo 'deb-src http://apt-cache.lan/deb.debian.org/debian testing main' > /etc/apt/sources.list.d/src-testing.list
#echo 'deb http://apt-cache.lan/deb.debian.org/debian testing main' > /etc/apt/sources.list.d/testing.list
apt update -y
export DEBIAN_FRONTEND=noninteractive
echo "HACK openjdk bug"
mkdir -p /etc/ssl/certs/java
touch /etc/ssl/certs/java/cacerts
mkdir -p /usr/share/man/man1
touch /usr/share/man/man1/rmid.1.gz.dpkg-tmp
echo "////////// HACK openjdk bug"
apt install -y ca-certificates-java
dpkg --configure -a
apt install -y build-essential ccache ecj fastjar file g++ gawk \
gettext git java-propose-classpath libelf-dev libncurses5-dev \
libncursesw5-dev libssl-dev python python2.7-dev python3 unzip wget \
python3-distutils python3-setuptools rsync subversion swig time \
xsltproc zlib1g-dev
- name: openwrt-get
#image: cr.lan/debian-stable-build-essential
image: docker.io/openjdk/jdk-buster
image: cr.lan/debian-stable-openwrt-build
script: |
#!/usr/bin/env bash
if [ ! -d /usr/src/openwrt ]; then
@@ -66,7 +44,7 @@ spec:
git pull
- name: build-openwrt
#image: cr.lan/debian-stable-build-essential
image: docker.io/openjdk/jdk-buster
image: cr.lan/debian-stable-openwrt-build
script: |
#!/usr/bin/env bash
@@ -83,8 +61,10 @@ spec:
cp -v $(resources.inputs.openwrt-configs.path)/$(params.config) \
/usr/src/openwrt/.config || exit 1
cd /usr/src/openwrt
./scripts/feeds update -a
./scripts/feeds install -a
ls -la .
#./scripts/feeds update -a
#./scripts/feeds install -a
#distcc-pump make -j20 download world CC=distcc $(params.make_flags)
make -j2 download world $(params.make_flags)
workspaces: