In d4m.sh line 14:
(cd $DB && \
^-- SC2086: Double quote to prevent globbing and word splitting.
In d4m.sh line 21:
(cd $DB; git reset --hard)
^-- SC2086: Double quote to prevent globbing and word splitting.
In d4m.sh line 22:
if [ -f ${DB}/${DB_BRIDGE} ]; then
^-- SC2086: Double quote to prevent globbing and word splitting.
In d4m.sh line 23:
content=$(cat ${DB}/${DB_BRIDGE})
^-- SC2086: Double quote to prevent globbing and word splitting.
In d4m.sh line 24:
[ ${content} != "1" ] && enable_bridge
^-- SC2086: Double quote to prevent globbing and word splitting.
In d4m.sh line 34:
dd if=/dev/zero of=$DISK bs=1048576 count=256
^-- SC2086: Double quote to prevent globbing and word splitting.
Signed-off-by: Tycho Andersen <tycho@docker.com>
Note that the EFI ISO is not yet automatically sized, and the
kernel command lines are currently hard coded in the builders.
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
Don't return if the process does not exist. Instead proceed and delete
the state directory.
This allows us to use the Destroy() method elsewhere to clean up the state.
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
Instead pass the directory where to find initrd/vmlinuz via the
"Moby" entry in the instance JSON config.
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This change now allows setting the Disk size, memory, and number of CPUs
for an instance via the JSON config file.
We now also write the hyperkit command line to the VM directory.
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
- split out config processing a bit
- just use `capabilities` not `cap-add` and `cap-drop`
- allow use of CAP_ prefix on capabilities, as this is what `runc` uses
- add nginx to example config
- fix bind mounts
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This is the first cut of a InfraKit instance plugin which
primarily allows one to manage Moby instances (though, other Linux's
may work too).
It's very rough on the edges and needs work and update to handle
templates and better configuration etc.
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
Recently com.docker.slirp was renamed.
Please update Docker for Mac before using this script...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
Make won't evaluate actual dependencies of targets called with
`$(MAKE) -C` if the target file already exists. Marking the
top-level targets `.PHONY` will enable incremental builds.
Signed-off-by: Robb Kistler <robb.kistler@docker.com>