2021-06-03 07:43:44 +00:00
|
|
|
FROM alpine:latest
|
|
|
|
|
2021-06-03 19:52:51 +00:00
|
|
|
RUN apk add --upgrade --no-cache \
|
2021-06-03 07:54:32 +00:00
|
|
|
bash \
|
|
|
|
curl \
|
|
|
|
git \
|
2021-06-03 19:52:51 +00:00
|
|
|
grep \
|
2021-06-03 07:54:32 +00:00
|
|
|
jq \
|
2021-06-05 06:03:42 +00:00
|
|
|
openssh-client \
|
2021-06-03 07:54:32 +00:00
|
|
|
py3-requests \
|
|
|
|
skopeo \
|
2021-06-03 07:58:28 +00:00
|
|
|
util-linux \
|
2021-06-03 07:54:32 +00:00
|
|
|
yq
|
2021-06-03 07:43:44 +00:00
|
|
|
|
|
|
|
RUN mkdir -p ~./local/bin
|
2021-06-03 19:52:51 +00:00
|
|
|
RUN mkdir -p ~/.abra/apps
|
2021-06-05 06:39:13 +00:00
|
|
|
RUN mkdir -p ~/.abra/vendor
|
|
|
|
RUN mkdir -p ~/.ssh/
|
|
|
|
|
|
|
|
RUN ssh-keyscan -p 2222 git.autonomic.zone > ~/.ssh/known_hosts
|
|
|
|
|
|
|
|
RUN ln -srf /usr/bin/jq ~/.abra/vendor
|
|
|
|
RUN ln -srf /usr/bin/yq ~/.abra/vendor
|
2021-06-03 19:52:51 +00:00
|
|
|
|
2021-06-03 19:04:58 +00:00
|
|
|
# Note(decentral1se): it is fine to always use the development branch because
|
|
|
|
# our Drone CI docker auto-tagger will publish official release tags and
|
|
|
|
# otherwise give us the latest abra on the latest tag
|
|
|
|
RUN curl https://install.abra.coopcloud.tech | bash -s -- --dev
|
2021-06-03 07:43:44 +00:00
|
|
|
|
2021-06-05 06:05:40 +00:00
|
|
|
COPY bin/abralib.py /root/.local/bin/abralib.py
|
|
|
|
COPY bin/app-json.py /root/.local/bin/app-json.py
|
|
|
|
|
2021-06-03 07:43:44 +00:00
|
|
|
ENTRYPOINT ["/root/.local/bin/abra"]
|