chore: actualizar deps Go, sources.yaml y funciones infra modificadas
Nuevas dependencias para ClickHouse, DuckDB, Postgres drivers. Actualizar sources.yaml con funciones extraídas. Ajustes menores en write_jupyter_launcher, write_mcp_jupyter_config y docker_run_container. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -15,6 +15,8 @@ type DockerRunOpts struct {
|
||||
Detach bool // Ejecutar en background
|
||||
Remove bool // Eliminar al terminar (--rm)
|
||||
Network string // Red Docker (opcional)
|
||||
CapAdd []string // Linux capabilities, ej: ["NET_ADMIN", "SYS_MODULE"]
|
||||
Cmd []string // Comando a ejecutar en el contenedor (opcional)
|
||||
}
|
||||
|
||||
// DockerRunContainer ejecuta un contenedor Docker nuevo con la imagen y opciones dadas.
|
||||
@@ -43,8 +45,12 @@ func DockerRunContainer(image string, opts DockerRunOpts) (string, error) {
|
||||
for _, vol := range opts.Volumes {
|
||||
args = append(args, "-v", vol)
|
||||
}
|
||||
for _, cap := range opts.CapAdd {
|
||||
args = append(args, "--cap-add", cap)
|
||||
}
|
||||
|
||||
args = append(args, image)
|
||||
args = append(args, opts.Cmd...)
|
||||
|
||||
out, err := exec.Command("docker", args...).CombinedOutput()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user