refactor xena/alpine

This commit is contained in:
Cadey Ratio 2017-02-22 11:59:00 -08:00
parent b5b1115c12
commit 35f519d7d2
2 changed files with 10 additions and 6 deletions

8
base/alpine/bin/xeservca Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
echo "adding Xeserv CA"
apk add wget
wget https://xena.greedo.xeserv.us/files/ca.pem -O /usr/local/share/ca-certificates/xeserv_ca.pem
update-ca-certificates
apk del wget

View File

@ -2,6 +2,7 @@ from "alpine:edge"
copy "repositories", "/etc/apk/repositories"
copy "runit/", "/etc/system"
copy "bin/", "/bin"
run "apk upgrade --no-cache"
run "apk add --no-cache --virtual xe-alpine-base tini ca-certificates runit libc6-compat"
@ -17,15 +18,10 @@ run %q[ apk add -U --no-cache wget ca-certificates \
&& rm backplane-stable-linux-amd64.tgz \
&& apk del wget ]
# Add glue and vardene
# Add glue
run %q[ apk add -U --no-cache wget \
&& cd /usr/bin && wget https://xena.greedo.xeserv.us/files/glue \
&& chmod a+x /usr/bin/glue \
&& wget https://xena.greedo.xeserv.us/files/vardene \
&& chmod a+x /usr/bin/vardene \
&& cd /usr/local/share/ca-certificates \
&& wget https://xena.greedo.xeserv.us/files/ca.pem -O xeserv_ca.pem \
&& update-ca-certificates \
&& apk del wget ]
copy "./entrypoint.sh", "/usr/sbin/entrypoint.sh"