0%

how to install coreos

准备

  • 下载coreos_production_iso_image.iso

  • 下载matchbox
    操作机器:macos(192.168.1.87)

    wget https://github.com/coreos/matchbox/releases/download/v0.7.1/matchbox-v0.7.1-darwin-amd64.tar.gz
    wget https://github.com/coreos/matchbox/releases/download/v0.7.1/matchbox-v0.7.1-darwin-amd64.tar.gz.asc

    tar xzvf matchbox-v0.7.1-darwin-amd64.tar.gz

    编辑vim matchbox-v0.7.1-darwin-amd64/scripts/tls/openssl.conf

    ...
    subjectAltName = IP.1:192.168.1.87

    生成 ca.crt, server.crt, server.key, client.crt, client.key.

    cd matchbox-v0.7.1-darwin-amd64/scripts/tls/
    ./cert-gen

    运行matchbox

    cd matchbox-v0.7.1-darwin-amd64/
    mkdir -p data/assets
    ./matchbox -address 0.0.0.0:8080 -assets-path ./data/assets -ca-file ./scripts/tls/ca.crt -cert-file ./scripts/tls/server.crt -data-path ./data key-file ./scripts/tls/server.key -web-cert-file ./scripts/tls/server.crt -web-key-file ./scripts/tls/server.key

    curl http://192.168.1.87:8080

    matchbox
  • 下载(Container Linux)[https://coreos.com/releases/]

    cd matchbox-v0.7.1-darwin-amd64/data/assets
    ../../scripts/get-coreos stable 1911.4.0 .

    验证

    curl http://192.168.1.87:8080/assets/coreos/1911.4.0/

    #TODO
    未完待续

欢迎关注我的其它发布渠道