diff --git a/base/alpine/Dockerfile b/base/alpine/Dockerfile deleted file mode 100644 index ab4d301..0000000 --- a/base/alpine/Dockerfile +++ /dev/null @@ -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 diff --git a/base/alpine/box.rb b/base/alpine/box.rb new file mode 100644 index 0000000..3ab3c4b --- /dev/null +++ b/base/alpine/box.rb @@ -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"