Skip to content

Commit e2675f2

Browse files
author
Alan Christie
committed
Test user ID now 8888
/var/run/docker.sock also now mounted into the container
1 parent 2f7daad commit e2675f2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

jote/compose.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
environment:
2424
- DM_INSTANCE_DIRECTORY={instance_directory}
2525
volumes:
26+
- /var/run/docker.sock:/var/run/docker.sock
2627
- {test_path}:{project_directory}
2728
mem_limit: {memory_limit}
2829
cpus: {cpus}.0
@@ -31,6 +32,9 @@
3132
# A default, 30 minute timeout
3233
_DEFAULT_TEST_TIMEOUT: int = 30 * 60
3334

35+
# The user id containers will be started as
36+
_USER_ID: int = 8888
37+
3438

3539
def _get_docker_compose_version() -> str:
3640

@@ -130,7 +134,7 @@ def create(self) -> str:
130134
'image': self._image,
131135
'memory_limit': self._memory,
132136
'cpus': self._cores,
133-
'uid': os.geteuid(),
137+
'uid': _USER_ID,
134138
'command': self._command,
135139
'project_directory': self._project_directory,
136140
'working_directory': self._working_directory,

0 commit comments

Comments
 (0)