Rename to just iocage
This commit is contained in:
parent
33a584fc6c
commit
89606c34cd
4
Makefile
4
Makefile
|
@ -1,4 +1,4 @@
|
|||
BINARY = packer-builder-iocage-jail
|
||||
BINARY = packer-builder-iocage
|
||||
PLUGIN_DIR = ~/.packer.d/plugins
|
||||
GOBIN = $(shell go env GOPATH)/bin
|
||||
GORELEASER_VER = 0.110.0
|
||||
|
@ -39,4 +39,4 @@ setup-tools:
|
|||
# goreleaser and golangci-lint take pretty long to build
|
||||
# as an optimization, let's just download the binaries
|
||||
curl -sL "https://github.com/goreleaser/goreleaser/releases/download/v$(GORELEASER_VER)/goreleaser_Linux_x86_64.tar.gz" | tar -xzf - -C $(GOBIN) goreleaser
|
||||
curl -sL "https://github.com/golangci/golangci-lint/releases/download/v$(GOLANGCI_LINT_VER)/golangci-lint-$(GOLANGCI_LINT_VER)-linux-amd64.tar.gz" | tar -xzf - -C $(GOBIN) --strip-components=1 "golangci-lint-$(GOLANGCI_LINT_VER)-linux-amd64/golangci-lint"
|
||||
curl -sL "https://github.com/golangci/golangci-lint/releases/download/v$(GOLANGCI_LINT_VER)/golangci-lint-$(GOLANGCI_LINT_VER)-linux-amd64.tar.gz" | tar -xzf - -C $(GOBIN) --strip-components=1 "golangci-lint-$(GOLANGCI_LINT_VER)-linux-amd64/golangci-lint"
|
||||
|
|
13
README.md
13
README.md
|
@ -1,4 +1,4 @@
|
|||
# packer-builder-iocage-jail
|
||||
# packer-builder-iocage
|
||||
|
||||
This is a [HashiCorp Packer](https://www.packer.io/) plugin to create iocage snapshots.
|
||||
|
||||
|
@ -10,21 +10,22 @@ This is a [HashiCorp Packer](https://www.packer.io/) plugin to create iocage sna
|
|||
|
||||
### Install from source:
|
||||
|
||||
Clone repository to `$GOPATH/src/gitea.lyrion.ch/zilti/packer-builder-iocage-jail`
|
||||
Clone repository to `$GOPATH/src/gitea.lyrion.ch/zilti/packer-builder-iocage`
|
||||
|
||||
```sh
|
||||
$ mkdir -p $GOPATH/src/github.com/vultr; cd $GOPATH/src/github.com/vultr
|
||||
$ git clone http://gitea.lyrion.ch/zilti/packer-builder-iocage-jail.git
|
||||
$ mkdir -p $GOPATH/src/gitea.lyrion.ch/zilti; cd $GOPATH/src/gitea.lyrion.ch/zilti
|
||||
$ git clone http://gitea.lyrion.ch/zilti/packer-builder-iocage.git
|
||||
```
|
||||
|
||||
Enter the provider directory and build the provider
|
||||
|
||||
```sh
|
||||
$ cd $GOPATH/src/gitea.lyrion.ch/zilti/packer-builder-iocage-jail
|
||||
$ cd $GOPATH/src/gitea.lyrion.ch/zilti/packer-builder-iocage
|
||||
$ make build
|
||||
```
|
||||
|
||||
Link the build to Packer
|
||||
|
||||
```sh
|
||||
$ln -s $GOPATH/bin/packer-builder-iocage-jail ~/.packer.d/plugins/packer-builder-iocage-jail
|
||||
$ ln -s $GOPATH/bin/packer-builder-iocage ~/.packer.d/plugins/packer-builder-iocage
|
||||
```
|
||||
|
|
|
@ -17,6 +17,8 @@ import (
|
|||
"github.com/hashicorp/packer/template/interpolate"
|
||||
)
|
||||
|
||||
const BuilderID = "packer.iocage"
|
||||
|
||||
// Builder implements packer.Builder and builds the actual VirtualBox
|
||||
// images.
|
||||
type Builder struct {
|
||||
|
|
Loading…
Reference in New Issue