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-05 06:03:42 +00:00
|
|
|
openssh-client \
|
2021-06-03 07:54:32 +00:00
|
|
|
py3-requests \
|
|
|
|
skopeo \
|
2021-06-05 06:51:10 +00:00
|
|
|
util-linux
|
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
|
|
|
|
|
2021-06-05 06:51:10 +00:00
|
|
|
RUN curl -L https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 --output ~/.abra/vendor/jq
|
|
|
|
RUN chmod +x ~/.abra/vendor/jq
|
|
|
|
|
|
|
|
RUN curl -L https://github.com/mikefarah/yq/releases/download/v4.9.3/yq_linux_amd64 --output ~/.abra/vendor/yq
|
|
|
|
RUN chmod +x ~/.abra/vendor/yq
|
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"]
|