2019年9月

9月18日(水)

GitHub Actionsで、pandocのインストールはできるが、お片付けができていない。

E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
##[error]Process completed with exit code 100.

sudo つけたらうまくいった。

GitHub ActionsによるGitHub Pagesへのデプロイに失敗。 おそらくTOKEN関連。これは面倒だ・・・。

9月14日(日)

GitHub Actionのテストのために、ローカルにDockerを入れる。WindowsにDocker-CEを入れるには、まずDockerアカウントを作る必要がある。それをインストール。また、WSLにもDockerをインストール。WindowsはHyper-Vを有効にして再起動する必要がある。また、Docker for WindowsでExposeなんとかでサーバを見えるようにする。そして、WSL側で

export DOCKER_HOST=tcp://localhost:2375

とすれば、WSLでDockerが使えるようになる。

GitHub ActionsでUbuntu 18.04を使うが、どうせlatestと同じなのでlatestをひっぱる。

docker pull ubuntu

入ったことを確認。

$ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
ubuntu              latest              a2a15febcdf3        4 weeks ago         64.2MB

起動。

$ docker run -it ubuntu /bin/bash
root@f18b2a95711e:/# apt update
root@f18b2a95711e:/# apt install -y pandoc

で入ることを確認。

Dockerでファイルを共有するには、Docker側でShared Driveで共有するドライブにチェックを入れる必要がある。

とりあえず、Desktopにgithub\actions_testを

docker run  -v c:\\Users\\watanabe\\Desktop\\github\\actions_test:/temp ubuntu ls /temp
docker run  -it -v c:\\Users\\watanabe\\Desktop\\github\\actions_test:/temp ubuntu /bin/bash
apt update
apt install -y pandoc
pandoc -s README.md -o test.html -t html --template=template

できた。

9月4日(水)

ディスプレイとノートPCの注文をした。来週水曜日受け取り。