-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #119 from perl-entrance-org/feature-codespaces
Riji 入りで Codespaces を起動する設定を追加
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# 基本イメージとしてVS Codeの汎用開発コンテナベースイメージを使用 | ||
FROM mcr.microsoft.com/vscode/devcontainers/base:ubuntu | ||
|
||
# Perl、cpanminus、および必要なビルドツールのインストール | ||
RUN sudo apt-get update \ | ||
&& sudo apt-get install -y perl cpanminus build-essential \ | ||
&& sudo rm -rf /var/lib/apt/lists/* | ||
|
||
# App::cpm のインストール | ||
# TODO: cpm 自体のインストール速度を上げたい | ||
RUN cpanm App::cpm | ||
|
||
# App::cpm を使用して Riji パッケージを並列でインストール | ||
# TODO: --no-test しないと Riji が必要とする Git::Repository などがエラーになる | ||
RUN cpm install --no-test -g Riji | ||
|
||
# 作業ディレクトリの設定 | ||
# WORKDIR /workspace | ||
|
||
# 標準で実行されるコマンドを指定 (ここでは bash を使う) | ||
# CMD ["/bin/bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "Perl & Riji Project", | ||
"build": { | ||
"dockerfile": "Dockerfile", | ||
"context": "." | ||
}, | ||
"customizations": { | ||
"settings": { | ||
"terminal.integrated.shell.linux": "/bin/bash" | ||
}, | ||
"extensions": [] | ||
}, | ||
"postCreateCommand": "cpanm Riji", | ||
"remoteUser": "vscode" | ||
} |