-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
7 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 |
---|---|---|
|
@@ -6,25 +6,30 @@ CSS_PATH="${ROOT_DIR}/documents/common/pandoc_styles/css/style.css" | |
STYLE_DOCX_PATH="${ROOT_DIR}/documents/common/pandoc_styles/スタイル.docx" | ||
RESOURCES_DIR="${ROOT_DIR}/public/resources" | ||
|
||
# バージョンチェック | ||
cat /etc/alpine-release | ||
|
||
apk update | ||
apk add nodejs npm | ||
|
||
# apkによるインストール | ||
## chromium のインストール | ||
apk add --update chromium | ||
|
||
npm install n -g | ||
n stable | ||
## nodejs(v18) のインストール | ||
apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/v3.17/main nodejs~=18 npm | ||
|
||
# バージョンチェック | ||
node -v | ||
npm -v | ||
chromium-browser --version | ||
|
||
# mermaid-filterに必要な変数をセット | ||
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD='true' | ||
export MERMAID_FILTER_PUPPETEER_CONFIG="${ROOT_DIR}/.puppeteer.json" | ||
export PUPPETEER_EXECUTABLE_PATH="/usr/bin/chromium-browser" | ||
echo $PUPPETEER_SKIP_CHROMIUM_DOWNLOAD | ||
echo $MERMAID_FILTER_PUPPETEER_CONFIG | ||
echo $PUPPETEER_EXECUTABLE_PATH | ||
npm i -g [email protected] | ||
|
||
# mermaid-filterのインストール | ||
npm i -g [email protected] | ||
|
||
# Java | ||
cd ${ROOT_DIR}/documents/forJava | ||
|