16 lines
508 B
Bash
16 lines
508 B
Bash
#!/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
|
||
|