Skip to content

Commit 7d143bd

Browse files
committed
feat: vib recipe
1 parent 8f06ab4 commit 7d143bd

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

recipe.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: aptutil
2+
id: aptutil
3+
vibversion: 1.0.0
4+
stages:
5+
- id: build
6+
base: golang:1.15
7+
singlelayer: false
8+
labels:
9+
maintainer: Vanilla OS Contributors
10+
args:
11+
DEBIAN_FRONTEND: noninteractive
12+
CGO_ENABLED: 0
13+
GODEBUG: netdns=go
14+
runs:
15+
commands:
16+
- echo 'APT::Install-Recommends "0";' > /etc/apt/apt.conf.d/01norecommends
17+
18+
modules:
19+
- name: aptutil
20+
type: shell
21+
commands:
22+
- git clone https://github.com/Vanilla-OS/aptutil.git
23+
- cd aptutil
24+
- go install .
25+
26+
- name: ca-certificates
27+
type: apt
28+
sources:
29+
- packages:
30+
- ca-certificates
31+
32+
- id: final
33+
base: scratch
34+
singlelayer: true
35+
labels:
36+
maintainer: Vanilla OS Contributors
37+
38+
expose:
39+
"3142": "tcp"
40+
41+
copy:
42+
- from: build
43+
srcdst:
44+
/go/bin/go-apt-cacher: /
45+
/go/bin/go-apt-mirror: /
46+
/etc/ssl/certs/ca-certificates.crt: /etc/ssl/certs/
47+
48+
cmd:
49+
workdir: /var/lib/aptutil
50+
exec:
51+
- /go-apt-cacher

0 commit comments

Comments
 (0)