SHA256
1
0
forked from pool/traefik
traefik/prepare-sources.sh

48 lines
1.0 KiB
Bash
Raw Normal View History

Accepting request 1155081 from home:weberho:branches:devel:kubic - configuration changes: * Enhanced default configuration file, including configs for http3 support. * Docker configuration has been disabled per default, file provider has been enabled. The directory for the file provider has been set to /etc/traefik/conf.d * Prepared directories for logging in /var/log/traefik * Enhanced default configuration file, including configs for http3 support. Settings are disabled per default. - packaging general: * Use standard source-download feature, modified _service file and removed _servicedata * packagers can invoke `prepare-sources.sh` to doenload sources and prepare go-packages as well as node_modules for the built process. - frontend packaging: * The frontend will now be packaged on OBS to have reproduceable builds. - Go packaging: * Added upstream patch traefik-fix-int-overflow-with-go-generate-10452.patch to allow packaging on 32bit architectures gh#traefik/traefik#10451 * Enabled CGO because there is no cross compilation needed in OSB (we build packages for every distribution/architecture seperately). PIE can not be used with CGO enabled for most architectures and is reported as failure sinc go 1.22. See https://github.com/golang/go/issues/64875 * Don't use pie-buildmode for ppc64 and s390x architectures - Update to version 2.11.0: * Enhancements: * [middleware] Deprecate IPWhiteList middleware in favor of IPAllowList * [redis] Add Redis Sentinel support * [server] Add KeepAliveMaxTime and KeepAliveMaxRequests features to entrypoints * [sticky-session] Hash WRR sticky cookies * Bug fixes: * [acme] Update go-acme/lego to v4.15.0 * [authentication] Fix NTLM and Kerberos * [file] Fix file watcher * [file] Update github.com/fsnotify/fsnotify to v1.7.0 * [http3] Update quic-go to v0.40.1 * [middleware,tcp] Add missing TCP IPAllowList middleware constructor * [nomad] Update the Nomad API dependency to v1.7.2 * [server] Fix ReadHeaderTimeout for PROXY protocol * [webui] Fixes the Header Button * [webui] Fix URL encode resource's id before calling API endpoints OBS-URL: https://build.opensuse.org/request/show/1155081 OBS-URL: https://build.opensuse.org/package/show/devel:kubic/traefik?expand=0&rev=27
2024-03-05 14:28:36 +01:00
#!/bin/sh
# Prepare go and node languages used for packaging
# Author: jweberhofer@weberhofer.at
#
echo "Preparing sources for packaging"
if [ -z `which osc` ] ; then
echo 'osc must be installed!'
exit 1;
fi
if [ -z `which yarn` ] ; then
echo 'yarn must be installed!'
exit 1;
fi
if [ -z `which npm` ] ; then
echo 'npm must be installed!'
exit 1;
fi
# download sources from github, package and create the vendor-package
osc service runall download_files
if [ "$?" -ne 0 ] ; then
exit 1
fi
# create package-lock for packaging offline node_modules
VERSION=`grep '^Version:[\t ]*' traefik.spec | sed -e 's/^[^0-9]*// ; s/[ \t]*$//'`
tar -xzf "traefik-$VERSION.tar.gz"
pushd "traefik-$VERSION/webui"
if [ "$?" -ne 0 ] ; then
exit 1
fi
npm install --package-lock-only --legacy-peer-deps --ignore-scripts
if [ "$?" -ne 0 ] ; then
exit 1
fi
mv package-lock.json ../../
popd
# create the offline packages
osc service manualrun
# remove unnecessary file
if [ -e 'node_modules.sums' ] ; then
rm 'node_modules.sums'
fi