Initial commit
continuous-integration/drone Build is passing Details

This commit is contained in:
Lauri Võsandi 2022-04-22 01:15:48 +03:00
commit 5164abb6cf
5 changed files with 35 additions and 0 deletions

2
.drone.yml Normal file
View File

@ -0,0 +1,2 @@
kind: template
load: docker.yaml

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.save

16
Dockerfile Normal file
View File

@ -0,0 +1,16 @@
FROM python:alpine
RUN apk add git bash openssh curl
RUN pip install pymongo
ADD ssh_config /etc/ssh/
# Inject public SSH key of git.k-space.ee
RUN bash -c "ssh-keyscan -t ecdsa git.k-space.ee >> /etc/ssh/ssh_known_hosts"
# For git commits use user `minion`, note that this is distinct from user
# used for SSH authentication, including one going towards git.k-space.ee
RUN git config --global user.email "minion@k-space.ee"
RUN git config --global user.name "Minion"
LABEL name="k-space/microscript-base" \
version="rc" \
maintainer="Lauri Võsandi <lauri@k-space.ee>"

12
README.md Normal file
View File

@ -0,0 +1,12 @@
# Introduction
This repository is a skeleton for a microscript container image -- that
is container that get's started either by Kubernetes Job or CronJob and
that does not run forever.
In this particular example MongoDB is included in the setup.
# How to use this repository
Just mount scripts using ConfigMap and run
`harbor.k-space.ee/k-space/microscript-base` directly from Kubernetes

4
ssh_config Normal file
View File

@ -0,0 +1,4 @@
Host *
IdentityFile /config/ssh_identity
UserKnownHostsFile /config/ssh_known_hosts
HostKeyAlgorithms +ssh-rsa # TODO: Remove this after ROS7 upgrades