You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.9 KiB
40 lines
1.9 KiB
FROM opensuse32/tumbleweed:latest
|
|
|
|
ARG TDE_VERSION=14.1.1
|
|
ARG ARCH=i686
|
|
|
|
# Add PACKMAN repository
|
|
COPY packages /packages
|
|
RUN set -x \
|
|
&& zypper ar -f -G -n packman http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/ packman \
|
|
&& setarch ${ARCH} zypper -n refresh \
|
|
&& setarch ${ARCH} zypper -n update \
|
|
&& setarch ${ARCH} zypper -n dup \
|
|
&& setarch ${ARCH} zypper -n install --allow-vendor-change $(</packages)
|
|
|
|
# Add non-root user to build packages
|
|
RUN /usr/sbin/useradd -m -s /bin/bash -u 1000 trinity \
|
|
&& echo "trinity ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers
|
|
|
|
USER trinity
|
|
COPY rpmmacros /home/trinity/.rpmmacros
|
|
|
|
# Add YUM repository for locally built packages
|
|
RUN mkdir -p /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/${ARCH} \
|
|
&& sudo zypper ar -C -G /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/${ARCH} rpmbuild.${ARCH} \
|
|
&& mkdir -p /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/noarch \
|
|
&& sudo zypper ar -C -G /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/noarch rpmbuild.noarch
|
|
|
|
# Install heimdal development files
|
|
RUN rpm -Uvh https://ftp.lysator.liu.se/pub/opensuse/source/tumbleweed/repo/oss/src/libheimdal-7.8.0-3.4.src.rpm \
|
|
&& wget -nv -O "${HOME}/rpmbuild/SOURCES/heimdal-7.8.0.tar.gz" "https://github.com/heimdal/heimdal/releases/download/heimdal-7.8.0/heimdal-7.8.0.tar.gz" \
|
|
&& sed -i "${HOME}/rpmbuild/SPECS/libheimdal.spec" -e "/^Source0:/ s|.*|Source0: heimdal-7.8.0.tar.gz|" -e "/^Patch0/ s|^|#|" \
|
|
&& setarch ${ARCH} rpmbuild -bc ${HOME}/rpmbuild/SPECS/libheimdal.spec \
|
|
&& sudo make -C ${HOME}/rpmbuild/BUILD/heimdal-7.8.0/tools/ install
|
|
|
|
# Add lilypond (i686 only)
|
|
RUN rpm -Uvh https://ftp.lysator.liu.se/pub/opensuse/source/tumbleweed/repo/oss/src/lilypond-2.24.3-1.1.src.rpm \
|
|
&& sed -i "${HOME}/rpmbuild/SPECS/lilypond.spec" -e "/^ExcludeArch/d" \
|
|
&& setarch ${ARCH} rpmbuild -ba "${HOME}/rpmbuild/SPECS/lilypond.spec" \
|
|
&& sudo rpm -Uvh "${HOME}/rpmbuild/RPMS/"*"/lilypond"{,-fonts-common,-emmentaler-fonts}"-2"*".rpm"
|