Index: head/sysutils/runj/Makefile =================================================================== --- head/sysutils/runj/Makefile +++ head/sysutils/runj/Makefile @@ -0,0 +1,34 @@ +# $FreeBSD$ + +PORTNAME= runj +DISTVERSION= g20210315 +CATEGORIES= sysutils + +MAINTAINER= dch@FreeBSD.org +COMMENT= Experimental, proof-of-concept OCI-compatible runtime for jails + +LICENSE= APACHE20 BSD2CLAUSE BSD3CLAUSE MIT +LICENSE_COMB= multi + +USES= go:modules +USE_GITHUB= yes +GH_ACCOUNT= samuelkarp +GH_TAGNAME= 42281a4 + +.include "${.CURDIR}/Makefile.deps" + +GO_TARGET= ./cmd/runj:bin/runj \ + ./cmd/runj-entrypoint:bin/runj-entrypoint \ + ./cmd/containerd-shim-runj-v1:bin/containerd-shim-runj-v1 + +PLIST_FILES= bin/runj \ + bin/runj-entrypoint \ + bin/containerd-shim-runj-v1 + +post-install: + ${STRIP_CMD} \ + ${STAGEDIR}${PREFIX}/bin/runj \ + ${STAGEDIR}${PREFIX}/bin/runj-entrypoint \ + ${STAGEDIR}${PREFIX}/bin/containerd-shim-runj-v1 + +.include Index: head/sysutils/runj/Makefile.deps =================================================================== --- head/sysutils/runj/Makefile.deps +++ head/sysutils/runj/Makefile.deps @@ -0,0 +1,43 @@ +# $FreeBSD$ + +# Generated with `make gomod-vendor' + +GH_TUPLE= \ + Microsoft:go-winio:v0.4.16:microsoft_go_winio/vendor/github.com/Microsoft/go-winio \ + Microsoft:hcsshim:v0.8.11:microsoft_hcsshim/vendor/github.com/Microsoft/hcsshim \ + VividCortex:ewma:v1.1.1:vividcortex_ewma/vendor/github.com/VividCortex/ewma \ + census-instrumentation:opencensus-go:v0.22.2:census_instrumentation_opencensus_go/vendor/go.opencensus.io \ + cheggaaa:pb:v3.0.5:cheggaaa_pb_v3/vendor/github.com/cheggaaa/pb \ + containerd:cgroups:0b889c03f102:containerd_cgroups/vendor/github.com/containerd/cgroups \ + containerd:console:v1.0.1:containerd_console/vendor/github.com/containerd/console \ + containerd:fifo:0724c46b320c:containerd_fifo/vendor/github.com/containerd/fifo \ + containerd:go-runc:7016d3ce2328:containerd_go_runc/vendor/github.com/containerd/go-runc \ + containerd:ttrpc:v1.0.2:containerd_ttrpc/vendor/github.com/containerd/ttrpc \ + containerd:typeurl:v1.0.1:containerd_typeurl/vendor/github.com/containerd/typeurl \ + davecgh:go-spew:v1.1.1:davecgh_go_spew/vendor/github.com/davecgh/go-spew \ + fatih:color:v1.7.0:fatih_color/vendor/github.com/fatih/color \ + go-yaml:yaml:v2.3.0:go_yaml_yaml/vendor/gopkg.in/yaml.v2 \ + gogo:protobuf:v1.3.1:gogo_protobuf/vendor/github.com/gogo/protobuf \ + golang:groupcache:215e87163ea7:golang_groupcache/vendor/github.com/golang/groupcache \ + golang:protobuf:v1.4.3:golang_protobuf/vendor/github.com/golang/protobuf \ + golang:sys:69691e467435:golang_sys/vendor/golang.org/x/sys \ + google:go-genproto:cb27e3aa2013:google_go_genproto/vendor/google.golang.org/genproto \ + gotestyourself:gotest.tools:v3.0.3:gotestyourself_gotest_tools/vendor/gotest.tools/v3 \ + grpc:grpc-go:v1.34.0:grpc_grpc_go/vendor/google.golang.org/grpc \ + hashicorp:errwrap:v1.0.0:hashicorp_errwrap/vendor/github.com/hashicorp/errwrap \ + hashicorp:go-multierror:v1.1.0:hashicorp_go_multierror/vendor/github.com/hashicorp/go-multierror \ + inconshreveable:mousetrap:v1.0.0:inconshreveable_mousetrap/vendor/github.com/inconshreveable/mousetrap \ + mattn:go-colorable:v0.1.2:mattn_go_colorable/vendor/github.com/mattn/go-colorable \ + mattn:go-isatty:v0.0.12:mattn_go_isatty/vendor/github.com/mattn/go-isatty \ + mattn:go-runewidth:v0.0.7:mattn_go_runewidth/vendor/github.com/mattn/go-runewidth \ + opencontainers:go-digest:v1.0.0:opencontainers_go_digest/vendor/github.com/opencontainers/go-digest \ + opencontainers:image-spec:v1.0.1:opencontainers_image_spec/vendor/github.com/opencontainers/image-spec \ + opencontainers:runtime-spec:4d89ac9fbff6:opencontainers_runtime_spec/vendor/github.com/opencontainers/runtime-spec \ + pkg:errors:v0.9.1:pkg_errors/vendor/github.com/pkg/errors \ + pmezard:go-difflib:v1.0.0:pmezard_go_difflib/vendor/github.com/pmezard/go-difflib \ + protocolbuffers:protobuf-go:v1.25.0:protocolbuffers_protobuf_go/vendor/google.golang.org/protobuf \ + samuelkarp:containerd:b667c15ed877:samuelkarp_containerd/vendor/github.com/containerd/containerd \ + sirupsen:logrus:v1.7.0:sirupsen_logrus/vendor/github.com/sirupsen/logrus \ + spf13:cobra:v1.0.0:spf13_cobra/vendor/github.com/spf13/cobra \ + spf13:pflag:v1.0.5:spf13_pflag/vendor/github.com/spf13/pflag \ + stretchr:testify:v1.5.1:stretchr_testify/vendor/github.com/stretchr/testify Index: head/sysutils/runj/distinfo =================================================================== --- head/sysutils/runj/distinfo +++ head/sysutils/runj/distinfo @@ -0,0 +1,79 @@ +TIMESTAMP = 1615925868 +SHA256 (samuelkarp-runj-g20210315-42281a4_GH0.tar.gz) = 5d5d9a6f79fa4913abe1975c1dd22cdd11215af5bb2a0cc25f38677e7004f84d +SIZE (samuelkarp-runj-g20210315-42281a4_GH0.tar.gz) = 73278 +SHA256 (Microsoft-go-winio-v0.4.16_GH0.tar.gz) = 0cb82f4cdba942af6b545695d694e91b9d9d56bd38555c81744235d7c6f6485d +SIZE (Microsoft-go-winio-v0.4.16_GH0.tar.gz) = 85568 +SHA256 (Microsoft-hcsshim-v0.8.11_GH0.tar.gz) = 6c66cfde1ea3cc20094a1b66a0b2c30c076c99f8e073f223667deb4d762f580a +SIZE (Microsoft-hcsshim-v0.8.11_GH0.tar.gz) = 5589045 +SHA256 (VividCortex-ewma-v1.1.1_GH0.tar.gz) = 3b2d62412b7ba2726a379cc0ae557595c027dc8206d0ef98f13831281b8f2b85 +SIZE (VividCortex-ewma-v1.1.1_GH0.tar.gz) = 6042 +SHA256 (census-instrumentation-opencensus-go-v0.22.2_GH0.tar.gz) = 0aa930142b669d7c47e2b8343f6adc9f03414a9c45763c5f746de95231d6ad6d +SIZE (census-instrumentation-opencensus-go-v0.22.2_GH0.tar.gz) = 165321 +SHA256 (cheggaaa-pb-v3.0.5_GH0.tar.gz) = c3442908441cd17c4a2ed0c9f0875eeb52947e3b73d5c6e483d2698d7ed8ef43 +SIZE (cheggaaa-pb-v3.0.5_GH0.tar.gz) = 30815 +SHA256 (containerd-cgroups-0b889c03f102_GH0.tar.gz) = d61dbf43c0c079935df825a5cc94bcd81d7199875cfe907ea829f60bc0a9c21b +SIZE (containerd-cgroups-0b889c03f102_GH0.tar.gz) = 83311 +SHA256 (containerd-console-v1.0.1_GH0.tar.gz) = 5665653d053e1379d54e142b58492b1f9f01d841cd2726b78d6b5b2b8a674821 +SIZE (containerd-console-v1.0.1_GH0.tar.gz) = 929834 +SHA256 (containerd-fifo-0724c46b320c_GH0.tar.gz) = 203452d6dc77d9c7d9d9734710dd772a5eeb2199a6343de86ad131e357350ac2 +SIZE (containerd-fifo-0724c46b320c_GH0.tar.gz) = 12198 +SHA256 (containerd-go-runc-7016d3ce2328_GH0.tar.gz) = c8da706665d2b258e4a39700e426969f1f18761694b3ff36aecff743921a6898 +SIZE (containerd-go-runc-7016d3ce2328_GH0.tar.gz) = 15430 +SHA256 (containerd-ttrpc-v1.0.2_GH0.tar.gz) = ae279b8c15769e54d6d4015881dcc5420c34888d1f9f628d366bc6d59b7d3a0e +SIZE (containerd-ttrpc-v1.0.2_GH0.tar.gz) = 31440 +SHA256 (containerd-typeurl-v1.0.1_GH0.tar.gz) = b3600e15f7b6100792eceecf6a8449e233ccdcace01bb6668a816b45959aa3e8 +SIZE (containerd-typeurl-v1.0.1_GH0.tar.gz) = 9159 +SHA256 (davecgh-go-spew-v1.1.1_GH0.tar.gz) = 7d82b9bb7291adbe7498fe946920ab3e7fc9e6cbfc3b2294693fad00bf0dd17e +SIZE (davecgh-go-spew-v1.1.1_GH0.tar.gz) = 42152 +SHA256 (fatih-color-v1.7.0_GH0.tar.gz) = 4650d7aa3feed266fc85d91dc34ca9cffdf7ee03ea29bf2cbf84bbecc75fb755 +SIZE (fatih-color-v1.7.0_GH0.tar.gz) = 816449 +SHA256 (go-yaml-yaml-v2.3.0_GH0.tar.gz) = 42027002bf258009d498600b04b8c9cbb29d2193185ea7bfa8fefe194fe72a07 +SIZE (go-yaml-yaml-v2.3.0_GH0.tar.gz) = 72816 +SHA256 (gogo-protobuf-v1.3.1_GH0.tar.gz) = 5184f06decd681fcc82f6583976111faf87189c0c2f8063b34ac2ea9ed997236 +SIZE (gogo-protobuf-v1.3.1_GH0.tar.gz) = 2038188 +SHA256 (golang-groupcache-215e87163ea7_GH0.tar.gz) = 500b097a42fb5c0cd516f1bb56e9c745ba6c1c910b4dc7296aea2b9120ee5e70 +SIZE (golang-groupcache-215e87163ea7_GH0.tar.gz) = 26040 +SHA256 (golang-protobuf-v1.4.3_GH0.tar.gz) = 5736f943f8647362f5559689df6154f3c85d261fb088867c8a68494e2a767610 +SIZE (golang-protobuf-v1.4.3_GH0.tar.gz) = 171969 +SHA256 (golang-sys-69691e467435_GH0.tar.gz) = ff6e03076a659a0eb49caf4df7d81ac2f4e123cebee59387a48badaec2e16989 +SIZE (golang-sys-69691e467435_GH0.tar.gz) = 1085437 +SHA256 (google-go-genproto-cb27e3aa2013_GH0.tar.gz) = 1f0c3be40b17772975c71b54ca512ee681f7db384ebc43c8adb24f1ab44d2d0e +SIZE (google-go-genproto-cb27e3aa2013_GH0.tar.gz) = 9293098 +SHA256 (gotestyourself-gotest.tools-v3.0.3_GH0.tar.gz) = a9b13a102405961e2e7f81d0999ac3ec38b118c9db16e0d957967aabef5e2e80 +SIZE (gotestyourself-gotest.tools-v3.0.3_GH0.tar.gz) = 63489 +SHA256 (grpc-grpc-go-v1.34.0_GH0.tar.gz) = 44eef6f9d159f289383ba844ca1a5b56eaf1a34463ee4b8e9e55c98d62108c1d +SIZE (grpc-grpc-go-v1.34.0_GH0.tar.gz) = 1159437 +SHA256 (hashicorp-errwrap-v1.0.0_GH0.tar.gz) = 26afc0e5895c6ce87c881c5c02c682ccc9a08174a9c27ca26d4a1e72dbf78128 +SIZE (hashicorp-errwrap-v1.0.0_GH0.tar.gz) = 8346 +SHA256 (hashicorp-go-multierror-v1.1.0_GH0.tar.gz) = 466a1f3596417a35b407d06d2dc2cb87dba46b025af4f77d30f82aa6e0e6d4d4 +SIZE (hashicorp-go-multierror-v1.1.0_GH0.tar.gz) = 12084 +SHA256 (inconshreveable-mousetrap-v1.0.0_GH0.tar.gz) = 5edc7731c819c305623568e317aa253d342be3447def97f1fa9e10eb5ad819f6 +SIZE (inconshreveable-mousetrap-v1.0.0_GH0.tar.gz) = 2290 +SHA256 (mattn-go-colorable-v0.1.2_GH0.tar.gz) = a7189bd9005c571303b117261955ce53b0e2aa89fe415e2289659be343fe1651 +SIZE (mattn-go-colorable-v0.1.2_GH0.tar.gz) = 8518 +SHA256 (mattn-go-isatty-v0.0.12_GH0.tar.gz) = addbdc341d7685ed4cc8d2d8a8fd2bd9b784bde00d0ea99fb251039fc10c611c +SIZE (mattn-go-isatty-v0.0.12_GH0.tar.gz) = 4548 +SHA256 (mattn-go-runewidth-v0.0.7_GH0.tar.gz) = 09270ddb93b2d77d4b3903bbadacbb3a3d4f0cce93c373fb21503840829d8697 +SIZE (mattn-go-runewidth-v0.0.7_GH0.tar.gz) = 16089 +SHA256 (opencontainers-go-digest-v1.0.0_GH0.tar.gz) = 1e74706d265c92f62793af741e322163f3c08afa66f5a7926c9b9ccb44fed230 +SIZE (opencontainers-go-digest-v1.0.0_GH0.tar.gz) = 24456 +SHA256 (opencontainers-image-spec-v1.0.1_GH0.tar.gz) = c7ca467de2cca65e7ea74414a3f51e91450156213af485830dcdfff0571e10d2 +SIZE (opencontainers-image-spec-v1.0.1_GH0.tar.gz) = 138674 +SHA256 (opencontainers-runtime-spec-4d89ac9fbff6_GH0.tar.gz) = c51ba8e47ae6b638cecc6a5ed4f165588f010bbbce8a9d41d9038377f5edbbb8 +SIZE (opencontainers-runtime-spec-4d89ac9fbff6_GH0.tar.gz) = 72262 +SHA256 (pkg-errors-v0.9.1_GH0.tar.gz) = 56bfd893023daa498508bfe161de1be83299fcf15376035e7df79cbd7d6fa608 +SIZE (pkg-errors-v0.9.1_GH0.tar.gz) = 13415 +SHA256 (pmezard-go-difflib-v1.0.0_GH0.tar.gz) = 28f3dc1b5c0efd61203ab07233f774740d3bf08da4d8153fb5310db6cea0ebda +SIZE (pmezard-go-difflib-v1.0.0_GH0.tar.gz) = 11398 +SHA256 (protocolbuffers-protobuf-go-v1.25.0_GH0.tar.gz) = c1c04d6e36c0d0fb6f3374197f9025d7e6df13f38a974098be020617c00fbaf2 +SIZE (protocolbuffers-protobuf-go-v1.25.0_GH0.tar.gz) = 1258804 +SHA256 (samuelkarp-containerd-b667c15ed877_GH0.tar.gz) = 14d710856cf0e5984af5eaa488773f9da0f19f95013c01a1521e4f2cfee4ee69 +SIZE (samuelkarp-containerd-b667c15ed877_GH0.tar.gz) = 6997235 +SHA256 (sirupsen-logrus-v1.7.0_GH0.tar.gz) = a7baaa1c646441d002f3867b5998b6b45b629ecfad317d468a981e23e0c9c6ca +SIZE (sirupsen-logrus-v1.7.0_GH0.tar.gz) = 46392 +SHA256 (spf13-cobra-v1.0.0_GH0.tar.gz) = 58dbfe1b4dbc6751575e94d1e62d073098e0b41790bc1c7a7a95ec6b870ac697 +SIZE (spf13-cobra-v1.0.0_GH0.tar.gz) = 128897 +SHA256 (spf13-pflag-v1.0.5_GH0.tar.gz) = 9a2cae1f8e8ab0d2cc8ebe468e871af28d9ac0962cf0520999e3ba85f0c7b808 +SIZE (spf13-pflag-v1.0.5_GH0.tar.gz) = 50796 +SHA256 (stretchr-testify-v1.5.1_GH0.tar.gz) = 6d65f92aeff186bb261dbdb885d9f3ba09db3d79eb5f212fcace1fd4a2858263 +SIZE (stretchr-testify-v1.5.1_GH0.tar.gz) = 78657 Index: head/sysutils/runj/pkg-descr =================================================================== --- head/sysutils/runj/pkg-descr +++ head/sysutils/runj/pkg-descr @@ -0,0 +1,10 @@ +runj is an experimental, proof-of-concept OCI-compatible runtime for +FreeBSD jails. + +Important: runj is a proof-of-concept and the implementation has not +been evaluated for its security. Do not use runj on a production +system. Do not run workloads inside runj that rely on a secure +configuration. This is a personal project, not backed by the +author's employer. + +WWW: https://github.com/samuelkarp/runj