Created attachment 212530 [details] net/traefik2 shar Hi, This port is based on net/traefik but since the configuration is not compatible between v1 and v2, I thought having it as a separate port is better. Thanks, Funzi
Have you tested the build in poudriere ? cd /wrkdirs/usr/ports/net/traefik2/work/traefik-2.1.7/webui; npm install; npm run build:nc npm ERR! code EAI_FAIL npm ERR! errno EAI_FAIL npm ERR! network request to https://registry.npmjs.org/semver/-/semver-5.7.0.tgz failed, reason: getaddrinfo EAI_FAIL registry.npmjs.org npm ERR! network This is a problem related to network connectivity. npm ERR! network In most cases you are behind a proxy or have bad network settings. npm ERR! network npm ERR! network If you are behind a proxy, please make sure that the npm ERR! network 'proxy' config is set properly. See: 'npm help config' npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2020-03-19T18_27_19_879Z-debug.log *** Error code 1
Apologies, I've tested only in /usr/ports and understand the problem now. This will take a while to fix. I realized that the vendoring will fail as well (once the node issue is resolved) and there are a lot of dependencies. Once I was able to solve it, I will update the shar.
For the go modules, I have this little writeup on how to get it into the makefile: - Change to WRKSRC of your port - run go mod vendor modules2tuple vendor/modules.txt > /tmp/ggg - use /tmp/ggg as GH_TUPLE for the port Makefile - go list -m shows you the list of modules
Created attachment 212547 [details] net/traefik2 shar, version 2.1.8
I have tried it with GH_TUPLE but after 1 hour of trying to fix the branches/commit IDs I gave up and decided to fork the upstream repository and vendored the 203 dependencies. In a way, that was also the approach the maintainer of net/traefik took because generating the static resources required running npm in a specific version just at build time. According to the Porter's handbook that is the least preferred option but to my opinion for 2.1.8 the only sustainable way. Hopefully the dependencies clear up a bit once 2.2 is released. I have attached a new shar and verified that it build with poudriere with 11.3 and 12.1.
A commit references this bug: Author: pi Date: Sat Mar 21 12:54:55 UTC 2020 New revision: 528852 URL: https://svnweb.freebsd.org/changeset/ports/528852 Log: New port: net/traefik2 High availability reverse proxy and load balancer 2.x Traefik (pronounced like traffic) is a modern HTTP reverse proxy and load balancer made to deploy microservices with ease. It supports several backends (Docker, Swarm mode, Kubernetes, Marathon, Consul, Etcd, Rancher, Amazon ECS, and a lot more) to manage its configuration automatically and dynamically. WWW: https://traefik.io/ PR: 244913 Submitted by: Christopher Beppler <freebsd@funzi.org> Changes: head/net/Makefile head/net/traefik2/ head/net/traefik2/Makefile head/net/traefik2/distinfo head/net/traefik2/pkg-message
Committed, thanks!