mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-02-16 10:29:19 +01:00
openSUSE: speed up package building and testing
This commit is contained in:
parent
e68c9aef30
commit
df70b38db6
@ -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
|
||||
|
@ -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 && \
|
||||
|
Loading…
Reference in New Issue
Block a user