Sign inSign up

keinos/coreos-transpiler

By keinos

•Updated over 6 years ago

Alpine container of "ct" (Configuration Transpiler for CoreOS Container Linux)

Image
0

2.8K

keinos/coreos-transpiler repository overview

CircleCI Docker Cloud Build Status

⁠Dockerfile for CoreOS Configuration Transpiler

Alpine docker container with ct command, the Configuration Transpiler⁠ tool for CoreOS.

Use this container to transpile YAML to JSON. Such as "CoreOS Container Linux Configuration" file to "CoreOS Ignition" file.

NOTE: The ordinary "coreos-cloudinit" has been deprecated⁠. If you want to install "coreos-cloudinit" command to verify/validate the "cloud-config" configuration file, use the "Configuration transpiler⁠" tool or this docker image instead.

⁠Pull from DockerHub

docker pull keinos/coreos-transpiler
⁠Basic usage
docker run --rm -v $(pwd):/data keinos/coreos-transpiler ct [ARG] [[ARG] [ARG] ...]
  • NOTE: ARGs are the arguments for ct(the transpiler tool) command. For example to see the help of ct would be:

    docker run --rm keinos/coreos-transpiler ct --help
    
⁠Sample usage
$ ls
cloud-config.yml
$ docker run --rm \
    -v $(pwd):/data \
    keinos/coreos-transpiler \
    ct -in-file /data/cloud-config.yml -out-file /data/ignition.json
$ ls
cloud-config.yml    ignition.json

⁠Build your own

⁠Easy way
docker image build --tag config-transpiler:latest https://github.com/KEINOS/Dockerfile_of_CoreOS_Transpiler.git
⁠Tipical way
  1. Clone the repo from GitHub.

  2. If you have make installed then just run make to build the docker image.

    $ ls
    Dockerfile  LICENSE    Makefile   README.md
    $ make
    ...
    Successfully built 74db61a427af
    Successfully tagged config-transpiler:latest
    $ docker image ls | grep config-transpiler
    config-transpiler    latest    74db61a427af    2 minutes ago   13.5MB
    
  3. OR build the image in ordinary way:

    docker image build --tag config-transpiler:latest .
    

Tag summary

Content type

Image

Digest

Size

5.6 MB

Last updated

about 7 years ago

docker pull keinos/coreos-transpiler