

GitHub - spotify/dockerfile-mode: An emacs mode for handling Dockerfiles
source link: https://github.com/spotify/dockerfile-mode
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

dockerfile-mode
Known to work with Emacs 24 and later
If you just want to use it, you can get it via MELPA.
A Dockerfile mode for emacs
(add-to-list 'load-path "/your/path/to/dockerfile-mode/")
(require 'dockerfile-mode)
(add-to-list 'auto-mode-alist '("Dockerfile\\'" . dockerfile-mode))
Adds syntax highlighting as well as the ability to build the image
directly using C-c C-b
from the buffer (C-c M-b
to bypass docker build cache).
You can specify the image name in the file itself by adding a line like this at the top of your Dockerfile.
## -*- dockerfile-image-name: "your-image-name-here" -*-
If you don't, you'll be prompted for an image name each time you build. You may want to add the following to your emacs config:
(put 'dockerfile-image-name 'safe-local-variable #'stringp)
You can change the binary to use with
(setq dockerfile-mode-command "docker")
Recommend
-
79
Incrementally build a basic Dockerfile for Go, with live reloading and package management, and then extend the same to create a highly optimized production-ready image with 100x reduction in size.
-
42
README.md WhaleTail WhaleTail is a Go program which is designed to reverse engineer a Docker Image into the Dockerfile that created it. It currently performs the following actions ...
-
83
README.md Dockerfile Maven
-
36
本文介绍了构建高效镜像的建议最佳实践和方法。 Docker通过读取Dockerfile中的指令自动构建镜像,一个文本文件包含构建镜像的所有指...
-
91
本文档介绍了构建高效镜像的优秀实践和方法。Docker通过从Dockerfile(按顺序包含构建给定镜像所需的所有命令的文本文件)读取命令来自动构建镜像。Dockerfile遵循特定的格式和一组命令,您可以在Dockerfile reference中找到这些命令。
-
18
Dockerfiler ( GitHub ) ( Docker Hub ) Dockerfiler is a tool for declaratively managin...
-
11
Multistage Dockerfiles for Quarkus New Quarkus applications can be created in several ways, for example via CLI or the Start Coding page. Since...
-
3
Files Permalink Latest commit message Commit time
-
5
FSharp.Text.Docker Interact with docker with the type safety of the F# language. Define a dockerfile A dockerfile can be built using a set of types for all of the supported instructions, providing type safety and comp...
-
6
Docker Repo A repository stores some dockerfiles or docker-compose files for quickly starting service or service cluster. 一个使用Dockerfile和Docker-Compose快速搭建各种服务组件或服务组件集群的仓库; About Dockerfile:
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK