gchat/sand.sh
2026-02-12 16:08:15 +09:00

16 lines
508 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/sh
# workspaceディレクトリを確実に作成
mkdir -p ~/dev/gchat/workspace
# 隔離された「遊び場」を起動
docker run -d \
--name sandbox_container \
--add-host=host.docker.internal:host-gateway \
-v ~/dev/gchat/workspace:/workspace \
ubuntu:22.04 \
tail -f /dev/null
# 最小限の道具Cコンパイラ、Python、curlをインストール
docker exec sandbox_container apt-get update
docker exec sandbox_container apt-get install -y build-essential curl python3