-
Notifications
You must be signed in to change notification settings - Fork 2
/
defaults.jinja
32 lines (29 loc) · 969 Bytes
/
defaults.jinja
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{% load_yaml as defaults %}
build:
name: octopi-builder
image: localhost/octopi/builder
tag: latest
type: script
build:
source: .
files:
build/Dockerfile:
contents: |
FROM Debian
RUN apt-get install gawk util-linux qemu-user-static git p7zip-full python3
RUN git clone https://github.com/guysoft/CustomPiOS.git; \
git clone https://github.com/guysoft/OctoPi.git; \
cd OctoPi/src/image; \
wget -c --trust-server-names 'https://downloads.raspberrypi.org/raspios_lite_armhf_latest'; \
cd ..; \
../../CustomPiOS/src/update-custompios-paths
environment: {}
storage:
- name: ${SERVICE_NAME}_data
volumes:
- ${SERVICE_NAME}_data:/output
{% endload %}
# sudo modprobe loop
# EXEC bash -x ./build_dist
{% set settings=salt['grains.filter_by']({'default': defaults},
grain='default', default= 'default', merge= salt['pillar.get']('octopi', {})) %}