Initial commit
continuous-integration/drone Build is passing Details

This commit is contained in:
Lauri Võsandi 2022-04-04 14:02:48 +03:00
commit f0ecf8fb89
3 changed files with 58 additions and 0 deletions

18
.drone.yml Normal file
View File

@ -0,0 +1,18 @@
kind: pipeline
type: kubernetes
name: build
steps:
- name: docker
image: plugins/docker
settings:
repo: harbor.k-space.ee/${DRONE_REPO}
registry: harbor.k-space.ee
mtu: 1300
storage_driver: vfs
squash: true
experimental: true
username:
from_secret: docker_username
password:
from_secret: docker_password

15
Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM ubuntu:focal
ENV DEBIAN_FRONTEND=noninteractive
ADD custom.sh /tmp/
RUN sed -Eie 's/archive\.ubuntu\.com/ee.archive.ubuntu.com/g' /etc/apt/sources.list \
&& apt-get update \
&& apt-get install --yes --no-install-recommends \
linux-image-generic \
systemd \
systemd-sysv \
fdisk \
grub-efi-amd64 \
ubuntu-desktop \
&& /tmp/custom.sh \
&& apt-get autoremove -y \
&& apt-get clean

25
custom.sh Executable file
View File

@ -0,0 +1,25 @@
# Extra repositories
curl -fsSL https://download.docker.com/linux/ubuntu/gpg \
| sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
# Update package lists
apt-get update
# Docker runtime
apt-get install --yes --no-install-recommends \
docker-ce docker-ce-cli containerd.io
# ESP8266/ESP32 tooling
apt-get install --yes --no-install-recommends \
picocom
pip3 install \
adafruit-ampy \
esptool
# CAD stuff
apt-get install --yes --no-install-recommends \
kicad \
openscad