Browse Source

Add Dockerfile an CI

main
Sebastian Denz 3 years ago
parent
commit
6bba3e8cce
  1. 26
      .drone.yml
  2. 5
      Dockerfile
  3. 3
      helloworld.sh

26
.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: {}

5
Dockerfile

@ -0,0 +1,5 @@
FROM debian:buster-slim
COPY helloworld.sh /
ENTRYPOINT ["/helloworld.sh"]

3
helloworld.sh

@ -0,0 +1,3 @@
#!/bin/bash
echo "Hello World"
Loading…
Cancel
Save