Skip to content

Commit 14e9903

Browse files
author
Henrik Lissner
authored
Merge pull request #23 from sei40kr/dockerize-snippets
Add dockerize snippets for dockerfile-mode
2 parents 8900bff + 3baff92 commit 14e9903

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

dockerfile-mode/dockerize-alpine

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# -*- mode: snippet -*-
2+
# contributor: Seong Yong-ju
3+
# name: dockerize for Alpine Images
4+
# key: dockerize-alpine
5+
# expand-env: ((yas-indent-line 'fixed))
6+
# --
7+
RUN apk add --no-cache openssl
8+
9+
ENV DOCKERIZE_VERSION ${1:v0.6.1}
10+
RUN wget https://github.com/jwilder/dockerize/releases/download/${DOCKERIZE_VERSION}/dockerize-alpine-linux-amd64-${DOCKERIZE_VERSION}.tar.gz \
11+
&& tar -C /usr/local/bin -xzvf dockerize-alpine-linux-amd64-${DOCKERIZE_VERSION}.tar.gz \
12+
&& rm dockerize-alpine-linux-amd64-${DOCKERIZE_VERSION}.tar.gz
13+
$0

dockerfile-mode/dockerize-ubuntu

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# -*- mode: snippet -*-
2+
# contributor: Seong Yong-ju
3+
# name: dockerize for Ubuntu Images
4+
# key: dockerize-ubuntu
5+
# expand-env: ((yas-indent-line 'fixed))
6+
# --
7+
RUN apt-get update && apt-get install -y wget
8+
9+
ENV DOCKERIZE_VERSION ${1:v0.6.1}
10+
RUN wget https://github.com/jwilder/dockerize/releases/download/${DOCKERIZE_VERSION}/dockerize-linux-amd64-${DOCKERIZE_VERSION}.tar.gz \
11+
&& tar -C /usr/local/bin -xzvf dockerize-linux-amd64-${DOCKERIZE_VERSION}.tar.gz \
12+
&& rm dockerize-linux-amd64-${DOCKERIZE_VERSION}.tar.gz
13+
$0

0 commit comments

Comments
 (0)