alpine: convert to box

This commit is contained in:
Cadey Ratio 2017-01-11 00:03:58 -08:00
parent 4ccde482b2
commit d5a98c26d8
2 changed files with 21 additions and 20 deletions

View File

@ -1,20 +0,0 @@
FROM alpine:edge
RUN apk add -U --no-cache tini
ADD ./entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]
# Add Backplane agent
ENV BACKPLANE_AGENT_VERSION 1.2.2
RUN apk add -U --no-cache wget ca-certificates \
&& wget https://bin.equinox.io/c/jWahGASjoRq/backplane-stable-linux-amd64.tgz \
&& tar xf backplane-stable-linux-amd64.tgz \
&& mv backplane /usr/bin/backplane \
&& rm backplane-stable-linux-amd64.tgz \
&& apk del wget
# update to edge
ADD repositories /etc/apk/repositories
RUN apk add -U --no-cache runit
ADD runit/ /etc/system

21
base/alpine/box.rb Normal file
View File

@ -0,0 +1,21 @@
from "alpine:edge"
copy "repositories", "/etc/apk/repositories"
copy "runit/", "/etc/system"
run "apk upgrade --no-cache"
run "apk add --no-cache --virtual xe-alpine-base tini ca-certificates runit"
env "BACKPLANE_AGENT_VERSION" => "1.2.2"
run %q[ apk add -U --no-cache wget ca-certificates \
&& wget https://bin.equinox.io/c/jWahGASjoRq/backplane-stable-linux-amd64.tgz \
&& tar xf backplane-stable-linux-amd64.tgz \
&& mv backplane /usr/bin/backplane \
&& rm backplane-stable-linux-amd64.tgz \
&& apk del wget ]
copy "./entrypoint.sh", "/usr/sbin/entrypoint.sh"
entrypoint "/usr/sbin/entrypoint.sh"
flatten
tag "xena/alpine"