engine: resources: Add nodocker build tag

Make it easy to disable building docker which is enormous.
This commit is contained in:
James Shubin
2018-11-29 08:22:05 -05:00
parent 51ec91dd16
commit cc02e96a13
4 changed files with 21 additions and 4 deletions

View File

@@ -351,18 +351,28 @@ GOTAGS=novirt make build
#### Disable augeas support #### Disable augeas support
If you wish to compile mgmt without augeas support, you can use the following command: If you wish to compile mgmt without augeas support, you can use the following
command:
``` ```
GOTAGS=noaugeas make build GOTAGS=noaugeas make build
``` ```
#### Disable docker support
If you wish to compile mgmt without docker support, you can use the following
command:
```
GOTAGS=nodocker make build
```
#### Combining compile-time flags #### Combining compile-time flags
You can combine multiple tags by using a space-separated list: You can combine multiple tags by using a space-separated list:
``` ```
GOTAGS="noaugeas novirt" make build GOTAGS="noaugeas novirt nodocker" make build
``` ```
## Examples ## Examples

View File

@@ -119,8 +119,11 @@ To build `mgmt` without augeas support please run:
To build `mgmt` without libvirt support please run: To build `mgmt` without libvirt support please run:
`GOTAGS='novirt' make build` `GOTAGS='novirt' make build`
To build `mgmt` without augeas or libvirt support please run: To build `mgmt` without docker support please run:
`GOTAGS='noaugeas novirt' make build` `GOTAGS='nodocker' make build`
To build `mgmt` without augeas, libvirt or docker support please run:
`GOTAGS='noaugeas novirt nodocker' make build`
## Binary Package Installation ## Binary Package Installation

View File

@@ -15,6 +15,8 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
// +build !nodocker
package resources package resources
import ( import (

View File

@@ -15,6 +15,8 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
// +build !nodocker
package resources package resources
import ( import (