Skip to content

Commit 98a902b

Browse files
committed
Merge branch 'master' into release
2 parents 29841c4 + 432e4d1 commit 98a902b

File tree

22 files changed

+146
-96
lines changed

22 files changed

+146
-96
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
schema==0.7.5
22
pyyaml==5.4
3-
configcrunch==1.0.0
3+
configcrunch==1.0.3
44
appdirs==1.4.4
55
janus==0.7.0
66
psutil==5.8.0

riptide/config/command/in_service.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ def convert_in_service_to_normal(app: App, command_name: str) -> Command:
2525
'command': old_cmd['command'],
2626
'additional_volumes': service['additional_volumes'] if 'additional_volumes' in service else {},
2727
'environment': env,
28-
'config_from_roles': [old_cmd['in_service_with_role']]
28+
'config_from_roles': [old_cmd['in_service_with_role']],
29+
'use_host_network': old_cmd['use_host_network'] if 'use_host_network' in old_cmd else False
2930
})
3031
new_cmd.parent_doc = app
3132
new_cmd.freeze()

riptide/config/document/command.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ def schema_normal(cls):
9696
If enabled, read the environment variables in the env-files defined in the project (``env_files``).
9797
Default: True
9898
99+
[use_host_network]: bool
100+
If enabled, the container uses network mode `host`. Overrides network and port settings
101+
Default: False
102+
99103
**Example Document:**
100104
101105
.. code-block:: yaml
@@ -121,7 +125,8 @@ def schema_normal(cls):
121125
},
122126
Optional('environment'): {str: str},
123127
Optional('config_from_roles'): [str],
124-
Optional('read_env_file'): bool
128+
Optional('read_env_file'): bool,
129+
Optional('use_host_network'): bool,
125130
})
126131

127132
@classmethod
@@ -160,6 +165,10 @@ def schema_in_service(cls):
160165
If enabled, read the environment variables in the env-files defined in the project (``env_files``).
161166
Default: True
162167
168+
[use_host_network]: bool
169+
If enabled, the container uses network mode `host`. Overrides network and port settings
170+
Default: False
171+
163172
**Example Document:**
164173
165174
.. code-block:: yaml
@@ -176,6 +185,7 @@ def schema_in_service(cls):
176185
'command': str,
177186
Optional('environment'): {str: str},
178187
Optional('read_env_file'): bool,
188+
Optional('use_host_network'): bool,
179189
})
180190

181191
@classmethod

riptide/engine/results.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ class ResultQueue(Generic[T]):
6262
Asynchronously (asyncio).
6363
Can be read by (async.) iterating over it or by using get().
6464
65-
All ResultQueues can be poisoned by calling position(). After calling this
66-
class mehtod reading and writing for all existing and future queues will cause
65+
All ResultQueues can be poisoned by calling poison(). After calling this
66+
class method reading and writing for all existing and future queues will cause
6767
an ResultPoisoned to be raised.
6868
This is meant for system shutdowns operations.
6969
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
from schema import Schema
2+
from typing import List
3+
4+
from configcrunch import YamlConfigDocument
5+
6+
7+
class YamlConfigDocumentStub(YamlConfigDocument):
8+
@classmethod
9+
def make(cls,
10+
document: dict,
11+
path: str = None,
12+
parent: 'YamlConfigDocument' = None,
13+
set_parent_to_self=False,
14+
absolute_paths=None
15+
):
16+
slf = cls.from_dict(document)
17+
slf.path = path
18+
slf.parent_doc = parent
19+
if absolute_paths is not None:
20+
slf.absolute_paths = absolute_paths
21+
if set_parent_to_self:
22+
slf.parent_doc = slf
23+
return slf
24+
25+
@classmethod
26+
def header(cls) -> str:
27+
raise NotImplementedError("not available for stub")
28+
29+
@classmethod
30+
def schema(cls) -> Schema:
31+
raise NotImplementedError("not available for stub")
32+
33+
@classmethod
34+
def subdocuments(cls) -> Schema:
35+
raise NotImplementedError("not available for stub")

riptide/tests/docker_image/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Tag this as riptide_integration_test
22
# Simple flexible docker http server image for basic intergation tests
33

4-
FROM node:10
4+
FROM node:12
55
RUN yarn global add http-server
66
RUN mkdir -p /default_workdir && \
77
echo "hello riptide" > /default_workdir/index.html && \
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
project:
2-
name: integration_all
2+
name: integration-all
33
src: . # is also replace by src in tests
44
app:
55
$ref: app/integration_app

riptide/tests/fixtures/project/integration_no_command.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
project:
2-
name: integration_no_command
2+
name: integration-no-command
33
src: . # is also replace by src in tests
44
app:
55
$ref: app/integration_app

riptide/tests/fixtures/project/integration_no_service.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
project:
2-
name: integration_no_service
2+
name: integration-no-service
33
src: . # is also replace by src in tests
44
app:
55
$ref: app/integration_app

riptide/tests/fixtures/project/integration_some.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
project:
2-
name: integration_some
2+
name: integration-some
33
src: . # is also replace by src in tests
44
app:
55
name: some

0 commit comments

Comments
 (0)