Use In-House dind Image
continuous-integration/drone/push Build encountered an error Details

init
shnee 3 years ago
parent bbabd63a7b
commit 5327a413c2

@ -5,7 +5,7 @@ name: docker-build
steps: steps:
- name: greeting - name: greeting
image: docker:dind image: docker.shnee.net/shnee/docker:19.03
volumes: volumes:
- name: dockersock - name: dockersock
path: /var/run path: /var/run
@ -14,7 +14,7 @@ steps:
- make push-all - make push-all
- name: gotify - name: gotify
image: fredix/arm64v8-alpine-drone-gotify image: fredix/drone-gotify
settings: settings:
gotifytoken: gotifytoken:
from_secret: gotify-token from_secret: gotify-token
@ -32,7 +32,7 @@ steps:
services: services:
- name: docker - name: docker
image: docker:dind image: docker.shnee.net/shnee/docker:19.03
privileged: true privileged: true
volumes: volumes:
- name: dockersock - name: dockersock

@ -1,15 +1,7 @@
FROM {{ base_image_name }}:{{ version }} FROM {{ base_image_name }}:{{ version }}
# TODO REM add comment. # Install ansible using dnf. We originally were going to have a flag for whether
RUN \ # to use dnf or pip to install ansible however it looks like dnf installs all
dnf install -y nfs-utils && \ # the python libs in the same location that pip would, therefore there doesn't
mkdir -p /var/cache/dnf && \ # seem to be a meaningful difference between the 2 install options.
mount \ RUN dnf install -y ansible
-t nfs \
-o nolock \
192.168.1.204:/pool1/package-caches/dnf \
/var/cache/dnf && \
echo "keepcache=1" >> /etc/dnf/dnf.conf && \
dnf install -y ansible && \
echo yay
# dnf clean all

Loading…
Cancel
Save