test by bot.

This commit is contained in:
licsber 2023-03-18 17:06:30 +08:00
parent 1c1e9c3749
commit 45cf494c7c

View File

@ -21,7 +21,10 @@ RUN echo $(nproc) && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /usr/share/dotnet /usr/local/lib/android/sdk /usr/local/share/boost /opt/ghc
RUN useradd -s /bin/bash licsber
RUN useradd -s /bin/bash licsber && \
usermod -aG sudo licsber && \
echo 'licsber ALL=(ALL) NOPASSWD:ALL' | tee /etc/sudoers.d/licsber
USER licsber
WORKDIR /home/licsber
@ -35,3 +38,18 @@ RUN repo init --depth=1 -u https://github.com/friendlyarm/friendlywrt_manifests
repo sync -c scripts/sd-fuse --no-clone-bundle && \
repo sync -c toolchain --no-clone-bundle
RUN git clone --depth=1 https://github.com/licsber/RockchipScripts.git && \
bash RockchipScripts/scripts/add_packages.sh && \
bash RockchipScripts/scripts/custome_config.sh && \
export DIRNAME=friendlywrt22.03-docker && \
export CONFIG=rockchip-docker && \
echo '. device/friendlyelec/rk3399/base.mk' >> .current_config.mk && \
echo "TARGET_IMAGE_DIRNAME=${DIRNAME}" >> .current_config.mk && \
echo "TARGET_FRIENDLYWRT_CONFIG=${CONFIG}" >> .current_config.mk && \
DEBUG_DOT_CONFIG=1 ./build.sh friendlywrt
RUN cd friendlywrt && \
make download -j8 && \
find dl -size -1024c -exec ls -l {} \; && \
find dl -size -1024c -exec rm -f {} \;