dev-isolator 0.1.0__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.
Files changed (38) hide show
  1. dev_isolator/__init__.py +13 -0
  2. dev_isolator/__main__.py +15 -0
  3. dev_isolator/base_image.py +429 -0
  4. dev_isolator/config.py +650 -0
  5. dev_isolator/constants.py +58 -0
  6. dev_isolator/container_image.py +302 -0
  7. dev_isolator/container_manager.py +516 -0
  8. dev_isolator/data/Containerfile +32 -0
  9. dev_isolator/data/addons/addon.claude.jinja2 +16 -0
  10. dev_isolator/data/addons/addon.opencode.jinja2 +16 -0
  11. dev_isolator/data/addons/config.claude.yaml +292 -0
  12. dev_isolator/data/addons/config.opencode.py +4 -0
  13. dev_isolator/data/addons/config.opencode.yaml +8 -0
  14. dev_isolator/data/base/Containerfile.almalinux-10 +5 -0
  15. dev_isolator/data/base/Containerfile.almalinux-9 +5 -0
  16. dev_isolator/data/base/Containerfile.archlinux +6 -0
  17. dev_isolator/data/base/Containerfile.debian-13 +6 -0
  18. dev_isolator/data/base/Containerfile.fedora-43 +5 -0
  19. dev_isolator/data/base/Containerfile.fedora-44 +5 -0
  20. dev_isolator/data/base/Containerfile.fedora-45 +5 -0
  21. dev_isolator/data/base/Containerfile.fedora-rawhide +6 -0
  22. dev_isolator/data/base/Containerfile.opensuse-leap +4 -0
  23. dev_isolator/data/base/Containerfile.opensuse-tumbleweed +5 -0
  24. dev_isolator/data/base/Containerfile.ubuntu-22.04 +6 -0
  25. dev_isolator/data/base/Containerfile.ubuntu-24.04 +7 -0
  26. dev_isolator/data/base/Containerfile.ubuntu-26.04 +8 -0
  27. dev_isolator/data/config.yaml +136 -0
  28. dev_isolator/data/setup/add_user.containerfile.jinja2 +36 -0
  29. dev_isolator/main.py +931 -0
  30. dev_isolator/podman_utils.py +116 -0
  31. dev_isolator/utils.py +86 -0
  32. dev_isolator/waitspinner.py +115 -0
  33. dev_isolator-0.1.0.dist-info/METADATA +131 -0
  34. dev_isolator-0.1.0.dist-info/RECORD +38 -0
  35. dev_isolator-0.1.0.dist-info/WHEEL +5 -0
  36. dev_isolator-0.1.0.dist-info/entry_points.txt +3 -0
  37. dev_isolator-0.1.0.dist-info/licenses/LICENSE +674 -0
  38. dev_isolator-0.1.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,292 @@
