【docker】yml ⇆ json を変換する
以下のコマンドを実行
$ docker run -it -v $PWD:/mnt/ --rm python:3.7-alpine sh
必要なライブラリなどをインストール
/ # cd mnt; apk add jq; pip install yq
ymlからjson,jsonからymlに変換する
$ yq "." [変換したいymlファイル] > [変換後のjsonファイル]
Author And Source
この問題について(【docker】yml ⇆ json を変換する), 我々は、より多くの情報をここで見つけました https://qiita.com/higakin/items/cc810847d43f6619bd81著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .