mirror of
https://github.com/project-zot/zot.git
synced 2024-12-16 21:56:37 -05:00
build: fix stacker build
This commit is contained in:
parent
09c633ad91
commit
c5e3431f14
2 changed files with 8 additions and 6 deletions
3
Makefile
3
Makefile
|
@ -5,6 +5,7 @@ COMMIT=$(if $(shell git status --porcelain --untracked-files=no),$(COMMIT_HASH)-
|
|||
CONTAINER_RUNTIME := $(shell command -v podman 2> /dev/null || echo docker)
|
||||
PATH := bin:$(PATH)
|
||||
TMPDIR := $(shell mktemp -d)
|
||||
STACKER := $(shell which stacker)
|
||||
|
||||
.PHONY: all
|
||||
all: doc binary binary-minimal debug test check
|
||||
|
@ -61,7 +62,7 @@ run-container:
|
|||
|
||||
.PHONY: binary-stacker
|
||||
binary-stacker:
|
||||
stacker --roots-dir ${TMPDIR} build --substitute PWD=$$PWD
|
||||
sudo ${STACKER} build --substitute PWD=$$PWD
|
||||
|
||||
.PHONY: image
|
||||
image:
|
||||
|
|
11
stacker.yaml
11
stacker.yaml
|
@ -1,19 +1,20 @@
|
|||
build:
|
||||
from:
|
||||
type: docker
|
||||
url: docker://golang:1.14.4
|
||||
url: docker://golang:1.15.3
|
||||
binds:
|
||||
- ${{PWD}} -> /go/src/github.com/anuvu/zot
|
||||
- ${{PWD}} -> /zotcopy
|
||||
run: |
|
||||
export GO111MODULE=on
|
||||
export GOPATH='/go'
|
||||
export HOME='/root'
|
||||
export PATH='/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
|
||||
go get -u github.com/swaggo/swag/cmd/swag
|
||||
mkdir -p /go/src/github.com/anuvu
|
||||
cd /go/src/github.com/anuvu
|
||||
git clone /zotcopy zot
|
||||
cd /go/src/github.com/anuvu/zot
|
||||
go get -u -v -d ./...
|
||||
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.26.0
|
||||
make
|
||||
make binary
|
||||
build_only: true
|
||||
|
||||
zot:
|
||||
|
|
Loading…
Reference in a new issue