-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathlain.yaml
35 lines (30 loc) · 910 Bytes
/
lain.yaml
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
32
33
34
35
appname: registry
giturl: https://github.com/laincloud/registry
build:
base: laincloud/centos-lain:20180103
prepare:
version: "20180816"
script:
- rpm --rebuilddb && yum -y install librados2-devel apache2-utils cronie && yum -y clean all
- mkdir -p /go/src/github.com/docker/distribution
- cd /go/src/github.com/docker/distribution &&
git clone https://github.com/docker/distribution.git . &&
git checkout v2.4.1 &&
GOPATH=/go/src/github.com/docker/distribution/Godeps/_workspace:$GOPATH make PREFIX=/go clean binaries
- pip install -r requirements.txt
script:
- mkdir -p /lain/app/fake_volumes
web:
cmd: /lain/app/entry.sh
memory: 256m
port: 5000
secret_files:
- config.yml
- /lain/app/secret.json
secret_files_bypass: True
volumes:
- /lain/app/fake_volumes
logs:
- clean_images.log
notify:
slack: "#lain"