-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path1d_run_container.bash
More file actions
executable file
·52 lines (39 loc) · 1.68 KB
/
Copy path1d_run_container.bash
File metadata and controls
executable file
·52 lines (39 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash -eu
# Copyright 2025 Shunsuke Kimura
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# コンテナ環境用セットアップ(dlsta2 の ubuntu22-desktop 等)
# systemd / GNOME 系は含めず、common preference + Mozc + 共通 CLI のみ
# 全項目を対話選択 (ASSUME_YES=1 で全 default 採用)
cd `dirname $0`
source ./software/_prompt_lib.bash
echo
echo "=== セットアップ項目選択 (Enter でデフォルト) ==="
# Preference
ask_step 2a-common ./2a_preference_common.bash y "vim/.bashrc/xdg ホーム英語化"
ask_step 2d-mozc ./2d_preference_mozc.bash y "Mozc IME 設定"
# Software
ask_pkg uv y "Python パッケージマネージャ"
ask_pkg gh y "GitHub CLI"
ask_pkg claude-code y
ask_pkg nodejs y "Node.js LTS (via nvm)"
ask_pkg codex y "OpenAI Codex CLI"
ask_pkg docker y
ask_pkg tmux y
ask_pkg hackgen y "HackGen NF フォント"
ask_pkg biz-ud y "BIZ UD ゴシック+明朝 (等幅+プロポーショナル)"
confirm_or_abort
sudo apt update
if run_all; then
echo -e "\033[32mContainer setup is complete!\033[m"
else
echo -e "\033[33mContainer setup finished with some failures. See above.\033[m"
exit 1
fi