Browse Source

compile the traefik dashboard UI

main
Nicolas Massé 4 years ago
parent
commit
0b0e80360d
  1. 3
      MOCKCONFIG/traefik.cfg
  2. 8
      SPECS/traefik.spec

3
MOCKCONFIG/traefik.cfg

@ -1,2 +1,3 @@
BUILDER="fedora-35-x86_64" BUILDER="fedora-35-x86_64"
EXTRA_PARAMS="--enable-network" # --no-bootstrap-image is required to use the dnf modules
EXTRA_PARAMS="--no-bootstrap-image --enable-network --enablerepo=fedora-modular --config-opts package_manager=dnf --config-opts module_enable=nodejs:12 --config-opts module_install=nodejs:12/default"

8
SPECS/traefik.spec

@ -11,7 +11,7 @@ and configures itself automatically and dynamically. Pointing Traefik at your
orchestrator should be the only onfiguration step you need.} orchestrator should be the only onfiguration step you need.}
Name: traefik Name: traefik
Release: itix1 Release: itix2
Summary: The Cloud Native Application Proxy Summary: The Cloud Native Application Proxy
License: MIT License: MIT
ExclusiveArch: x86_64 ExclusiveArch: x86_64
@ -28,6 +28,8 @@ BuildRequires: breezy
BuildRequires: golang >= 1.15 BuildRequires: golang >= 1.15
BuildRequires: git BuildRequires: git
BuildRequires: go-bindata BuildRequires: go-bindata
BuildRequires: nodejs
BuildRequires: npm
%description %description
%{common_description} %{common_description}
@ -45,13 +47,13 @@ cp %{S:1} %{name}.service
cp %{S:2} %{name}.yaml cp %{S:2} %{name}.yaml
%build %build
GO111MODULE=off go get github.com/containous/go-bindata/... (cd webui && npm install && npm run build:nc)
# Workaround for "GOVCS disallows using bzr for public XXX" # Workaround for "GOVCS disallows using bzr for public XXX"
export GOVCS='private:all,public:all' export GOVCS='private:all,public:all'
go generate go generate
CGO_ENABLED=0 GO111MODULE=on go build -o %{gobuilddir}/traefik %{goipath}/cmd/traefik CGO_ENABLED=0 GO111MODULE=on go build -ldflags="-s -w -X 'github.com/traefik/traefik/v2/pkg/version.Version=%Version' -X 'github.com/traefik/traefik/v2/pkg/version.Codename=ITIX' -X 'github.com/traefik/traefik/v2/pkg/version.BuildDate=$(date -Iseconds)'" -o %{gobuilddir}/traefik %{goipath}/cmd/traefik
%install %install
install -d %{buildroot}/opt/%{name}/etc/ install -d %{buildroot}/opt/%{name}/etc/

Loading…
Cancel
Save