brave base
Pull a base image from LXD Image Server or public Github Bravefile
brave base DISTRIBUTION/RELEASE/ARCH
Description
Bravetools can import base images either from LXD Image Server (https://images.lxd.canonical.com) or from Bravefiles stored in public GitHub repositories. This creates an efficient way of leveraging multiple pre-built images to speed up creation of a bespoke system container.
Pulling from LXD Image server
Clean OS images can be imported into Bravetools directly from LXD Image server:
brave base alpine/edge
You can explicitly specify image architecture. For example brave base alpine/edge/arm64
or brave base alpine/edge/amd64
.
Pulling from a GiHub repository
Container images can be quite large and downloading their distributions is not efficient. Bravetools has a mechanism to access a remotely-stored Bravefile and build an image directly from it:
brave base github.com/beringresearch/bravefiles/ubuntu/ubuntu-bionic-py3
This will create an Ubuntu 18.04 image with Python3 installation, using a Bravefile located on a GitHub repository
Usage inside a Bravefile
All local images can be utilised inside a Bravefile using the local
location option:
base:
image: alpine/edge/amd64
location: local
Options
-h, --help help for base
-r, --remote string Name of the remote which will be used to build the base image. (default "local")