-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
31 lines (23 loc) · 943 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
GOOS?=linux
GOARCH?=amd64
convert:
@GO111MODULE=on IPFS_PATH=./tmp/ipfs go run ./cmd/convert docker.io/library/alpine:latest localhost:5000/library/alpine:p2p
compare:
@GO111MODULE=on IPFS_PATH=./tmp/ipfs go run ./cmd/compare docker.io/library/ubuntu:xenial docker.io/titusoss/ubuntu:latest
ipcs:
@mkdir -p ./tmp/containerd/root/plugins
@GO111MODULE=on go build -buildmode=plugin -o ./tmp/containerd/root/plugins/ipcs-$(GOOS)-$(GOARCH).so cmd/ipcs/main.go
containerd-binary:
@mkdir -p ./bin
@GO111MODULE=on go build -o ./bin/containerd ./cmd/containerd
containerd: containerd-binary ipcs
@mkdir -p ./tmp
@IPFS_PATH=./tmp/ipfs rootlesskit --copy-up=/etc \
--state-dir=./tmp/rootlesskit-containerd \
./bin/containerd -l debug --config ./cmd/containerd/config.toml
ipfs:
@mkdir -p ./tmp
@IPFS_PATH=./tmp/ipfs ipfs daemon --init
clean:
@rm -rf ./tmp ./bin
.PHONY: convert registry ipcs containerd-binary containerd