pulumi-docker 4.6.0a1713332329__py3-none-any.whl → 4.6.0a1713461985__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_docker/container.py +8 -4
- pulumi_docker/get_registry_image.py +8 -8
- pulumi_docker/get_remote_image.py +8 -0
- pulumi_docker/network.py +2 -2
- pulumi_docker/plugin.py +0 -36
- pulumi_docker/registry_image.py +0 -36
- pulumi_docker/remote_image.py +8 -8
- pulumi_docker/volume.py +2 -2
- {pulumi_docker-4.6.0a1713332329.dist-info → pulumi_docker-4.6.0a1713461985.dist-info}/METADATA +1 -1
- {pulumi_docker-4.6.0a1713332329.dist-info → pulumi_docker-4.6.0a1713461985.dist-info}/RECORD +12 -12
- {pulumi_docker-4.6.0a1713332329.dist-info → pulumi_docker-4.6.0a1713461985.dist-info}/WHEEL +0 -0
- {pulumi_docker-4.6.0a1713332329.dist-info → pulumi_docker-4.6.0a1713461985.dist-info}/top_level.txt +0 -0
pulumi_docker/container.py
CHANGED
|
@@ -2160,9 +2160,11 @@ class Container(pulumi.CustomResource):
|
|
|
2160
2160
|
import pulumi_docker as docker
|
|
2161
2161
|
|
|
2162
2162
|
# Find the latest Ubuntu precise image.
|
|
2163
|
-
ubuntu_remote_image = docker.RemoteImage("
|
|
2163
|
+
ubuntu_remote_image = docker.RemoteImage("ubuntu", name="ubuntu:precise")
|
|
2164
2164
|
# Start a container
|
|
2165
|
-
|
|
2165
|
+
ubuntu = docker.Container("ubuntu",
|
|
2166
|
+
name="foo",
|
|
2167
|
+
image=ubuntu_remote_image.image_id)
|
|
2166
2168
|
```
|
|
2167
2169
|
<!--End PulumiCodeChooser -->
|
|
2168
2170
|
|
|
@@ -2292,9 +2294,11 @@ class Container(pulumi.CustomResource):
|
|
|
2292
2294
|
import pulumi_docker as docker
|
|
2293
2295
|
|
|
2294
2296
|
# Find the latest Ubuntu precise image.
|
|
2295
|
-
ubuntu_remote_image = docker.RemoteImage("
|
|
2297
|
+
ubuntu_remote_image = docker.RemoteImage("ubuntu", name="ubuntu:precise")
|
|
2296
2298
|
# Start a container
|
|
2297
|
-
|
|
2299
|
+
ubuntu = docker.Container("ubuntu",
|
|
2300
|
+
name="foo",
|
|
2301
|
+
image=ubuntu_remote_image.image_id)
|
|
2298
2302
|
```
|
|
2299
2303
|
<!--End PulumiCodeChooser -->
|
|
2300
2304
|
|
|
@@ -93,10 +93,10 @@ def get_registry_image(insecure_skip_verify: Optional[bool] = None,
|
|
|
93
93
|
import pulumi
|
|
94
94
|
import pulumi_docker as docker
|
|
95
95
|
|
|
96
|
-
|
|
97
|
-
ubuntu_remote_image = docker.RemoteImage("
|
|
98
|
-
name=
|
|
99
|
-
pull_triggers=[
|
|
96
|
+
ubuntu = docker.get_registry_image(name="ubuntu:precise")
|
|
97
|
+
ubuntu_remote_image = docker.RemoteImage("ubuntu",
|
|
98
|
+
name=ubuntu.name,
|
|
99
|
+
pull_triggers=[ubuntu.sha256_digest])
|
|
100
100
|
```
|
|
101
101
|
<!--End PulumiCodeChooser -->
|
|
102
102
|
|
|
@@ -131,10 +131,10 @@ def get_registry_image_output(insecure_skip_verify: Optional[pulumi.Input[Option
|
|
|
131
131
|
import pulumi
|
|
132
132
|
import pulumi_docker as docker
|
|
133
133
|
|
|
134
|
-
|
|
135
|
-
ubuntu_remote_image = docker.RemoteImage("
|
|
136
|
-
name=
|
|
137
|
-
pull_triggers=[
|
|
134
|
+
ubuntu = docker.get_registry_image(name="ubuntu:precise")
|
|
135
|
+
ubuntu_remote_image = docker.RemoteImage("ubuntu",
|
|
136
|
+
name=ubuntu.name,
|
|
137
|
+
pull_triggers=[ubuntu.sha256_digest])
|
|
138
138
|
```
|
|
139
139
|
<!--End PulumiCodeChooser -->
|
|
140
140
|
|
|
@@ -80,9 +80,13 @@ def get_remote_image(name: Optional[str] = None,
|
|
|
80
80
|
import pulumi
|
|
81
81
|
import pulumi_docker as docker
|
|
82
82
|
|
|
83
|
+
# uses the 'latest' tag
|
|
83
84
|
latest = docker.get_remote_image(name="nginx")
|
|
85
|
+
# uses a specific tag
|
|
84
86
|
specific = docker.get_remote_image(name="nginx:1.17.6")
|
|
87
|
+
# use the image digest
|
|
85
88
|
digest = docker.get_remote_image(name="nginx@sha256:36b74457bccb56fbf8b05f79c85569501b721d4db813b684391d63e02287c0b2")
|
|
89
|
+
# uses the tag and the image digest
|
|
86
90
|
tag_and_digest = docker.get_remote_image(name="nginx:1.19.1@sha256:36b74457bccb56fbf8b05f79c85569501b721d4db813b684391d63e02287c0b2")
|
|
87
91
|
```
|
|
88
92
|
<!--End PulumiCodeChooser -->
|
|
@@ -114,9 +118,13 @@ def get_remote_image_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
114
118
|
import pulumi
|
|
115
119
|
import pulumi_docker as docker
|
|
116
120
|
|
|
121
|
+
# uses the 'latest' tag
|
|
117
122
|
latest = docker.get_remote_image(name="nginx")
|
|
123
|
+
# uses a specific tag
|
|
118
124
|
specific = docker.get_remote_image(name="nginx:1.17.6")
|
|
125
|
+
# use the image digest
|
|
119
126
|
digest = docker.get_remote_image(name="nginx@sha256:36b74457bccb56fbf8b05f79c85569501b721d4db813b684391d63e02287c0b2")
|
|
127
|
+
# uses the tag and the image digest
|
|
120
128
|
tag_and_digest = docker.get_remote_image(name="nginx:1.19.1@sha256:36b74457bccb56fbf8b05f79c85569501b721d4db813b684391d63e02287c0b2")
|
|
121
129
|
```
|
|
122
130
|
<!--End PulumiCodeChooser -->
|
pulumi_docker/network.py
CHANGED
|
@@ -458,7 +458,7 @@ class Network(pulumi.CustomResource):
|
|
|
458
458
|
import pulumi
|
|
459
459
|
import pulumi_docker as docker
|
|
460
460
|
|
|
461
|
-
private_network = docker.Network("
|
|
461
|
+
private_network = docker.Network("private_network", name="my_network")
|
|
462
462
|
```
|
|
463
463
|
<!--End PulumiCodeChooser -->
|
|
464
464
|
|
|
@@ -526,7 +526,7 @@ class Network(pulumi.CustomResource):
|
|
|
526
526
|
import pulumi
|
|
527
527
|
import pulumi_docker as docker
|
|
528
528
|
|
|
529
|
-
private_network = docker.Network("
|
|
529
|
+
private_network = docker.Network("private_network", name="my_network")
|
|
530
530
|
```
|
|
531
531
|
<!--End PulumiCodeChooser -->
|
|
532
532
|
|
pulumi_docker/plugin.py
CHANGED
|
@@ -352,24 +352,6 @@ class Plugin(pulumi.CustomResource):
|
|
|
352
352
|
<!-- Bug: Type and Name are switched -->
|
|
353
353
|
Manages the lifecycle of a Docker plugin.
|
|
354
354
|
|
|
355
|
-
## Example Usage
|
|
356
|
-
|
|
357
|
-
<!--Start PulumiCodeChooser -->
|
|
358
|
-
```python
|
|
359
|
-
import pulumi
|
|
360
|
-
import pulumi_docker as docker
|
|
361
|
-
|
|
362
|
-
sample_volume_plugin = docker.Plugin("sample-volume-plugin",
|
|
363
|
-
alias="sample-volume-plugin",
|
|
364
|
-
enable_timeout=60,
|
|
365
|
-
enabled=False,
|
|
366
|
-
envs=["DEBUG=1"],
|
|
367
|
-
force_destroy=True,
|
|
368
|
-
force_disable=True,
|
|
369
|
-
grant_all_permissions=True)
|
|
370
|
-
```
|
|
371
|
-
<!--End PulumiCodeChooser -->
|
|
372
|
-
|
|
373
355
|
## Import
|
|
374
356
|
|
|
375
357
|
#!/bin/bash
|
|
@@ -400,24 +382,6 @@ class Plugin(pulumi.CustomResource):
|
|
|
400
382
|
<!-- Bug: Type and Name are switched -->
|
|
401
383
|
Manages the lifecycle of a Docker plugin.
|
|
402
384
|
|
|
403
|
-
## Example Usage
|
|
404
|
-
|
|
405
|
-
<!--Start PulumiCodeChooser -->
|
|
406
|
-
```python
|
|
407
|
-
import pulumi
|
|
408
|
-
import pulumi_docker as docker
|
|
409
|
-
|
|
410
|
-
sample_volume_plugin = docker.Plugin("sample-volume-plugin",
|
|
411
|
-
alias="sample-volume-plugin",
|
|
412
|
-
enable_timeout=60,
|
|
413
|
-
enabled=False,
|
|
414
|
-
envs=["DEBUG=1"],
|
|
415
|
-
force_destroy=True,
|
|
416
|
-
force_disable=True,
|
|
417
|
-
grant_all_permissions=True)
|
|
418
|
-
```
|
|
419
|
-
<!--End PulumiCodeChooser -->
|
|
420
|
-
|
|
421
385
|
## Import
|
|
422
386
|
|
|
423
387
|
#!/bin/bash
|
pulumi_docker/registry_image.py
CHANGED
|
@@ -185,24 +185,6 @@ class RegistryImage(pulumi.CustomResource):
|
|
|
185
185
|
<!-- Bug: Type and Name are switched -->
|
|
186
186
|
Manages the lifecycle of docker image in a registry. You can upload images to a registry (= `docker push`) and also delete them again
|
|
187
187
|
|
|
188
|
-
## Example Usage
|
|
189
|
-
|
|
190
|
-
Build an image with the `RemoteImage` resource and then push it to a registry:
|
|
191
|
-
|
|
192
|
-
<!--Start PulumiCodeChooser -->
|
|
193
|
-
```python
|
|
194
|
-
import pulumi
|
|
195
|
-
import pulumi_docker as docker
|
|
196
|
-
|
|
197
|
-
helloworld = docker.RegistryImage("helloworld", keep_remotely=True)
|
|
198
|
-
image = docker.RemoteImage("image",
|
|
199
|
-
name="registry.com/somename:1.0",
|
|
200
|
-
build=docker.RemoteImageBuildArgs(
|
|
201
|
-
context=f"{path['cwd']}/absolutePathToContextFolder",
|
|
202
|
-
))
|
|
203
|
-
```
|
|
204
|
-
<!--End PulumiCodeChooser -->
|
|
205
|
-
|
|
206
188
|
:param str resource_name: The name of the resource.
|
|
207
189
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
208
190
|
:param pulumi.Input[bool] insecure_skip_verify: If `true`, the verification of TLS certificates of the server/registry is disabled. Defaults to `false`
|
|
@@ -220,24 +202,6 @@ class RegistryImage(pulumi.CustomResource):
|
|
|
220
202
|
<!-- Bug: Type and Name are switched -->
|
|
221
203
|
Manages the lifecycle of docker image in a registry. You can upload images to a registry (= `docker push`) and also delete them again
|
|
222
204
|
|
|
223
|
-
## Example Usage
|
|
224
|
-
|
|
225
|
-
Build an image with the `RemoteImage` resource and then push it to a registry:
|
|
226
|
-
|
|
227
|
-
<!--Start PulumiCodeChooser -->
|
|
228
|
-
```python
|
|
229
|
-
import pulumi
|
|
230
|
-
import pulumi_docker as docker
|
|
231
|
-
|
|
232
|
-
helloworld = docker.RegistryImage("helloworld", keep_remotely=True)
|
|
233
|
-
image = docker.RemoteImage("image",
|
|
234
|
-
name="registry.com/somename:1.0",
|
|
235
|
-
build=docker.RemoteImageBuildArgs(
|
|
236
|
-
context=f"{path['cwd']}/absolutePathToContextFolder",
|
|
237
|
-
))
|
|
238
|
-
```
|
|
239
|
-
<!--End PulumiCodeChooser -->
|
|
240
|
-
|
|
241
205
|
:param str resource_name: The name of the resource.
|
|
242
206
|
:param RegistryImageArgs args: The arguments to use to populate this resource's properties.
|
|
243
207
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
pulumi_docker/remote_image.py
CHANGED
|
@@ -328,10 +328,10 @@ class RemoteImage(pulumi.CustomResource):
|
|
|
328
328
|
import pulumi
|
|
329
329
|
import pulumi_docker as docker
|
|
330
330
|
|
|
331
|
-
|
|
332
|
-
ubuntu_remote_image = docker.RemoteImage("
|
|
333
|
-
name=
|
|
334
|
-
pull_triggers=[
|
|
331
|
+
ubuntu = docker.get_registry_image(name="ubuntu:precise")
|
|
332
|
+
ubuntu_remote_image = docker.RemoteImage("ubuntu",
|
|
333
|
+
name=ubuntu.name,
|
|
334
|
+
pull_triggers=[ubuntu.sha256_digest])
|
|
335
335
|
```
|
|
336
336
|
<!--End PulumiCodeChooser -->
|
|
337
337
|
|
|
@@ -409,10 +409,10 @@ class RemoteImage(pulumi.CustomResource):
|
|
|
409
409
|
import pulumi
|
|
410
410
|
import pulumi_docker as docker
|
|
411
411
|
|
|
412
|
-
|
|
413
|
-
ubuntu_remote_image = docker.RemoteImage("
|
|
414
|
-
name=
|
|
415
|
-
pull_triggers=[
|
|
412
|
+
ubuntu = docker.get_registry_image(name="ubuntu:precise")
|
|
413
|
+
ubuntu_remote_image = docker.RemoteImage("ubuntu",
|
|
414
|
+
name=ubuntu.name,
|
|
415
|
+
pull_triggers=[ubuntu.sha256_digest])
|
|
416
416
|
```
|
|
417
417
|
<!--End PulumiCodeChooser -->
|
|
418
418
|
|
pulumi_docker/volume.py
CHANGED
|
@@ -194,7 +194,7 @@ class Volume(pulumi.CustomResource):
|
|
|
194
194
|
import pulumi
|
|
195
195
|
import pulumi_docker as docker
|
|
196
196
|
|
|
197
|
-
shared_volume = docker.Volume("
|
|
197
|
+
shared_volume = docker.Volume("shared_volume", name="shared_volume")
|
|
198
198
|
```
|
|
199
199
|
<!--End PulumiCodeChooser -->
|
|
200
200
|
|
|
@@ -254,7 +254,7 @@ class Volume(pulumi.CustomResource):
|
|
|
254
254
|
import pulumi
|
|
255
255
|
import pulumi_docker as docker
|
|
256
256
|
|
|
257
|
-
shared_volume = docker.Volume("
|
|
257
|
+
shared_volume = docker.Volume("shared_volume", name="shared_volume")
|
|
258
258
|
```
|
|
259
259
|
<!--End PulumiCodeChooser -->
|
|
260
260
|
|
{pulumi_docker-4.6.0a1713332329.dist-info → pulumi_docker-4.6.0a1713461985.dist-info}/RECORD
RENAMED
|
@@ -2,31 +2,31 @@ pulumi_docker/__init__.py,sha256=IVt8-XxBaRIyTd4e2iP4rITTjwSwepd4WkfBNXdkgnE,275
|
|
|
2
2
|
pulumi_docker/_enums.py,sha256=7XwY4iLVVNM2x33meoZ1Ln56unzDiB40fhpO7eZfrI4,535
|
|
3
3
|
pulumi_docker/_inputs.py,sha256=ZyuecG219nFOCwfJZUqVftVi9nKmAaK_mT49abytogc,180824
|
|
4
4
|
pulumi_docker/_utilities.py,sha256=b6gJn0IIeM1t6Q7EVjqw3yhuGyP-uENQhtL5yp7aHR8,9248
|
|
5
|
-
pulumi_docker/container.py,sha256=
|
|
5
|
+
pulumi_docker/container.py,sha256=bGjqBpVxjTRMSanz1Zgnf904Tt_Cs86F4BcTesERW5Q,155704
|
|
6
6
|
pulumi_docker/get_logs.py,sha256=CONbx6MjnD3VOLfn-18zD9vxbwnC1VW4YXc5hNDZF8U,9548
|
|
7
7
|
pulumi_docker/get_network.py,sha256=tmBL_n8HyKkoei3xskA22bkyrx_HvYCj5nz5IPcG0W0,5581
|
|
8
8
|
pulumi_docker/get_plugin.py,sha256=2R7zePzEIsnkQG7-Bxlzllokngd-t1Z7XMvrQEDs2EY,6177
|
|
9
|
-
pulumi_docker/get_registry_image.py,sha256=
|
|
10
|
-
pulumi_docker/get_remote_image.py,sha256=
|
|
9
|
+
pulumi_docker/get_registry_image.py,sha256=fpNHAQc0F0jt7blpgBTyXRQ-5mF3xjP9s7U3toNIj20,5488
|
|
10
|
+
pulumi_docker/get_remote_image.py,sha256=avZBd63AfBsfEkLUC-4XA7eSsd4tkq74Z99uRNEs1aI,4855
|
|
11
11
|
pulumi_docker/image.py,sha256=JnsyeZ-vae_47LoyWB9r7-qjK5AZucS0bGg2jXHxWuM,20669
|
|
12
|
-
pulumi_docker/network.py,sha256=
|
|
12
|
+
pulumi_docker/network.py,sha256=2eZBYJYOsp3Ddvwr72YGequJdjDS70wxTpgtEIqkSHI,33238
|
|
13
13
|
pulumi_docker/outputs.py,sha256=UbrG0vUE-jijatzN2U7tMTUQqgyrwteQI60G5wu9tkI,148248
|
|
14
|
-
pulumi_docker/plugin.py,sha256=
|
|
14
|
+
pulumi_docker/plugin.py,sha256=8-jJJ8niCfPGjK-y0D2mHQS0_5lQupxhc_6YM2Cwxus,23905
|
|
15
15
|
pulumi_docker/provider.py,sha256=6v3VQqXk8C5KE_jSm5oENEPsHgD5a7_iPWqkKuRzInI,11374
|
|
16
16
|
pulumi_docker/pulumi-plugin.json,sha256=ewrT2sVnOrVFOPG8ue2inkZe-ZnazoAqdlTXxdpKypY,43
|
|
17
17
|
pulumi_docker/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
18
|
-
pulumi_docker/registry_image.py,sha256=
|
|
19
|
-
pulumi_docker/remote_image.py,sha256=
|
|
18
|
+
pulumi_docker/registry_image.py,sha256=b8On9XruiLycqP86bLJqsjF8z5FIHM_Ev04aNpZzoV4,15138
|
|
19
|
+
pulumi_docker/remote_image.py,sha256=WdAxnV_q0kackwCHlNaRKlSQDp7k1BbPV_vH22kr2nE,27773
|
|
20
20
|
pulumi_docker/secret.py,sha256=XOCITnD0DCG4V5neRgU-d0zGEHQD6UdYlCL9UtzhF90,9558
|
|
21
21
|
pulumi_docker/service.py,sha256=pEZDoV7_11dDtJ3Zq7HqFy1EOB10_RYUblfR0_EPTSU,26875
|
|
22
22
|
pulumi_docker/service_config.py,sha256=NzkRQYWMnlrWoWsTH2IR88beWS_Po_QLZhWo4qNIAbQ,8323
|
|
23
23
|
pulumi_docker/tag.py,sha256=aQ6AxpZwTTN0NH8gebBJigRDtD5ah3B_ld053YDGrcM,8994
|
|
24
|
-
pulumi_docker/volume.py,sha256=
|
|
24
|
+
pulumi_docker/volume.py,sha256=8aHXJcXdhXH7ZI99arleHIm-95pYrkuahMd_WLgsJ3Q,14837
|
|
25
25
|
pulumi_docker/config/__init__.py,sha256=cfY0smRZD3fDVc93ZIAxEl_IM2pynmXB52n3Ahzi030,285
|
|
26
26
|
pulumi_docker/config/__init__.pyi,sha256=08UT9cm8-QlrT4aRM77-ESjds14JFA-qpG_hQSdCuws,885
|
|
27
27
|
pulumi_docker/config/outputs.py,sha256=eTN-IwGOGUFcrzfyyVflew_9sskGHO3eOFlD0LXjwUI,3486
|
|
28
28
|
pulumi_docker/config/vars.py,sha256=TwLf2BeUndFDjXRJKUUgNxNwdSUTmI1JX7lPh70I0yU,1687
|
|
29
|
-
pulumi_docker-4.6.
|
|
30
|
-
pulumi_docker-4.6.
|
|
31
|
-
pulumi_docker-4.6.
|
|
32
|
-
pulumi_docker-4.6.
|
|
29
|
+
pulumi_docker-4.6.0a1713461985.dist-info/METADATA,sha256=ntOaiQgiSHsegBBmev4WynJmOmwUkSJC3XlTufVv3UI,2338
|
|
30
|
+
pulumi_docker-4.6.0a1713461985.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
31
|
+
pulumi_docker-4.6.0a1713461985.dist-info/top_level.txt,sha256=5ASR9mwVy1gWMM-yKlseogte316p3DCyj_ozClqiynM,14
|
|
32
|
+
pulumi_docker-4.6.0a1713461985.dist-info/RECORD,,
|
|
File without changes
|
{pulumi_docker-4.6.0a1713332329.dist-info → pulumi_docker-4.6.0a1713461985.dist-info}/top_level.txt
RENAMED
|
File without changes
|