Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spotify/dockerfile-mode
An emacs mode for handling Dockerfiles
https://github.com/spotify/dockerfile-mode
Last synced: about 1 month ago
JSON representation
An emacs mode for handling Dockerfiles
- Host: GitHub
- URL: https://github.com/spotify/dockerfile-mode
- Owner: spotify
- License: apache-2.0
- Created: 2013-08-06T17:35:45.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2024-09-14T15:49:47.000Z (3 months ago)
- Last Synced: 2024-09-15T01:46:09.317Z (3 months ago)
- Language: Emacs Lisp
- Size: 87.9 KB
- Stars: 535
- Watchers: 20
- Forks: 79
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-docker - dockerfile-mode
- awesome-docker - dockerfile-mode
README
dockerfile-mode
===============
Known to work with Emacs 24 and laterIf you just want to use it, you can get it via MELPA.
A Dockerfile mode for emacs
``` emacs-lisp
(add-to-list 'load-path "/your/path/to/dockerfile-mode/")
(require '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.``` emacs-lisp
## -*- 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:``` emacs-lisp
(put 'dockerfile-image-name 'safe-local-variable #'stringp)
```You can change the binary to use with
```emacs-lisp
(setq dockerfile-mode-command "docker")
```