1
+ environment:
2
+ - ANTHROPIC_API_KEY
3
+ - ANTHROPIC_AUTH_TOKEN
4
+ - ANTHROPIC_AWS_API_KEY
5
+ - ANTHROPIC_AWS_BASE_URL
6
+ - ANTHROPIC_AWS_WORKSPACE_ID
7
+ - ANTHROPIC_BASE_URL
8
+ - ANTHROPIC_BEDROCK_BASE_URL
9
+ - ANTHROPIC_BEDROCK_MANTLE_BASE_URL
10
+ - ANTHROPIC_BEDROCK_REGION_PREFIX
11
+ - ANTHROPIC_BEDROCK_SERVICE_TIER
12
+ - ANTHROPIC_BETAS
13
+ - ANTHROPIC_CUSTOM_HEADERS
14
+ - ANTHROPIC_CUSTOM_MODEL_OPTION
15
+ - ANTHROPIC_CUSTOM_MODEL_OPTION_DESCRIPTION
16
+ - ANTHROPIC_CUSTOM_MODEL_OPTION_NAME
17
+ - ANTHROPIC_CUSTOM_MODEL_OPTION_SUPPORTED_CAPABILITIES
18
+ - ANTHROPIC_DEFAULT_FABLE_MODEL
19
+ - ANTHROPIC_DEFAULT_FABLE_MODEL_DESCRIPTION
20
+ - ANTHROPIC_DEFAULT_FABLE_MODEL_NAME
21
+ - ANTHROPIC_DEFAULT_FABLE_MODEL_SUPPORTED_CAPABILITIES
22
+ - ANTHROPIC_DEFAULT_HAIKU_MODEL
23
+ - ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION
24
+ - ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME
25
+ - ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES
26
+ - ANTHROPIC_DEFAULT_MODEL
27
+ - ANTHROPIC_DEFAULT_OPUS_MODEL
28
+ - ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION
29
+ - ANTHROPIC_DEFAULT_OPUS_MODEL_NAME
30
+ - ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES
31
+ - ANTHROPIC_DEFAULT_SONNET_MODEL
32
+ - ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION
33
+ - ANTHROPIC_DEFAULT_SONNET_MODEL_NAME
34
+ - ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES
35
+ - ANTHROPIC_FEDERATION_RULE_ID
36
+ - ANTHROPIC_FOUNDRY_API_KEY
37
+ - ANTHROPIC_FOUNDRY_AUTH_TOKEN
38
+ - ANTHROPIC_FOUNDRY_BASE_URL
39
+ - ANTHROPIC_FOUNDRY_RESOURCE
40
+ - ANTHROPIC_MODEL
41
+ - ANTHROPIC_ORGANIZATION_ID
42
+ - ANTHROPIC_PROFILE
43
+ - ANTHROPIC_SMALL_FAST_MODEL
44
+ - ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION
45
+ - ANTHROPIC_VERTEX_BASE_URL
46
+ - ANTHROPIC_VERTEX_PROJECT_ID
47
+ - ANTHROPIC_WORKSPACE_ID
48
+ - API_FORCE_IDLE_TIMEOUT
49
+ - API_TIMEOUT_MS
50
+ - AWS_BEARER_TOKEN_BEDROCK
51
+ - BASH_DEFAULT_TIMEOUT_MS
52
+ - BASH_MAX_OUTPUT_LENGTH
53
+ - BASH_MAX_TIMEOUT_MS
54
+ - BETA_TRACING_ENDPOINT
55
+ - CCR_FORCE_BUNDLE
56
+ - CLAUDECODE
57
+ - CLAUDE_AGENT_SDK_DISABLE_BUILTIN_AGENTS
58
+ - CLAUDE_AGENT_SDK_MCP_NO_PREFIX
59
+ - CLAUDE_ASYNC_AGENT_STALL_TIMEOUT_MS
60
+ - CLAUDE_AUTOCOMPACT_PCT_OVERRIDE
61
+ - CLAUDE_AUTO_BACKGROUND_TASKS
62
+ - CLAUDE_AX_PREPARK_MS
63
+ - CLAUDE_AX_SCREEN_READER
64
+ - CLAUDE_AX_STARTUP_QUIET_MS
65
+ - CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR
66
+ - CLAUDE_BYTE_STREAM_IDLE_TIMEOUT_MS
67
+ - CLAUDE_CLIENT_PRESENCE_FILE
68
+ - CLAUDE_CODE_ACCESSIBILITY
69
+ - CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD
70
+ - CLAUDE_CODE_ALT_SCREEN_FULL_REPAINT
71
+ - CLAUDE_CODE_ALWAYS_ENABLE_EFFORT
72
+ - CLAUDE_CODE_API_KEY_HELPER_TTL_MS
73
+ - CLAUDE_CODE_ARTIFACT_AUTO_OPEN
74
+ - CLAUDE_CODE_ARTIFACT_COMMENTS
75
+ - CLAUDE_CODE_ARTIFACT_COMMENTS_AUTOREACT
76
+ - CLAUDE_CODE_ARTIFACT_PUBLISH_EDITS
77
+ - CLAUDE_CODE_ATTRIBUTION_HEADER
78
+ - CLAUDE_CODE_AUTO_BACKGROUND_WORKER_CHECKIN_SECONDS
79
+ - CLAUDE_CODE_AUTO_COMPACT_WINDOW
80
+ - CLAUDE_CODE_AUTO_CONNECT_IDE
81
+ - CLAUDE_CODE_AUTO_MODE_MODEL
82
+ - CLAUDE_CODE_AUTO_MODE_SERVER
83
+ - CLAUDE_CODE_AWS_CHAIN_RESOLVE_TIMEOUT_MS
84
+ - CLAUDE_CODE_BASH_EDIT_DIFF
85
+ - CLAUDE_CODE_BG_TASKS_REPORT_RUNNING
86
+ - CLAUDE_CODE_BRIDGE_SESSION_ID
87
+ - CLAUDE_CODE_BS_AS_CTRL_BACKSPACE
88
+ - CLAUDE_CODE_CERT_STORE
89
+ - CLAUDE_CODE_CHILD_SESSION
90
+ - CLAUDE_CODE_CLIENT_CERT
91
+ - CLAUDE_CODE_CLIENT_KEY
92
+ - CLAUDE_CODE_CLIENT_KEY_PASSPHRASE
93
+ - CLAUDE_CODE_CONNECT_TIMEOUT_MS
94
+ - CLAUDE_CODE_DEBUG_LOGS_DIR
95
+ - CLAUDE_CODE_DEBUG_LOG_LEVEL
96
+ - CLAUDE_CODE_DISABLE_1M_CONTEXT
97
+ - CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING
98
+ - CLAUDE_CODE_DISABLE_ADVISOR_TOOL
99
+ - CLAUDE_CODE_DISABLE_AGENT_VIEW
100
+ - CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN
101
+ - CLAUDE_CODE_DISABLE_ARTIFACT
102
+ - CLAUDE_CODE_DISABLE_ATTACHMENTS
103
+ - CLAUDE_CODE_DISABLE_AUTH_REFRESH_LOCK
104
+ - CLAUDE_CODE_DISABLE_AUTO_MEMORY
105
+ - CLAUDE_CODE_DISABLE_BACKGROUND_TASKS
106
+ - CLAUDE_CODE_DISABLE_BEDROCK_CONTENT_TYPE_DEFAULT
107
+ - CLAUDE_CODE_DISABLE_BEDROCK_CONTENT_TYPE_GUARD
108
+ - CLAUDE_CODE_DISABLE_BG_EXIT_HANDOFF
109
+ - CLAUDE_CODE_DISABLE_BG_SHELL_PRESSURE_REAP
110
+ - CLAUDE_CODE_DISABLE_BUNDLED_SKILLS
111
+ - CLAUDE_CODE_DISABLE_CFC_PROMPT
112
+ - CLAUDE_CODE_DISABLE_CLAUDE_MDS
113
+ - CLAUDE_CODE_DISABLE_CRON
114
+ - CLAUDE_CODE_DISABLE_DANGEROUS_RM_TIMEOUT
115
+ - CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS
116
+ - CLAUDE_CODE_DISABLE_EXPLORE_PLAN_AGENTS
117
+ - CLAUDE_CODE_DISABLE_FAST_MODE
118
+ - CLAUDE_CODE_DISABLE_FEEDBACK_SURVEY
119
+ - CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING
120
+ - CLAUDE_CODE_DISABLE_FILE_MENTIONS
121
+ - CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS
122
+ - CLAUDE_CODE_DISABLE_INLINE_SHELL_RM_PROMPT
123
+ - CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP
124
+ - CLAUDE_CODE_DISABLE_MODEL_ACCESS_FALLBACK
125
+ - CLAUDE_CODE_DISABLE_MOUNTED_DRIVE_RM_PROMPT
126
+ - CLAUDE_CODE_DISABLE_MOUSE
127
+ - CLAUDE_CODE_DISABLE_MOUSE_CLICKS
128
+ - CLAUDE_CODE_DISABLE_MTLS_RELOAD_ON_STALE_CONNECTION
129
+ - CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC
130
+ - CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK
131
+ - CLAUDE_CODE_DISABLE_NOTIFICATION_PRESENCE_CHECK
132
+ - CLAUDE_CODE_DISABLE_OFFICIAL_MARKETPLACE_AUTOINSTALL
133
+ - CLAUDE_CODE_DISABLE_PASTE
134
+ - CLAUDE_CODE_DISABLE_PROMPT_CACHING
135
+ - CLAUDE_CODE_DISABLE_PROMPT_CACHING_FABLE
136
+ - CLAUDE_CODE_DISABLE_PROMPT_CACHING_HAIKU
137
+ - CLAUDE_CODE_DISABLE_PROMPT_CACHING_OPUS
138
+ - CLAUDE_CODE_DISABLE_PROMPT_CACHING_SONNET
139
+ - CLAUDE_CODE_DISABLE_REMOTE_CONTROL
140
+ - CLAUDE_CODE_DISABLE_SEATBELT
141
+ - CLAUDE_CODE_DISABLE_SLASH_COMMANDS
142
+ - CLAUDE_CODE_DISABLE_STREAMING
143
+ - CLAUDE_CODE_DISABLE_TELEMETRY
144
+ - CLAUDE_CODE_DISABLE_TERMINAL_TITLE
145
+ - CLAUDE_CODE_DISABLE_TODO
146
+ - CLAUDE_CODE_DISABLE_TRUST_DIALOG
147
+ - CLAUDE_CODE_DISABLE_WATCHDOG
148
+ - CLAUDE_CODE_ENABLE_FEEDBACK_SURVEY_FOR_OTEL
149
+ - CLAUDE_CODE_ENABLE_TELEMETRY
150
+ - CLAUDE_CODE_EFFORT_LEVEL
151
+ - CLAUDE_CODE_EXIT_AFTER_STOP_DELAY
152
+ - CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS
153
+ - CLAUDE_CODE_FILE_READ_MAX_OUTPUT_TOKENS
154
+ - CLAUDE_CODE_FORCE_SESSION_PERSISTENCE
155
+ - CLAUDE_CODE_GIT_BASH_PATH
156
+ - CLAUDE_CODE_GITLAB_TOKEN
157
+ - CLAUDE_CODE_MAX_OUTPUT_TOKENS
158
+ - CLAUDE_CODE_MAX_RETRIES
159
+ - CLAUDE_CODE_MAX_TOOL_USE_CONCURRENCY
160
+ - CLAUDE_CODE_MCP_TOOL_IDLE_TIMEOUT
161
+ - CLAUDE_CODE_MODEL
162
+ - CLAUDE_CODE_NO_FLICKER
163
+ - CLAUDE_CODE_OAUTH_REFRESH_TOKEN
164
+ - CLAUDE_CODE_OAUTH_SCOPES
165
+ - CLAUDE_CODE_OTEL_CONTENT_MAX_LENGTH
166
+ - CLAUDE_CODE_PACKAGE_MANAGER
167
+ - CLAUDE_CODE_PLUGIN_GIT_TIMEOUT_MS
168
+ - CLAUDE_CODE_PROMPT_CACHE_TTL
169
+ - CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST
170
+ - CLAUDE_CODE_REMOTE_SESSION_ID
171
+ - CLAUDE_CODE_RESUME_INTERRUPTED_TURNS
172
+ - CLAUDE_CODE_SHELL
173
+ - CLAUDE_CODE_SHELL_PREFIX
174
+ - CLAUDE_CODE_SKIP_BEDROCK_AUTH
175
+ - CLAUDE_CODE_SKIP_FOUNDRY_AUTH
176
+ - CLAUDE_CODE_SKIP_VERTEX_AUTH
177
+ - CLAUDE_CODE_SUBAGENT_MODEL
178
+ - CLAUDE_CODE_SUBAGENT_PROMPT_CACHE_TTL
179
+ - CLAUDE_CODE_SUBPROCESS_ENV_SCRUB
180
+ - CLAUDE_CODE_TASK_LIST_ID
181
+ - CLAUDE_CODE_TASK_LIST_ID_PREFIX
182
+ - CLAUDE_CODE_TMUX_TRUECOLOR
183
+ - CLAUDE_CODE_USE_BEDROCK
184
+ - CLAUDE_CODE_USE_FOUNDRY
185
+ - CLAUDE_CODE_USE_POWERSHELL_TOOL
186
+ - CLAUDE_CODE_USE_VERTEX
187
+ - CLAUDE_CODE_VERBOSE
188
+ - CLAUDE_CODE_VERSION
189
+ - CLAUDE_CODE_WORKER_CHECKIN_SCHEDULE
190
+ - CLAUDE_CONFIG_DIR
191
+ - CLAUDE_ENV_FILE
192
+ - CLAUDE_EXIT_AFTER_STOP_DELAY
193
+ - CLAUDE_PROJECT_DIR
194
+ - CLAUDE_SESSION_ID
195
+ - CLAUDE_STREAM_FIRST_BYTE_TIMEOUT_MS
196
+ - CLAUDE_STREAM_IDLE_TIMEOUT_MS
197
+ - CLAUDE_TELEMETRY
198
+ - DISABLE_AUTOUPDATER
199
+ - DISABLE_BUG_COMMAND
200
+ - DISABLE_ERROR_REPORTING
201
+ - DISABLE_FEEDBACK_COMMAND
202
+ - DISABLE_GROWTHBOOK
203
+ - DISABLE_INSTALLATION_CHECKS
204
+ - DISABLE_INSTALL_GITHUB_APP_COMMAND
205
+ - DISABLE_INTERLEAVED_THINKING
206
+ - DISABLE_LOGIN_COMMAND
207
+ - DISABLE_LOGOUT_COMMAND
208
+ - DISABLE_PROMPT_CACHING
209
+ - DISABLE_PROMPT_CACHING_FABLE
210
+ - DISABLE_PROMPT_CACHING_HAIKU
211
+ - DISABLE_PROMPT_CACHING_OPUS
212
+ - DISABLE_PROMPT_CACHING_SONNET
213
+ - DISABLE_TELEMETRY
214
+ - DISABLE_UPDATES
215
+ - DISABLE_UPGRADE_COMMAND
216
+ - DO_NOT_TRACK
217
+ - ENABLE_BETA_TRACING_DETAILED
218
+ - ENABLE_CLAUDEAI_MCP_SERVERS
219
+ - ENABLE_PROMPT_CACHING_1H
220
+ - ENABLE_PROMPT_CACHING_1H_BEDROCK
221
+ - ENABLE_TOOL_SEARCH
222
+ - FORCE_AUTOUPDATE_PLUGINS
223
+ - FORCE_HYPERLINK
224
+ - FORCE_PROMPT_CACHING_5M
225
+ - HTTP_PROXY
226
+ - HTTPS_PROXY
227
+ - IS_DEMO
228
+ - MAX_MCP_OUTPUT_TOKENS
229
+ - MAX_STRUCTURED_OUTPUT_RETRIES
230
+ - MAX_THINKING_TOKENS
231
+ - MCP_CLIENT_SECRET
232
+ - MCP_CONNECTION_NONBLOCKING
233
+ - MCP_CONNECT_TIMEOUT_MS
234
+ - MCP_DISCOVERY_CACHE
235
+ - MCP_DISCOVERY_CACHE_MAX_STALE_S
236
+ - MCP_DISCOVERY_CACHE_STRIKES
237
+ - MCP_DISCOVERY_CACHE_TTL_S
238
+ - MCP_OAUTH_CALLBACK_PORT
239
+ - MCP_PROTOCOL_NEGOTIATION
240
+ - MCP_REMOTE_SERVER_CONNECTION_BATCH_SIZE
241
+ - MCP_SDK_GENERATION
242
+ - MCP_SERVER_CONNECTION_BATCH_SIZE
243
+ - MCP_TIMEOUT
244
+ - MCP_TOOL_TIMEOUT
245
+ - NO_PROXY
246
+ - OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT
247
+ - OTEL_LOG_ASSISTANT_RESPONSES
248
+ - OTEL_LOG_MANAGED_SETTINGS
249
+ - OTEL_LOG_RAW_API_BODIES
250
+ - OTEL_LOG_TOOL_CONTENT
251
+ - OTEL_LOG_TOOL_DETAILS
252
+ - OTEL_LOG_USER_PROMPTS
253
+ - OTEL_METRICS_INCLUDE_ACCOUNT_UUID
254
+ - OTEL_METRICS_INCLUDE_ENTRYPOINT
255
+ - OTEL_METRICS_INCLUDE_REPOSITORY
256
+ - OTEL_METRICS_INCLUDE_RESOURCE_ATTRIBUTES
257
+ - OTEL_METRICS_INCLUDE_SESSION_ID
258
+ - OTEL_METRICS_INCLUDE_VERSION
259
+ - OTEL_METRICS_EXPORTER
260
+ - OTEL_LOGS_EXPORTER
261
+ - OTEL_EXPORTER_OTLP_ENDPOINT
262
+ - OTEL_EXPORTER_OTLP_PROTOCOL
263
+ - OTEL_EXPORTER_OTLP_HEADERS
264
+ - OTEL_METRIC_EXPORT_INTERVAL
265
+ - OTEL_RESOURCE_ATTRIBUTES
266
+ - OTEL_EXPORTER_OTLP_TIMEOUT
267
+ - OTEL_EXPORTER_OTLP_COMPRESSION
268
+ - SLASH_COMMAND_TOOL_CHAR_BUDGET
269
+ - TASK_MAX_OUTPUT_LENGTH
270
+ - USE_BUILTIN_RIPGREP
271
+ - VERTEX_REGION_CLAUDE_3_5_HAIKU
272
+ - VERTEX_REGION_CLAUDE_3_5_SONNET
273
+ - VERTEX_REGION_CLAUDE_3_7_SONNET
274
+ - VERTEX_REGION_CLAUDE_4_0_OPUS
275
+ - VERTEX_REGION_CLAUDE_4_0_SONNET
276
+ - VERTEX_REGION_CLAUDE_4_1_OPUS
277
+ - VERTEX_REGION_CLAUDE_4_5_OPUS
278
+ - VERTEX_REGION_CLAUDE_4_5_SONNET
279
+ - VERTEX_REGION_CLAUDE_4_6_OPUS
280
+ - VERTEX_REGION_CLAUDE_4_6_SONNET
281
+ - VERTEX_REGION_CLAUDE_4_7_OPUS
282
+ - VERTEX_REGION_CLAUDE_4_8_OPUS
283
+ - VERTEX_REGION_CLAUDE_5_5_OPUS
284
+ - VERTEX_REGION_CLAUDE_5_5_SONNET
285
+ - VERTEX_REGION_CLAUDE_5_OPUS
286
+ - VERTEX_REGION_CLAUDE_5_SONNET
287
+ - VERTEX_REGION_CLAUDE_FABLE_5
288
+ - VERTEX_REGION_CLAUDE_FABLE_5_1
289
+ - VERTEX_REGION_CLAUDE_HAIKU_4_5
290
+ - VERTEX_REGION_CLAUDE_HAIKU_5_5
291
+ volumes:
292
+ - ${HOME}/.claude:${HOME}/.claude:ro
@@ -0,0 +1,4 @@
1
+
2
+ def environment() -> dict[str, str]:
3
+ ret: dict[str, str] = {}
4
+ return ret
@@ -0,0 +1,8 @@
1
+ environment:
2
+ - OPENCODE_CONFIG
3
+ - OPENCODE_CONFIG_DIR
4
+ volumes:
5
+ - ${HOME}/.config/opencode:${HOME}/.config/opencode:rw
6
+ - ${HOME}/.local/share/opencode:${HOME}/.local/share/opencode:rw
7
+ - ENV[OPENCODE_CONFIG]:ENV[OPENCODE_CONFIG]
8
+ - ENV[OPENCODE_CONFIG_DIR]:ENV[OPENCODE_CONFIG_DIR]
@@ -0,0 +1,5 @@
1
+ # DI_BASE = almalinux:10
2
+ FROM almalinux:10
3
+
4
+ RUN dnf install -y epel-release cmake gcc curl wget git
5
+
@@ -0,0 +1,5 @@
1
+ # DI_BASE = almalinux:9
2
+ FROM almalinux:9
3
+
4
+ RUN dnf install -y epel-release cmake gcc curl wget git
5
+
@@ -0,0 +1,6 @@
1
+ # DI_BASE = archlinux:latest
2
+ # DI_PKG = pacman
3
+ FROM archlinux:latest
4
+
5
+ RUN pacman -Sy --noconfirm git curl wget
6
+
@@ -0,0 +1,6 @@
1
+ # DI_BASE = debian:13
2
+ # DI_BASE = debian:trixie
3
+ FROM debian:13
4
+ ENV DEBIAN_FRONTEND noninteractive
5
+
6
+ RUN apt-get update && apt install -y cmake build-essential git curl wget iproute2
@@ -0,0 +1,5 @@
1
+ # DI_BASE = fedora:43
2
+ FROM fedora:43
3
+
4
+ RUN dnf install -y cmake gcc curl wget git
5
+
@@ -0,0 +1,5 @@
1
+ # DI_BASE = fedora:44
2
+ FROM fedora:44
3
+
4
+ RUN dnf install -y cmake gcc curl wget git
5
+
@@ -0,0 +1,5 @@
1
+ # DI_BASE = fedora:45
2
+ FROM fedora:45
3
+
4
+ RUN dnf install -y cmake gcc curl wget git
5
+
@@ -0,0 +1,6 @@
1
+ # DI_BASE = fedora:rawhide
2
+ # DI_PKG = dnf
3
+ FROM fedora:rawhide
4
+
5
+ RUN dnf install -y cmake gcc curl wget git
6
+
@@ -0,0 +1,4 @@
1
+ # DI_BASE = opensuse-leap:16.0
2
+ FROM opensuse/leap:16.0
3
+
4
+ RUN zypper --non-interactive install make gcc gcc-fortran cmake ninja python3 python3-pip git curl wget
@@ -0,0 +1,5 @@
1
+ # DI_BASE = opensuse-tumbleweed:latest
2
+ # DI_PKG = zypper
3
+ FROM opensuse/tumbleweed:latest
4
+
5
+ RUN zypper --non-interactive install make gcc gcc-fortran cmake ninja python3 python3-pip git curl wget
@@ -0,0 +1,6 @@
1
+ # DI_BASE = ubuntu:22.04
2
+ # DI_BASE = ubuntu:jammy
3
+ FROM ubuntu:22.04
4
+ ENV DEBIAN_FRONTEND noninteractive
5
+ RUN apt-get update && apt install -y cmake build-essential git curl wget iproute2
6
+
@@ -0,0 +1,7 @@
1
+ # DI_BASE = ubuntu:24.04
2
+ # DI_BASE = ubuntu:noble
3
+ FROM ubuntu:24.04
4
+ ENV DEBIAN_FRONTEND noninteractive
5
+
6
+ RUN apt-get update && apt install -y cmake build-essential git curl wget iproute2
7
+
@@ -0,0 +1,8 @@
1
+ # DI_BASE = ubuntu:26.04
2
+ # DI_BASE = ubuntu:resolute
3
+ # DI_PKG = apt
4
+ FROM ubuntu:26.04
5
+ ENV DEBIAN_FRONTEND noninteractive
6
+
7
+ RUN apt-get update && apt install -y cmake build-essential git curl wget iproute2
8
+
@@ -0,0 +1,136 @@
1
+ # This is the default config for dev-isolator
2
+ # Users can overwrite it in each project.
3
+ #
4
+ version: 0.1
5
+
6
+ build:
7
+ # Use the local directory as context. If the directory is large, this takes a while building the image
8
+ # If set to false, a empty temporary directory is used only containing the Containerfile.
9
+ # If your Containerfile uses "ADD" or "COPY" instructions, set this to true
10
+ local_context: false
11
+
12
+ # Pass the nocache flag to the build process. If set to true, the build process does not cache anything.
13
+ nocache: false
14
+
15
+ # List of addons to be enabled in the abse image
16
+ addons:
17
+ - opencode
18
+ - claude
19
+
20
+ # Predefined commands, executed inside the container with
21
+ # ``dev-isolator target <name> [args...]`` (a bit like a predefined
22
+ # ``run``). The command is a jinja2 template in which the extra
23
+ # arguments given after the target name are available as
24
+ # ``args[0]``, ``args[1]``, ... and as ``all_args`` (all of them joined
25
+ # with spaces). A placeholder marked with the ``optional`` filter is
26
+ # only used when the argument was given on the command line; the token
27
+ # holding it (and a preceding option token) is dropped otherwise.
28
+ # A ``{{ args[n] }}`` placeholder without the filter is mandatory:
29
+ # running the target without that argument aborts with an error.
30
+ # The command may be a single command line (a string) or a script
31
+ # given line by line in a list; the script lines run line by line in
32
+ # one shell session, which stops at the first failing line.
33
+ # targets:
34
+ # test: pytest -v {{ all_args }}
35
+ # full:
36
+ # - echo "Building the project"
37
+ # - pytest -v {{ all_args }}
38
+ # - ruff check src
39
+ # cover: pytest --cov={{ args[0] }}
40
+ # log: pytest -v 2>&1 | tee output.txt
41
+ # lint:
42
+ # - ruff check
43
+ # - "{{ args[0] | optional }}"
44
+
45
+ # Additional arguments passed to podman's containers.create() when
46
+ # generating the container (only the most common ones are supported,
47
+ # see SUPPORTED_RUN_ARGUMENTS in dev_isolator/config.py).
48
+ # Uncomment and adjust the entries you need:
49
+ run_arguments: {}
50
+
51
+ # # Optional hostname for the container
52
+ # # hostname: my-dev-container
53
+ #
54
+ # # Working directory inside the container
55
+ # # working_dir: /workspace
56
+ #
57
+ # # Allocate a pseudo-TTY
58
+ # # tty: true
59
+ #
60
+ # # Keep STDIN open even if not attached
61
+ # # stdin_open: true
62
+ #
63
+ # # Give extended privileges to the container (e.g. needed for docker-in-docker)
64
+ # # privileged: false
65
+ #
66
+ # # Username or UID to run commands as inside the container
67
+ # # user: "1000:1000"
68
+ #
69
+ # # Usermode in the Namespace
70
+ # # userns_mode: keep-id
71
+ #
72
+ # # Ports to bind inside the container; keys are the container ports,
73
+ # # values the corresponding host ports
74
+ # # ports:
75
+ # # 2222/tcp: 3333
76
+ #
77
+ # # Ports of the container published to the host
78
+ # # publish_all_ports: false
79
+ #
80
+ # # Memory limit, e.g. 1073741824 (bytes) or a string with a unit ("128m", "1g")
81
+ # # mem_limit: 1g
82
+ #
83
+ # # CPU quota in units of 1e-9 CPUs (e.g. 2000000000 = 2 CPUs)
84
+ # # nano_cpus: 2000000000
85
+ #
86
+ # # CPUs in which to allow execution ("0-3" or a list like "0,1")
87
+ # # cpuset_cpus: 0-3
88
+ #
89
+ # # Expose host devices to the container, in the form
90
+ # # <path_on_host>:<path_in_container>:<cgroup_permissions>
91
+ # # devices:
92
+ # # - /dev/sda:/dev/xvda:rwm
93
+ #
94
+ # # Add kernel capabilities
95
+ # # cap_add:
96
+ # # - SYS_ADMIN
97
+ # # - MKNOD
98
+ #
99
+ # # Drop kernel capabilities
100
+ # # cap_drop:
101
+ # # - NET_ADMIN
102
+ #
103
+ # # Custom DNS servers
104
+ # # dns:
105
+ # # - 8.8.8.8
106
+ #
107
+ # # Additional hostnames to resolve inside the container, mapping
108
+ # # hostname to IP address
109
+ # # extra_hosts:
110
+ # # myhost: 192.168.1.10
111
+ #
112
+ # # Network mode: "bridge", "none", "host" or "container:<name|id>"
113
+ # # network_mode: bridge
114
+ #
115
+ # # Size of /dev/shm
116
+ # # shm_size: 1G
117
+ #
118
+ # # Mount the container's root filesystem as read only
119
+ # # read_only: false
120
+ #
121
+ # # Name-value labels for the container
122
+ # # labels:
123
+ # # label1: value1
124
+ #
125
+ # # Kernel parameters to set inside the container
126
+ # # sysctls:
127
+ # # net.ipv4.ip_forward: "1"
128
+ #
129
+ # # Restart the container when it exits (Name: "on-failure" or "always",
130
+ # # MaximumRetryCount: restarts on failure)
131
+ # # restart_policy:
132
+ # # Name: on-failure
133
+ # # MaximumRetryCount: 5
134
+ #
135
+ # # Automatically remove the container when its process exits
136
+ # # auto_remove: false
@@ -0,0 +1,36 @@
1
+ {#- Template for the host user block appended to the Containerfile.
2
+
3
+ Variables:
4
+ - uid: UID to use inside the container (host UID).
5
+ - gid: GID to use inside the container (host GID).
6
+ - username: Username usable inside the container.
7
+ - homedir: Home directory
8
+
9
+ Existing users/groups occupying UID/GID/username are removed, so
10
+ exactly one container user with those properties remains.
11
+ -#}
12
+ # --- host user: same UID, GID and username as on the host ---
13
+ RUN set -eux; \
14
+ # Remove users/groups already occupying UID/GID/username.
15
+ if getent passwd {{ uid }} >/dev/null 2>&1; then \
16
+ userdel --force --remove \
17
+ "$(getent passwd {{ uid }} | cut -d: -f1)"; \
18
+ fi; \
19
+ if getent passwd {{ username }} >/dev/null 2>&1; then \
20
+ userdel --force --remove {{ username }}; \
21
+ fi; \
22
+ if getent group {{ gid }} >/dev/null 2>&1; then \
23
+ groupdel "$(getent group {{ gid }} | cut -d: -f1)"; \
24
+ fi; \
25
+ if getent group {{ username }} >/dev/null 2>&1; then \
26
+ groupdel {{ username }}; \
27
+ fi; \
28
+ groupadd --gid {{ gid }} {{ username }}; \
29
+ useradd --uid {{ uid }} --gid {{ gid }} \
30
+ --create-home --home-dir {{ home_dir }} --shell /bin/bash {{ username }}
31
+ USER {{ username }}
32
+ RUN mkdir -p "{{ home_dir }}/.config" && \
33
+ mkdir -p "{{ home_dir }}/.local"
34
+
35
+ USER root
36
+