svn commit: r512683 - in head/sysutils: . nomad-pot-driver nomad-pot-driver/files
Luca Pizzamiglio
pizzamig at FreeBSD.org
Mon Sep 23 21:32:46 UTC 2019
Author: pizzamig
Date: Mon Sep 23 21:32:44 2019
New Revision: 512683
URL: https://svnweb.freebsd.org/changeset/ports/512683
Log:
sysutils/nomad-pot-driver: add new port
This driver allows to orchestrate jails created with sysutils/pot via
the scheduler sysutils/nomad
Sponsored by: trivago N.V.
Added:
head/sysutils/nomad-pot-driver/
head/sysutils/nomad-pot-driver/Makefile (contents, props changed)
head/sysutils/nomad-pot-driver/distinfo (contents, props changed)
head/sysutils/nomad-pot-driver/files/
head/sysutils/nomad-pot-driver/files/pkg-message.in (contents, props changed)
head/sysutils/nomad-pot-driver/pkg-descr (contents, props changed)
Modified:
head/sysutils/Makefile
Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile Mon Sep 23 21:24:28 2019 (r512682)
+++ head/sysutils/Makefile Mon Sep 23 21:32:44 2019 (r512683)
@@ -742,6 +742,7 @@
SUBDIR += no-login
SUBDIR += node_exporter
SUBDIR += nomad
+ SUBDIR += nomad-pot-driver
SUBDIR += npadmin
SUBDIR += nq
SUBDIR += nrg2iso
Added: head/sysutils/nomad-pot-driver/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/nomad-pot-driver/Makefile Mon Sep 23 21:32:44 2019 (r512683)
@@ -0,0 +1,41 @@
+# $FreeBSD$
+
+PORTNAME= nomad-pot-driver
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.2
+DISTVERSIONSUFFIX= -9-g5b02965
+CATEGORIES= sysutils
+
+MAINTAINER= pizzamig at FreeBSD.org
+COMMENT= Nomad driver to support pot jails
+
+LICENSE= MPL20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= pot:sysutils/pot \
+ nomad:sysutils/nomad
+
+USES= compiler go
+USE_GITHUB= yes
+GH_ACCOUNT= trivago
+GH_SUBDIR= src/github.com/trivago/nomad-pot-driver
+
+PLIST_FILES= libexec/nomad/plugins/nomad-pot-driver
+SUB_FILES= pkg-message
+
+do-build:
+ @cd ${WRKSRC}/src/github.com/trivago/nomad-pot-driver && \
+ ${SETENV} ${MAKE_ENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build -v -x \
+ -o bin/nomad-pot-driver
+
+do-install:
+ @${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nomad/plugins
+ ${INSTALL_SCRIPT} ${WRKSRC}/src/github.com/trivago/nomad-pot-driver/bin/nomad-pot-driver ${STAGEDIR}${PREFIX}/libexec/nomad/plugins
+
+.include <bsd.port.pre.mk>
+
+.if ${COMPILER_TYPE} == clang
+BUILD_ENV= CC=clang
+.endif
+
+.include <bsd.port.post.mk>
Added: head/sysutils/nomad-pot-driver/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/nomad-pot-driver/distinfo Mon Sep 23 21:32:44 2019 (r512683)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1568968809
+SHA256 (trivago-nomad-pot-driver-v0.2-9-g5b02965_GH0.tar.gz) = dbd369fccebdc068af771b7a661f7b84b637af168c4a4b44da19a6db41da49a6
+SIZE (trivago-nomad-pot-driver-v0.2-9-g5b02965_GH0.tar.gz) = 3569543
Added: head/sysutils/nomad-pot-driver/files/pkg-message.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/nomad-pot-driver/files/pkg-message.in Mon Sep 23 21:32:44 2019 (r512683)
@@ -0,0 +1,14 @@
+[
+{ type: install
+ message: <<EOM
+The plugin is installed in %%PREFIX%%/libexec/nomad/plugins
+Please the value of plugin_dir to this value in your server.hcl nomad configuration file
+EOM
+}
+{ type: deinstall
+ message: <<EOM
+The plugin is removed from %%PREFIX%%/libexec/nomad/plugins
+Please, feel free to remove the plugin_dir from your server.hcl nomad configuration file
+EOM
+}
+]
Added: head/sysutils/nomad-pot-driver/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/nomad-pot-driver/pkg-descr Mon Sep 23 21:32:44 2019 (r512683)
@@ -0,0 +1,7 @@
+This is a driver for nomad to interacto with the pot framework
+in order to be able to manage and schedule jails over a cluster
+of FreeBSD server
+
+WWW: https://www.nomadproject.io
+WWW: https://github.com/pizzamig/pot
+WWW: https://github.com/trivago/nomad-pot-driver
More information about the svn-ports-head
mailing list