From 6bba3e8cce65420c1f2f577d7b44ef6550d8f893 Mon Sep 17 00:00:00 2001 From: Sebastian Denz Date: Thu, 10 Jun 2021 23:13:54 +0200 Subject: [PATCH] Add Dockerfile an CI --- .drone.yml | 26 ++++++++++++++++++++++++++ Dockerfile | 5 +++++ helloworld.sh | 3 +++ 3 files changed, 34 insertions(+) create mode 100644 .drone.yml create mode 100644 Dockerfile create mode 100755 helloworld.sh diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..4a263f7 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,26 @@ +--- +kind: pipeline +name: default + +steps: +- name: test + image: docker:dind + volumes: + - name: dockersock + path: /var/run + commands: + - sleep 5 # give docker enough time to start + - docker ps -a + - ls -la + +services: +- name: docker + image: docker:dind + privileged: true + volumes: + - name: dockersock + path: /var/run + +volumes: +- name: dockersock + temp: {} diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..67d0e40 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM debian:buster-slim + +COPY helloworld.sh / + +ENTRYPOINT ["/helloworld.sh"] diff --git a/helloworld.sh b/helloworld.sh new file mode 100755 index 0000000..23bf47c --- /dev/null +++ b/helloworld.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +echo "Hello World"