File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ pyinfra @local ...
41
41
42
42
## ` @docker `
43
43
44
- ** Note** : this connector is in beta!
45
44
46
45
The ` @docker ` connector allows you to build Docker containers using pyinfra.
47
46
Original file line number Diff line number Diff line change 8
8
from pyinfra import local , logger
9
9
from pyinfra .api import QuoteString , StringCommand
10
10
from pyinfra .api .exceptions import ConnectError , InventoryError , PyinfraError
11
- from pyinfra .api .util import get_file_io , memoize
11
+ from pyinfra .api .util import get_file_io
12
12
from pyinfra .progress import progress_spinner
13
13
14
14
from .local import run_shell_command as run_local_shell_command
15
15
from .util import make_unix_command
16
16
17
17
18
- @memoize
19
- def show_warning ():
20
- logger .warning ('The @docker connector is in beta!' )
21
-
22
-
23
18
def make_names_data (image = None ):
24
19
if not image :
25
20
raise InventoryError ('No docker base image provided!' )
26
21
27
- show_warning ()
28
-
29
22
# Save the image as the hostname, the image as data, @docker group
30
23
yield '@docker/{0}' .format (image ), {'docker_image' : image }, ['@docker' ]
31
24
You can’t perform that action at this time.
0 commit comments