Nginx (Nomad)

Overview

This is a NGINX jail that can be started with pot but it can also be deployed via nomad.

NGINX is started as blocking task when the jail is started (see nginx-nomad+4.sh). The image also is slimmed (see nginx-nomad+3.sh)

For more details about nomadimages, see about potluck.

Nomad Job Description Example

An easy way to use the jail is to copy in a nginx.conf file on start and mount the www directory into the jail (which needs to be referenced by the nginx.conf file of course):

job "example" {
  datacenters = ["datacenter"]
  type        = "service"

  group "group1" {
    count = 1 

    task "www1" {
      driver = "pot"

      service {
        tags = ["nginx", "www"]
        name = "nginx-example-service"
        port = "http"

         check {
            type     = "tcp"
            name     = "tcp"
            interval = "60s"
            timeout  = "30s"
          }
      }

      config {
        image = "https://potluck.honeyguide.net/nginx-nomad"
        pot = "nginx-nomad-amd64-12_1"
        tag = "1.1.2"
        command = "nginx"
        args = ["-g","'daemon off;'"]

       copy = [
         "/mnt/s3/web/nginx.conf:/usr/local/etc/nginx/nginx.conf",
       ]
       mount = [
         "/mnt/s3/web/www:/mnt"
       ]
        port_map = {
          http = "80"
        }
      }

      resources {
        cpu = 200
        memory = 64

        network {
          mbits = 10
          port "http" {}
        }
      }
    }
  }
}

How To Use The Ready-Made Image

FreeBSD 12.1:
pot import -p nginx-nomad-amd64-12_1 -t 1.1.2 -U https://potluck.honeyguide.net/nginx-nomad

FreeBSD 11.4:
pot import -p nginx-nomad-amd64-11_4 -t 1.1.2 -U https://potluck.honeyguide.net/nginx-nomad

Note: Some images might require specific network configuration, double check the Overview-chapter at the top.

Alternatively: Create a Jail With This Flavour Yourself

1. Create Flavour Files

Create the following
/usr/local/etc/pot/flavours/nginx-nomad.sh
and
chmod ugo+x /usr/local/etc/pot/flavours/nginx-nomad.sh

#!/bin/sh

[ -w /etc/pkg/FreeBSD.conf ] && sed -i '' 's/quarterly/latest/' /etc/pkg/FreeBSD.conf
ASSUME_ALWAYS_YES=yes pkg bootstrap
touch /etc/rc.conf
sysrc sendmail_enable="NONE"
pkg install -y nginx
echo "error_log /dev/stderr;" >> /usr/local/etc/nginx/nginx.conf
sed -i '' 's%#access_log  logs/access.log .*$%access_log /dev/stdout combined;%' /usr/local/etc/nginx/nginx.conf
pkg clean -y

Create the following /usr/local/etc/pot/flavours/nginx-nomad:

set-attribute -A persistent -V OFF
set-attribute -A no-rc-script -V ON

Create the following
/usr/local/etc/pot/flavours/nginx-nomad+3.sh
and
chmod ugo+x /usr/local/etc/pot/flavours/nginx-nomad+3.sh

#!/bin/sh

dirs="/usr/share/bsdconfig /usr/share/doc /usr/share/dtrace /usr/share/examples /usr/share/man /usr/share/openssl /usr/share/sendmail /usr/share/pc-sysinstall /usr/libexec/bsdinstall /usr/libexec/bsdconfig /rescue /usr/tests /usr/lib32 /usr/lib/clang /usr/include /var/db/freebsd-update /var/db/etcupdate /boot"
usr_bin="c++ c++filt c89 c99 cc CC cpp clang clang-cpp clang-tblgen clang++ gdb gdbtui gdbserver ld ld.bfd ld.lld lldb llvm-objdump llvm-tblgen nm objcopy objdump strings strip"
usr_bin_glob="svnlite yp"

