asbjornenge / Docker.tmbundle

Dockerfile syntax
MIT License
75 stars 27 forks source link

Earthly support #32

Closed zedtux closed 3 years ago

zedtux commented 3 years ago

Earthly is a kind of Makefile to build Dockerfiles so that you declare a file like this:

FROM ruby
WORKDIR /app

deps:
    RUN apt-update \
        apt-install --yes git

    SAVE IMAGE

docker:
    FROM +deps

    RUN git --version

    SAVE IMAGE docker:git

and using the earth command line tool, it will build the final image:

earth +docker

The example I'm giving make no sens but I wanted to keep it very simple.

Have a look at their Basics documentation for better examples.

Using this package in order to highlight a Earthfile is already well working but needs some improvements:

Please see here what I have right now:

Screenshot 2020-09-30 at 08 20 39

vladaionescu commented 3 years ago

This is being developed at a separate plugin in the end: https://github.com/earthly/earthly/issues/331. I believe this issue can be closed.