Build ipxe in a Docker VM. Supports Docker Machine.
- Edit
.env
to configure e.g. the path to the embedded script - (optionaly) Edit or copy the embedded script
config/from_http_server.ipxe
- run
./build_ipxe.sh
Configuration is done in .env
.
MAKE_TARGET
: What to build, e.g.bin/undionly.kpxe
OPTIONS
: Options passed to make, e.g.EMBED=/config/from_http_server.ipxe
DEBUG_OPTIONS
: Debug options, e.g.DEBUG=http
The mountpoints on Docker Machine (e.g. Mac OS) are hardcoded to use hgfs
(VMWARE Fusion). Pull requests for e.g. VirtualBox or Joyent Triton are weclome.
# ...
build-on-docker-machine-fusion:
extends:
service: build
volumes:
- /mnt/hgfs/${PWD}/out:/out:rw
- /mnt/hgfs/${PWD}/config:/config:ro
./input
: Configuration files used inside the vm, e.g. the embedded script. Mapped to/input
../out
: Where theMAKE_TARGET
is copied to after build. Mapped to/out
.
./build_ipxe.sh
Building build-on-docker-machine-fusion...
Step 0 : FROM ubuntu:15.04
---> 565cf6106ea7
Step 1 : MAINTAINER Jens Neuhalfen <[email protected]>
---> Using cache
---> 6174b09280a7
# ...
[BUILD] bin/davicom.ids.o
[BUILD] bin/3c509.ids.o
[BUILD] bin/igbvf_main.ids.o
# ...
################################## build complete
##
## Build output can be found in ./out
##
## ./out/undionly.kpxe
##
Pull requests are welcome.