usr_sbin="dtrace"
usr_sbin_glob="bhyve boot yp"
rm -f /usr/lib/*.a
## Remove pkg stuff
rm -rf /var/db/pkg/*
rm -rf /usr/sbin/pkg
rm -rf /usr/local/sbin/pkg

for d in $dirs ; do
	rm -rf ${d}
done
(
	cd /usr/bin
	for f in $usr_bin ; do
		rm -f $f
	done
	for g in $usr_bin_glob ; do
		rm -rf ${g}*
	done
)
(
	cd /usr/sbin
	for g in $usr_sbin_glob ; do
		rm -rf ${g}*
	done
	rm -f $usr_sbin
)

Create the following /usr/local/etc/pot/flavours/nginx-nomad+4:

set-cmd -c "nginx -g 'daemon off;'"

2. Create Jail From Flavour

Run
pot create -b <FreeBSD Version> -p <jailname> -t single -N public-bridge -f fbsd-update -f nginx-nomad -f nginx-nomad+3 -f nginx-nomad+4

with your FreeBSD version (e.g. 12.1) and the name your jail should get.

Note: Some images might require specific network configuration, double check the Overview-chapter at the top.

Version History

1.1.2

  • Added nomad job example file

1.1.1

  • Added slim.sh as nginx-nomad+3.sh as Jenkins no longer creates slimmed version of each flavour

1.1

  • Fixed naming of second flavour (nginx-nomad+1.sh)

1.0

  • Initial commit

These images were built on Tue Jul 28 08:04:35 UTC 2020

Manual Image Download Links

nginx-nomad-amd64-12_1_1.1.2.xz ( 43.6387 MB )
nginx-nomad-amd64-12_1_1.1.2.xz.skein ( 0.250977 KB )

nginx-nomad-amd64-11_4_1.1.2.xz ( 41.6475 MB )
nginx-nomad-amd64-11_4_1.1.2.xz.skein ( 0.250977 KB )

Jenkins Pot Creation Logs

nginx-nomad-amd64-12_1_1.1.2:


nginx-nomad/nginx-nomad:
set-attribute -A persistent -V OFF
set-attribute -A no-rc-script -V ON
nginx-nomad/nginx-nomad.sh:
#!/bin/sh

[ -w /etc/pkg/FreeBSD.conf ] && sed -i '' 's/quarterly/latest/' /etc/pkg/FreeBSD.conf
ASSUME_ALWAYS_YES=yes pkg bootstrap
touch /etc/rc.conf
sysrc sendmail_enable="NONE"
pkg install -y nginx
echo "error_log /dev/stderr;" >> /usr/local/etc/nginx/nginx.conf
sed -i '' 's%#access_log  logs/access.log .*$%access_log /dev/stdout combined;%' /usr/local/etc/nginx/nginx.conf
pkg clean -y

nginx-nomad/nginx-nomad+1:
nginx-nomad/nginx-nomad+1.sh:

nginx-nomad/nginx-nomad+2:
nginx-nomad/nginx-nomad+2.sh:

nginx-nomad/nginx-nomad+3:
nginx-nomad/nginx-nomad+3.sh:
#!/bin/sh

dirs="/usr/share/bsdconfig /usr/share/doc /usr/share/dtrace /usr/share/examples /usr/share/man /usr/share/openssl /usr/share/sendmail /usr/share/pc-sysinstall /usr/libexec/bsdinstall /usr/libexec/bsdconfig /rescue /usr/tests /usr/lib32 /usr/lib/clang /usr/include /var/db/freebsd-update /var/db/etcupdate /boot"
usr_bin="c++ c++filt c89 c99 cc CC cpp clang clang-cpp clang-tblgen clang++ gdb gdbtui gdbserver ld ld.bfd ld.lld lldb llvm-objdump llvm-tblgen nm objcopy objdump strings strip"
usr_bin_glob="svnlite yp"

usr_sbin="dtrace"
usr_sbin_glob="bhyve boot yp"
rm -f /usr/lib/*.a
## Remove pkg stuff
rm -rf /var/db/pkg/*
rm -rf /usr/sbin/pkg
rm -rf /usr/local/sbin/pkg

for d in $dirs ; do
	rm -rf ${d}
done
(
	cd /usr/bin
	for f in $usr_bin ; do
		rm -f $f
	done
	for g in $usr_bin_glob ; do
		rm -rf ${g}*
	done
)
(
	cd /usr/sbin
	for g in $usr_sbin_glob ; do
		rm -rf ${g}*
	done
	rm -f $usr_sbin
)

nginx-nomad/nginx-nomad+4:
set-cmd -c "nginx -g 'daemon off;'"
nginx-nomad/nginx-nomad+4.sh:
Password:=====>  -i auto: assigned 10.192.0.3
===>  Creating a new pot
===>  pot name : nginx-nomad-amd64-12_1
===>  type : single
===>  base : 12.1
===>  pot_base :
===>  level : 0
===>  network-type: public-bridge
===>  ip : 10.192.0.3
===>  bridge :
===>  dns : inherit
===>  flavours : fbsd-update nginx-nomad nginx-nomad+1 nginx-nomad+2 nginx-nomad+3 nginx-nomad+4
===>  Fetching FreeBSD 12.1
===>  Extract the tarball
=====>  Flavour: fbsd-update
=====>  Starting nginx-nomad-amd64-12_1 pot for the initial bootstrap
=====>  mount /mnt/data/pot/jails/nginx-nomad-amd64-12_1/m/tmp
defaultrouter: NO -> 10.192.0.1
===>  Starting the pot nginx-nomad-amd64-12_1
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
32-bit compatibility ldconfig path: /usr/lib32
Starting Network: lo0 epair0b.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
	inet6 ::1 prefixlen 128
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
	inet 127.0.0.1 netmask 0xff000000
	groups: lo
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
epair0b: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=8<VLAN_MTU>
	ether 02:75:c1:1f:99:0b
	inet 10.192.0.3 netmask 0xffc00000 broadcast 10.255.255.255
	groups: epair
	media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
	status: active
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
add host 127.0.0.1: gateway lo0 fib 0: route already in table
add net default: gateway 10.192.0.1
add host ::1: gateway lo0 fib 0: route already in table
add net fe80::: gateway ::1
add net ff02::: gateway ::1
add net ::ffff:0.0.0.0: gateway ::1
add net ::0.0.0.0: gateway ::1
Generating host.conf.
Creating and/or trimming log files.
Starting syslogd.
Clearing /tmp (X related).
Updating motd:.
Starting sendmail_submit.
Starting sendmail_msp_queue.
Starting cron.

Tue Jul 28 08:02:27 UTC 2020
/usr/local/etc/pot/flavours/fbsd-update.sh -> /mnt/data/pot/jails/nginx-nomad-amd64-12_1/m/tmp/fbsd-update.sh
=====>  Executing fbsd-update script on nginx-nomad-amd64-12_1
src component not installed, skipped
freebsd-update fetch should not be run non-interactively.
Run freebsd-update cron instead.
src component not installed, skipped
No updates are available to install.
Run '/usr/sbin/freebsd-update fetch' first.
=====>  Stop the pot nginx-nomad-amd64-12_1
=====>  Remove epair0[a|b] network interfaces
=====>  unmount /mnt/data/pot/jails/nginx-nomad-amd64-12_1/m/tmp
=====>  unmount /mnt/data/pot/jails/nginx-nomad-amd64-12_1/m/dev
=====>  Flavour: nginx-nomad
=====>  Executing nginx-nomad pot commands on nginx-nomad-amd64-12_1
=====>  Starting nginx-nomad-amd64-12_1 pot for the initial bootstrap
=====>  mount /mnt/data/pot/jails/nginx-nomad-amd64-12_1/m/tmp
===>  Starting the pot nginx-nomad-amd64-12_1
add net default: gateway 10.192.0.1
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
32-bit compatibility ldconfig path: /usr/lib32
Starting Network: lo0 epair0b.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
	inet6 ::1 prefixlen 128
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
	inet 127.0.0.1 netmask 0xff000000
	groups: lo
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
epair0b: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=8<VLAN_MTU>
	ether 02:23:3f:bd:c4:0b
	inet6 fe80::23:3fff:febd:c40b%epair0b prefixlen 64 tentative scopeid 0x2
	inet 10.192.0.3 netmask 0xffc00000 broadcast 10.255.255.255
	groups: epair
	media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
	status: active
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
add host 127.0.0.1: gateway lo0 fib 0: route already in table
add net default: gateway 10.192.0.1
add host ::1: gateway lo0 fib 0: route already in table
add net fe80::: gateway ::1
add net ff02::: gateway ::1
add net ::ffff:0.0.0.0: gateway ::1
add net ::0.0.0.0: gateway ::1
Creating and/or trimming log files.
Starting syslogd.
Clearing /tmp (X related).
Updating motd:.
Starting sendmail_submit.
Starting sendmail_msp_queue.
Starting cron.

Tue Jul 28 08:02:33 UTC 2020
/usr/local/etc/pot/flavours/nginx-nomad.sh -> /mnt/data/pot/jails/nginx-nomad-amd64-12_1/m/tmp/nginx-nomad.sh
=====>  Executing nginx-nomad script on nginx-nomad-amd64-12_1
[nginx-nomad-amd64-12_1.vsf00001.cpt.za.honeyguide.net] Installing pkg-1.14.6...
[nginx-nomad-amd64-12_1.vsf00001.cpt.za.honeyguide.net] Extracting pkg-1.14.6: .......... done
Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:12:amd64/latest, please wait...
Verifying signature with trusted certificate pkg.freebsd.org.2013102301... done
sendmail_enable: NO -> NONE
Updating FreeBSD repository catalogue...
[nginx-nomad-amd64-12_1.vsf00001.cpt.za.honeyguide.net] Fetching meta.conf: . done
[nginx-nomad-amd64-12_1.vsf00001.cpt.za.honeyguide.net] Fetching packagesite.txz: .......... done
Processing entries: .......... done
FreeBSD repository update completed. 31998 packages processed.
All repositories are up to date.
Updating database digests format: . done
The following 2 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	nginx: 1.18.0_21,2
	pcre: 8.44

Number of packages to be installed: 2

The process will require 8 MiB more space.
2 MiB to be downloaded.
[nginx-nomad-amd64-12_1.vsf00001.cpt.za.honeyguide.net] [1/2] Fetching nginx-1.18.0_21,2.txz: .......... done
[nginx-nomad-amd64-12_1.vsf00001.cpt.za.honeyguide.net] [2/2] Fetching pcre-8.44.txz: .......... done
Checking integrity... done (0 conflicting)
[nginx-nomad-amd64-12_1.vsf00001.cpt.za.honeyguide.net] [1/2] Installing pcre-8.44...
[nginx-nomad-amd64-12_1.vsf00001.cpt.za.honeyguide.net] [1/2] Extracting pcre-8.44: .......... done
[nginx-nomad-amd64-12_1.vsf00001.cpt.za.honeyguide.net] [2/2] Installing nginx-1.18.0_21,2...
===> Creating groups.
Using existing group 'www'.
===> Creating users
Using existing user 'www'.
[nginx-nomad-amd64-12_1.vsf00001.cpt.za.honeyguide.net] [2/2] Extracting nginx-1.18.0_21,2: .......... done
=====
Message from nginx-1.18.0_21,2:

--
Recent version of the NGINX introduces dynamic modules support.  In
FreeBSD ports tree this feature was enabled by default with the DSO
knob.  Several vendor's and third-party modules have been converted
to dynamic modules.  Unset the DSO knob builds an NGINX without
dynamic modules support.

To load a module at runtime, include the new `load_module'
directive in the main context, specifying the path to the shared
object file for the module, enclosed in quotation marks.  When you
reload the configuration or restart NGINX, the module is loaded in.
It is possible to specify a path relative to the source directory,
or a full path, please see
https://www.nginx.com/blog/dynamic-modules-nginx-1-9-11/ and
http://nginx.org/en/docs/ngx_core_module.html#load_module for
details.

Default path for the NGINX dynamic modules is

/usr/local/libexec/nginx.
Nothing to do.
=====>  Stop the pot nginx-nomad-amd64-12_1
=====>  Remove epair0[a|b] network interfaces
=====>  unmount /mnt/data/pot/jails/nginx-nomad-amd64-12_1/m/tmp
=====>  unmount /mnt/data/pot/jails/nginx-nomad-amd64-12_1/m/dev
=====>  Flavour: nginx-nomad+1
=====>  Executing nginx-nomad+1 pot commands on nginx-nomad-amd64-12_1
=====>  No shell script available for the flavour nginx-nomad+1
=====>  Flavour: nginx-nomad+2
=====>  Executing nginx-nomad+2 pot commands on nginx-nomad-amd64-12_1
=====>  No shell script available for the flavour nginx-nomad+2
=====>  Flavour: nginx-nomad+3
=====>  Executing nginx-nomad+3 pot commands on nginx-nomad-amd64-12_1
=====>  Starting nginx-nomad-amd64-12_1 pot for the initial bootstrap
=====>  mount /mnt/data/pot/jails/nginx-nomad-amd64-12_1/m/tmp
===>  Starting the pot nginx-nomad-amd64-12_1
add net default: gateway 10.192.0.1
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg /usr/local/lib/compat/pkg
32-bit compatibility ldconfig path: /usr/lib32
Starting Network: lo0 epair0b.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
	inet6 ::1 prefixlen 128
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
	inet 127.0.0.1 netmask 0xff000000
	groups: lo
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
epair0b: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=8<VLAN_MTU>
	ether 02:0a:b0:e2:2e:0b
	inet6 fe80::a:b0ff:fee2:2e0b%epair0b prefixlen 64 tentative scopeid 0x2
	inet 10.192.0.3 netmask 0xffc00000 broadcast 10.255.255.255
	groups: epair
	media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
	status: active
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
add host 127.0.0.1: gateway lo0 fib 0: route already in table
add net default: gateway 10.192.0.1
add host ::1: gateway lo0 fib 0: route already in table
add net fe80::: gateway ::1
add net ff02::: gateway ::1
add net ::ffff:0.0.0.0: gateway ::1
add net ::0.0.0.0: gateway ::1
Creating and/or trimming log files.
Starting syslogd.
Clearing /tmp (X related).
Updating motd:.
Starting cron.

Tue Jul 28 08:02:53 UTC 2020
/usr/local/etc/pot/flavours/nginx-nomad+3.sh -> /mnt/data/pot/jails/nginx-nomad-amd64-12_1/m/tmp/nginx-nomad+3.sh
=====>  Executing nginx-nomad+3 script on nginx-nomad-amd64-12_1
=====>  Stop the pot nginx-nomad-amd64-12_1
=====>  Remove epair0[a|b] network interfaces
=====>  unmount /mnt/data/pot/jails/nginx-nomad-amd64-12_1/m/tmp
=====>  unmount /mnt/data/pot/jails/nginx-nomad-amd64-12_1/m/dev
=====>  Flavour: nginx-nomad+4
=====>  Executing nginx-nomad+4 pot commands on nginx-nomad-amd64-12_1
=====>  No shell script available for the flavour nginx-nomad+4

nginx-nomad-amd64-11_4_1.1.2:


nginx-nomad/nginx-nomad:
set-attribute -A persistent -V OFF
set-attribute -A no-rc-script -V ON
nginx-nomad/nginx-nomad.sh:
#!/bin/sh

[ -w /etc/pkg/FreeBSD.conf ] && sed -i '' 's/quarterly/latest/' /etc/pkg/FreeBSD.conf
ASSUME_ALWAYS_YES=yes pkg bootstrap
touch /etc/rc.conf
sysrc sendmail_enable="NONE"
pkg install -y nginx
echo "error_log /dev/stderr;" >> /usr/local/etc/nginx/nginx.conf
sed -i '' 's%#access_log  logs/access.log .*$%access_log /dev/stdout combined;%' /usr/local/etc/nginx/nginx.conf
pkg clean -y

nginx-nomad/nginx-nomad+1:
nginx-nomad/nginx-nomad+1.sh:

nginx-nomad/nginx-nomad+2:
nginx-nomad/nginx-nomad+2.sh:

nginx-nomad/nginx-nomad+3:
nginx-nomad/nginx-nomad+3.sh:
#!/bin/sh

dirs="/usr/share/bsdconfig /usr/share/doc /usr/share/dtrace /usr/share/examples /usr/share/man /usr/share/openssl /usr/share/sendmail /usr/share/pc-sysinstall /usr/libexec/bsdinstall /usr/libexec/bsdconfig /rescue /usr/tests /usr/lib32 /usr/lib/clang /usr/include /var/db/freebsd-update /var/db/etcupdate /boot"
usr_bin="c++ c++filt c89 c99 cc CC cpp clang clang-cpp clang-tblgen clang++ gdb gdbtui gdbserver ld ld.bfd ld.lld lldb llvm-objdump llvm-tblgen nm objcopy objdump strings strip"
usr_bin_glob="svnlite yp"

usr_sbin="dtrace"
usr_sbin_glob="bhyve boot yp"
rm -f /usr/lib/*.a
## Remove pkg stuff
rm -rf /var/db/pkg/*
rm -rf /usr/sbin/pkg
rm -rf /usr/local/sbin/pkg

for d in $dirs ; do
	rm -rf ${d}
done
(
	cd /usr/bin
	for f in $usr_bin ; do
		rm -f $f
	done
	for g in $usr_bin_glob ; do
		rm -rf ${g}*
	done
)
(
	cd /usr/sbin
	for g in $usr_sbin_glob ; do
		rm -rf ${g}*
	done
	rm -f $usr_sbin
)

nginx-nomad/nginx-nomad+4:
set-cmd -c "nginx -g 'daemon off;'"
nginx-nomad/nginx-nomad+4.sh:
Password:=====>  -i auto: assigned 10.192.0.4
===>  Creating a new pot
===>  pot name : nginx-nomad-amd64-11_4
===>  type : single
===>  base : 11.4
===>  pot_base :
===>  level : 0
===>  network-type: public-bridge
===>  ip : 10.192.0.4
===>  bridge :
===>  dns : inherit
===>  flavours : fbsd-update nginx-nomad nginx-nomad+1 nginx-nomad+2 nginx-nomad+3 nginx-nomad+4
===>  Fetching FreeBSD 11.4
===>  Extract the tarball
=====>  Flavour: fbsd-update
=====>  Starting nginx-nomad-amd64-11_4 pot for the initial bootstrap
=====>  mount /mnt/data/pot/jails/nginx-nomad-amd64-11_4/m/tmp
defaultrouter: NO -> 10.192.0.1
===>  Starting the pot nginx-nomad-amd64-11_4
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
32-bit compatibility ldconfig path: /usr/lib32
Starting Network: lo0 epair0b.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
	inet6 ::1 prefixlen 128
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
	inet 127.0.0.1 netmask 0xff000000
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
	groups: lo
epair0b: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=8<VLAN_MTU>
	ether 02:ba:0d:04:c2:0b
	hwaddr 02:ba:0d:04:c2:0b
	inet 10.192.0.4 netmask 0xffc00000 broadcast 10.255.255.255
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
	media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
	status: active
	groups: epair
add host 127.0.0.1: gateway lo0 fib 0: route already in table
add net default: gateway 10.192.0.1
add host ::1: gateway lo0 fib 0: route already in table
add net fe80::: gateway ::1
add net ff02::: gateway ::1
add net ::ffff:0.0.0.0: gateway ::1
add net ::0.0.0.0: gateway ::1
Generating host.conf.
Creating and/or trimming log files.
Starting syslogd.
Clearing /tmp (X related).
Updating motd:.
Starting sendmail_submit.
Starting sendmail_msp_queue.
Starting cron.

Tue Jul 28 08:03:35 UTC 2020
/usr/local/etc/pot/flavours/fbsd-update.sh -> /mnt/data/pot/jails/nginx-nomad-amd64-11_4/m/tmp/fbsd-update.sh
=====>  Executing fbsd-update script on nginx-nomad-amd64-11_4
src component not installed, skipped
freebsd-update fetch should not be run non-interactively.
Run freebsd-update cron instead.
src component not installed, skipped
No updates are available to install.
Run '/usr/sbin/freebsd-update fetch' first.
=====>  Stop the pot nginx-nomad-amd64-11_4
=====>  Remove epair0[a|b] network interfaces
=====>  unmount /mnt/data/pot/jails/nginx-nomad-amd64-11_4/m/tmp
=====>  unmount /mnt/data/pot/jails/nginx-nomad-amd64-11_4/m/dev
=====>  Flavour: nginx-nomad
=====>  Executing nginx-nomad pot commands on nginx-nomad-amd64-11_4
=====>  Starting nginx-nomad-amd64-11_4 pot for the initial bootstrap
=====>  mount /mnt/data/pot/jails/nginx-nomad-amd64-11_4/m/tmp
===>  Starting the pot nginx-nomad-amd64-11_4
add net default: gateway 10.192.0.1
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
32-bit compatibility ldconfig path: /usr/lib32
Starting Network: lo0 epair0b.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
	inet6 ::1 prefixlen 128
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
	inet 127.0.0.1 netmask 0xff000000
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
	groups: lo
epair0b: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=8<VLAN_MTU>
	ether 02:07:71:28:d8:0b
	hwaddr 02:07:71:28:d8:0b
	inet6 fe80::7:71ff:fe28:d80b%epair0b prefixlen 64 tentative scopeid 0x2
	inet 10.192.0.4 netmask 0xffc00000 broadcast 10.255.255.255
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
	media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
	status: active
	groups: epair
add host 127.0.0.1: gateway lo0 fib 0: route already in table
add net default: gateway 10.192.0.1
add host ::1: gateway lo0 fib 0: route already in table
add net fe80::: gateway ::1
add net ff02::: gateway ::1
add net ::ffff:0.0.0.0: gateway ::1
add net ::0.0.0.0: gateway ::1
Creating and/or trimming log files.
Starting syslogd.
Clearing /tmp (X related).
Updating motd:.
Starting sendmail_submit.
Starting sendmail_msp_queue.
Starting cron.

Tue Jul 28 08:03:41 UTC 2020
/usr/local/etc/pot/flavours/nginx-nomad.sh -> /mnt/data/pot/jails/nginx-nomad-amd64-11_4/m/tmp/nginx-nomad.sh
=====>  Executing nginx-nomad script on nginx-nomad-amd64-11_4
[nginx-nomad-amd64-11_4.vsf00001.cpt.za.honeyguide.net] Installing pkg-1.14.6...
[nginx-nomad-amd64-11_4.vsf00001.cpt.za.honeyguide.net] Extracting pkg-1.14.6: .......... done
Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:11:amd64/latest, please wait...
Verifying signature with trusted certificate pkg.freebsd.org.2013102301... done
sendmail_enable: NO -> NONE
Updating FreeBSD repository catalogue...
[nginx-nomad-amd64-11_4.vsf00001.cpt.za.honeyguide.net] Fetching meta.conf: . done
[nginx-nomad-amd64-11_4.vsf00001.cpt.za.honeyguide.net] Fetching packagesite.txz: .......... done
Processing entries: .......... done
FreeBSD repository update completed. 30797 packages processed.
All repositories are up to date.
Updating database digests format: . done
The following 2 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	nginx: 1.18.0_21,2
	pcre: 8.44

Number of packages to be installed: 2

The process will require 8 MiB more space.
2 MiB to be downloaded.
[nginx-nomad-amd64-11_4.vsf00001.cpt.za.honeyguide.net] [1/2] Fetching nginx-1.18.0_21,2.txz: .......... done
[nginx-nomad-amd64-11_4.vsf00001.cpt.za.honeyguide.net] [2/2] Fetching pcre-8.44.txz: .......... done
Checking integrity... done (0 conflicting)
[nginx-nomad-amd64-11_4.vsf00001.cpt.za.honeyguide.net] [1/2] Installing pcre-8.44...
[nginx-nomad-amd64-11_4.vsf00001.cpt.za.honeyguide.net] [1/2] Extracting pcre-8.44: .......... done
[nginx-nomad-amd64-11_4.vsf00001.cpt.za.honeyguide.net] [2/2] Installing nginx-1.18.0_21,2...
===> Creating groups.
Using existing group 'www'.
===> Creating users
Using existing user 'www'.
[nginx-nomad-amd64-11_4.vsf00001.cpt.za.honeyguide.net] [2/2] Extracting nginx-1.18.0_21,2: .......... done
=====
Message from nginx-1.18.0_21,2:

--
Recent version of the NGINX introduces dynamic modules support.  In
FreeBSD ports tree this feature was enabled by default with the DSO
knob.  Several vendor's and third-party modules have been converted
to dynamic modules.  Unset the DSO knob builds an NGINX without
dynamic modules support.

To load a module at runtime, include the new `load_module'
directive in the main context, specifying the path to the shared
object file for the module, enclosed in quotation marks.  When you
reload the configuration or restart NGINX, the module is loaded in.
It is possible to specify a path relative to the source directory,
or a full path, please see
https://www.nginx.com/blog/dynamic-modules-nginx-1-9-11/ and
http://nginx.org/en/docs/ngx_core_module.html#load_module for
details.

Default path for the NGINX dynamic modules is

/usr/local/libexec/nginx.
Nothing to do.
=====>  Stop the pot nginx-nomad-amd64-11_4
=====>  Remove epair0[a|b] network interfaces
=====>  unmount /mnt/data/pot/jails/nginx-nomad-amd64-11_4/m/tmp
=====>  unmount /mnt/data/pot/jails/nginx-nomad-amd64-11_4/m/dev
=====>  Flavour: nginx-nomad+1
=====>  Executing nginx-nomad+1 pot commands on nginx-nomad-amd64-11_4
=====>  No shell script available for the flavour nginx-nomad+1
=====>  Flavour: nginx-nomad+2
=====>  Executing nginx-nomad+2 pot commands on nginx-nomad-amd64-11_4
=====>  No shell script available for the flavour nginx-nomad+2
=====>  Flavour: nginx-nomad+3
=====>  Executing nginx-nomad+3 pot commands on nginx-nomad-amd64-11_4
=====>  Starting nginx-nomad-amd64-11_4 pot for the initial bootstrap
=====>  mount /mnt/data/pot/jails/nginx-nomad-amd64-11_4/m/tmp
===>  Starting the pot nginx-nomad-amd64-11_4
add net default: gateway 10.192.0.1
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg /usr/local/lib/compat/pkg
32-bit compatibility ldconfig path: /usr/lib32
Starting Network: lo0 epair0b.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
	inet6 ::1 prefixlen 128
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
	inet 127.0.0.1 netmask 0xff000000
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
	groups: lo
epair0b: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=8<VLAN_MTU>
	ether 02:24:18:96:9f:0b
	hwaddr 02:24:18:96:9f:0b
	inet6 fe80::24:18ff:fe96:9f0b%epair0b prefixlen 64 tentative scopeid 0x2
	inet 10.192.0.4 netmask 0xffc00000 broadcast 10.255.255.255
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
	media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
	status: active
	groups: epair
add host 127.0.0.1: gateway lo0 fib 0: route already in table
add net default: gateway 10.192.0.1
add host ::1: gateway lo0 fib 0: route already in table
add net fe80::: gateway ::1
add net ff02::: gateway ::1
add net ::ffff:0.0.0.0: gateway ::1
add net ::0.0.0.0: gateway ::1
Creating and/or trimming log files.
Starting syslogd.
Clearing /tmp (X related).
Updating motd:.
Starting cron.

Tue Jul 28 08:04:02 UTC 2020
/usr/local/etc/pot/flavours/nginx-nomad+3.sh -> /mnt/data/pot/jails/nginx-nomad-amd64-11_4/m/tmp/nginx-nomad+3.sh
=====>  Executing nginx-nomad+3 script on nginx-nomad-amd64-11_4
=====>  Stop the pot nginx-nomad-amd64-11_4
=====>  Remove epair0[a|b] network interfaces
=====>  unmount /mnt/data/pot/jails/nginx-nomad-amd64-11_4/m/tmp
=====>  unmount /mnt/data/pot/jails/nginx-nomad-amd64-11_4/m/dev
=====>  Flavour: nginx-nomad+4
=====>  Executing nginx-nomad+4 pot commands on nginx-nomad-amd64-11_4
=====>  No shell script available for the flavour nginx-nomad+4

This site © Honeyguide Group (Pty) Ltd, all the hosted software their respective license owners 2020 - Disclaimer