Module: Ufo::Docker::Help

Extended by:
Help
Included in:
Help
Defined in:
lib/ufo/docker/help.rb

Instance Method Summary collapse

Instance Method Details

#baseObject



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/ufo/docker/help.rb', line 3

def base
<<-EOL

The docker cache task builds a docker image using the Dockerfile.base file and
updates the FROM Dockerfile image with the generated image from Dockerfile.base.

Examples:

$ ufo docker base

$ ufo docker base --no-push # do not push the image to the registry

Docker image tongueroo/hi:base-2016-10-21T15-50-57-88071f5 built.
EOL
end

#buildObject



19
20
21
22
23
24
25
26
27
28
29
# File 'lib/ufo/docker/help.rb', line 19

def build
<<-EOL
Examples:

$ ufo docker build

$ ufo docker build --push # also pushes the image to the docker registry

Docker image tongueroo/hi:ufo-2016-10-21T15-50-57-88071f5 built.
EOL
end

#cleanObject



41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/ufo/docker/help.rb', line 41

def clean
<<-EOL
Examples:

Say you currently have these images:

* tongueroo/hi:ufo-2016-10-15T19-29-06-88071f5

* tongueroo/hi:ufo-2016-10-16T19-29-06-88071f5

* tongueroo/hi:ufo-2016-10-17T19-29-06-88071f5

* tongueroo/hi:ufo-2016-10-18T19-29-06-88071f5

To clean them up and keep the 3 more recent:

$ ufo docker clean tongueroo/hi

This will remove tongueroo/hi:ufo-2016-10-15T19-29-06-88071f5.
EOL
end

#nameObject



31
32
33
34
35
36
37
38
39
# File 'lib/ufo/docker/help.rb', line 31

def name
<<-EOL
Examples:

$ ufo docker name

Docker image name that will be used: tongueroo/hi:ufo-2016-10-15T19-29-06-88071f5
EOL
end