openSUSE: speed up package building and testing

This commit is contained in:
Dmitry Maksyoma 2022-11-25 01:22:28 +13:00
parent e68c9aef30
commit df70b38db6
2 changed files with 5 additions and 17 deletions

View File

@ -8,23 +8,8 @@ RUN zypper -n install -y \
vim \
xterm
# deps and rpm install
RUN zypper -n install -y \
libglvnd \
libgomp1 \
libjpeg8 \
libpixman-1-0 \
libXdmcp6 \
libXfont2-2 \
libxkbcommon-x11-0 \
openssl \
perl \
x11-tools \
xauth \
xkbcomp \
xkeyboard-config && \
mkdir -p /etc/pki/tls/private
# Cache repo updates, so that package changes don't trigger it on every build.
RUN zypper refresh
ARG KASMVNC_PACKAGE_DIR
COPY $KASMVNC_PACKAGE_DIR/*.rpm /tmp
RUN zypper install -y --allow-unsigned-rpm /tmp/*.rpm

View File

@ -14,7 +14,10 @@ RUN zypper -n install -y \
tree \
vim
# Cache repo updates, so that spec changes don't trigger it on every build.
RUN zypper refresh
COPY opensuse/*.spec /tmp
RUN zypper -n install $(grep BuildRequires /tmp/*.spec | cut -d' ' -f2 | xargs)
RUN useradd -u 1000 -m -d /home/docker docker && \