Skip to content

Commit 09349df

Browse files
david-mears-2richfitz
authored andcommitted
Update constellation version from 1.0.0 to 1.4.0
1 parent d7a8bf7 commit 09349df

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

orderly_web/constellation.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,16 @@ def orderly_constellation(cfg):
4747

4848
def outpack_server_container(cfg):
4949
name = cfg.containers["outpack-server"]
50-
mounts = [constellation.ConstellationMount("outpack", "/outpack")]
50+
mounts = [constellation.ConstellationVolumeMount("outpack", "/outpack")]
5151
outpack_server = constellation.ConstellationContainer(
5252
name, cfg.outpack_ref, mounts=mounts)
5353
return outpack_server
5454

5555

5656
def outpack_migrate_container(cfg):
5757
name = cfg.containers["outpack-migrate"]
58-
mounts = [constellation.ConstellationMount("outpack", "/outpack"),
59-
constellation.ConstellationMount("orderly", "/orderly")]
58+
mounts = [constellation.ConstellationVolumeMount("outpack", "/outpack"),
59+
constellation.ConstellationVolumeMount("orderly", "/orderly")]
6060
args = ["/orderly", "/outpack", "--minutes=5"]
6161
outpack_migrate = constellation.ConstellationContainer(
6262
name, cfg.outpack_migrate_ref, mounts=mounts, args=args)
@@ -103,7 +103,7 @@ def packit_container(cfg):
103103

104104
def redis_container(cfg):
105105
redis_name = cfg.containers["redis"]
106-
redis_mounts = [constellation.ConstellationMount("redis", "/data")]
106+
redis_mounts = [constellation.ConstellationVolumeMount("redis", "/data")]
107107
redis_args = ["--appendonly", "yes"]
108108
redis = constellation.ConstellationContainer(
109109
redis_name, cfg.redis_ref, mounts=redis_mounts, args=redis_args,
@@ -127,7 +127,7 @@ def redis_configure(container, cfg):
127127
def orderly_container(cfg, redis_container):
128128
orderly_name = cfg.containers["orderly"]
129129
orderly_args = ["--port", "8321", "--go-signal", "/go_signal", "/orderly"]
130-
orderly_mounts = [constellation.ConstellationMount("orderly", "/orderly")]
130+
orderly_mounts = [constellation.ConstellationVolumeMount("orderly", "/orderly")]
131131
ports = [8321] if cfg.orderly_expose else None
132132
environment = orderly_env(cfg, redis_container)
133133
orderly = constellation.ConstellationContainer(
@@ -211,7 +211,7 @@ def orderly_start(container):
211211
def worker_container(cfg, redis_container):
212212
worker_name = cfg.containers["orderly-worker"]
213213
worker_args = ["--go-signal", "/go_signal"]
214-
worker_mounts = [constellation.ConstellationMount("orderly", "/orderly")]
214+
worker_mounts = [constellation.ConstellationVolumeMount("orderly", "/orderly")]
215215
worker_entrypoint = "/usr/local/bin/orderly_worker"
216216
environment = orderly_env(cfg, redis_container)
217217
worker = constellation.ConstellationService(
@@ -234,12 +234,12 @@ def worker_start(container):
234234

235235
def web_container(cfg):
236236
web_name = cfg.containers["web"]
237-
web_mounts = [constellation.ConstellationMount("orderly", "/orderly")]
237+
web_mounts = [constellation.ConstellationVolumeMount("orderly", "/orderly")]
238238
if cfg.sass_variables is not None:
239-
web_mounts.append(constellation.ConstellationMount(
239+
web_mounts.append(constellation.ConstellationVolumeMount(
240240
"css", "/static/public/css"))
241241
if "documents" in cfg.volumes:
242-
web_mounts.append(constellation.ConstellationMount(
242+
web_mounts.append(constellation.ConstellationVolumeMount(
243243
"documents", "/documents"))
244244
if cfg.web_dev_mode:
245245
web_ports = [(cfg.web_port, ("127.0.0.1", cfg.web_port))]
@@ -362,7 +362,7 @@ def proxy_container(cfg, web, packit_api=None, packit=None):
362362
proxy_args = [cfg.proxy_hostname, str(cfg.proxy_port_http),
363363
str(cfg.proxy_port_https), web_addr, packit_api_addr,
364364
packit_addr]
365-
proxy_mounts = [constellation.ConstellationMount(
365+
proxy_mounts = [constellation.ConstellationVolumeMount(
366366
"proxy_logs", "/var/log/nginx")]
367367
proxy_ports = [cfg.proxy_port_http, cfg.proxy_port_https]
368368
proxy = constellation.ConstellationContainer(

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ classifiers = [
1717
"Programming Language :: Python :: 3",
1818
]
1919
dependencies = [
20-
"constellation==1.0.0",
20+
"constellation==1.4.0",
2121
"docker",
2222
"docopt",
2323
"hvac",

0 commit comments

Comments
 (0)