-
Notifications
You must be signed in to change notification settings - Fork 4
/
containers.yml
60 lines (53 loc) · 1.36 KB
/
containers.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
macros:
get_release: # In the end of the docker build print version of the installed GCC
- cat /etc/*release
- gcc --version
build_essential_centos: # Install GCC&friends
- gcc
- gcc-c++
- make
make_dir:
- mkdir -p /etc/docker
environment_vars:
# I need an env variable referencing a persistent folder
- SHARED_FOLDER /etc/docker
dockerfiles:
centos7:
base: centos:centos7
packager: rpm
help_disable: false # optional flags controlling the Dockerfile L&F
readme_disable: false
build_trace_disable: false
comments_disable: false
install:
- $build_essential_centos
- rpm-build
run:
- $get_release
env:
- $environment_vars
ubuntu.16.04:
packager: deb
stages:
- intermediate: # Comment for intermediate
base: ubuntu:16.04
help:
- Intermediate container help
sections:
- section: #first section
expose:
- 8080/TCP
install:
- build-essential
- section: # second section
run:
- $get_release
env:
- $environment_vars
- final: # Comment for final
base: intermediate
help:
- Final container help
run:
- touch "/root/final"
- echo "Final"