Closed zedtux closed 3 years ago
Earthly is a kind of Makefile to build Dockerfiles so that you declare a file like this:
Makefile
Dockerfile
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
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:
Earthfile
deps
docker
SAVE IMAGE
SAVE ARTIFACT
RUN
COPY
FROM
Please see here what I have right now:
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.
Earthly is a kind of
Makefile
to buildDockerfile
s so that you declare a file like this:and using the
earth
command line tool, it will build the final image: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:Earthfile
in addition toDockerfile
.deps
anddocker
in my example) should be coloured. I was thinking of a blue color.SAVE IMAGE
,SAVE ARTIFACT
and so on needs to be coloured likeRUN
,COPY
and so on.FROM
command is not coloured when having spaces in front of it and it should in aEarthfile
Please see here what I have right now: