mkosi: an alterantive builder to the Dockerfile

Though this must require a newer version of `mkosi` than the
mkosi-1-1.fc25.noarch I am testing with. The `mkosi.nspawn` seems to be
ignored, so the `go get ./...` is failing due to private-networking ...
maybe the build script should start dhcp? ... seems yucky

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2017-04-13 09:51:03 -04:00
parent b3f5e06c4d
commit dc31e2f157
Signed by: vbatts
GPG Key ID: 10937E57733F1362
3 changed files with 21 additions and 0 deletions

7
mkosi.build Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
cd ${SRCDIR}
export GOPATH=/usr/local
mkdir -p ${GOPATH}/src/github.com/vbatts/
ln -sf $(pwd) ${GOPATH}/src/github.com/vbatts/imgsrv
go get -d -v ./...
go install github.com/vbatts/imgsrv

11
mkosi.default Normal file
View File

@ -0,0 +1,11 @@
[Distribution]
Distribution=fedora
Release=25
[Output]
Format=tar
Bootable=no
[Packages]
Packages=
BuildPackages=golang git bzr

3
mkosi.nspawn Normal file
View File

@ -0,0 +1,3 @@
[Network]
Private=yes
VirtualEthernet=yes