mirror of
https://github.com/vbatts/imgsrv.git
synced 2025-02-17 07:17:52 +00:00
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:
parent
b3f5e06c4d
commit
dc31e2f157
3 changed files with 21 additions and 0 deletions
7
mkosi.build
Executable file
7
mkosi.build
Executable 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
11
mkosi.default
Normal 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
3
mkosi.nspawn
Normal file
|
@ -0,0 +1,3 @@
|
|||
[Network]
|
||||
Private=yes
|
||||
VirtualEthernet=yes
|
Loading…
Reference in a new issue