From a8719d79bfc0c111ee3b79081ff56b3a2a0dd30a Mon Sep 17 00:00:00 2001
From: Griefed <griefed@griefed.de>
Date: Tue, 20 Oct 2020 21:18:29 +0200
Subject: [PATCH] Further expand template

---
 .github/ISSUE_TEMPLATE.md        | 70 ++++++++++++++++++++++++++++++++
 .github/PULL_REQUEST_TEMPLATE.md | 22 ++++++++++
 root/defaults/sample.conf        |  1 +
 root/etc/cont-init.d/30-sample   |  2 +
 root/etc/services.d/run          |  3 ++
 5 files changed, 98 insertions(+)
 create mode 100644 .github/ISSUE_TEMPLATE.md
 create mode 100644 .github/PULL_REQUEST_TEMPLATE.md
 create mode 100644 root/defaults/sample.conf
 create mode 100644 root/etc/cont-init.d/30-sample
 create mode 100644 root/etc/services.d/run

diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md
new file mode 100644
index 0000000..3305f8e
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE.md
@@ -0,0 +1,70 @@
+* **I'm submitting a ...**
+  - [ ] bug report
+  - [ ] feature request
+  - [ ] support request => Please do not submit support request here, see note at the top of this template.
+
+
+* **Do you want to request a *feature* or report a *bug*?**
+
+
+
+* **What is the current behavior?**
+
+
+
+* **If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem**
+
+
+
+* **What is the expected behavior?**
+
+
+
+* **What is the motivation / use case for changing the behavior?**
+
+
+
+* **Please tell us about your environment:**
+
+  - Docker Image: griefed/image:tag e.g. griefed/d-zone:proxy
+	- docker & docker-compose Version: Use `docker version && docker-compose version`
+
+	```
+	Client: Docker Engine - Community
+ Version:           19.03.13
+ API version:       1.40
+ Go version:        go1.13.15
+ Git commit:        4484c46d9d
+ Built:             Wed Sep 16 17:02:52 2020
+ OS/Arch:           linux/amd64
+ Experimental:      false
+
+Server: Docker Engine - Community
+ Engine:
+  Version:          19.03.13
+  API version:      1.40 (minimum version 1.12)
+  Go version:       go1.13.15
+  Git commit:       4484c46d9d
+  Built:            Wed Sep 16 17:01:20 2020
+  OS/Arch:          linux/amd64
+  Experimental:     false
+ containerd:
+  Version:          1.3.7
+  GitCommit:        8fba4e9a7d01810a393d5d25a3621dc101981175
+ runc:
+  Version:          1.0.0-rc10
+  GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
+ docker-init:
+  Version:          0.18.0
+  GitCommit:        fec3683
+docker-compose version 1.25.0, build unknown
+docker-py version: 4.1.0
+CPython version: 3.8.5
+OpenSSL version: OpenSSL 1.1.1f  31 Mar 2020
+```
+
+  - Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
+  -
+
+
+* **Other information** (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
new file mode 100644
index 0000000..7f4f82a
--- /dev/null
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -0,0 +1,22 @@
+* **Please check if the PR fulfills these requirements**
+- [ ] Tests for the changes have been added (for bug fixes / features)
+- [ ] Docs have been added / updated (for bug fixes / features)
+
+
+* **What kind of change does this PR introduce?** (Bug fix, feature, docs update, ...)
+
+
+
+* **What is the current behavior?** (You can also link to an open issue here)
+
+
+
+* **What is the new behavior (if this is a feature change)?**
+
+
+
+* **Does this PR introduce a breaking change?** (What changes might users need to make in their application due to this PR?)
+
+
+
+* **Other information**:
diff --git a/root/defaults/sample.conf b/root/defaults/sample.conf
new file mode 100644
index 0000000..639bc6d
--- /dev/null
+++ b/root/defaults/sample.conf
@@ -0,0 +1 @@
+placeholder config file, delete in final container
diff --git a/root/etc/cont-init.d/30-sample b/root/etc/cont-init.d/30-sample
new file mode 100644
index 0000000..a7abbf1
--- /dev/null
+++ b/root/etc/cont-init.d/30-sample
@@ -0,0 +1,2 @@
+#!/usr/bin/with-contenv bash
+### above is proper shebang for image using s6
diff --git a/root/etc/services.d/run b/root/etc/services.d/run
new file mode 100644
index 0000000..e7ea7cf
--- /dev/null
+++ b/root/etc/services.d/run
@@ -0,0 +1,3 @@
+#!/usr/bin/with-contenv bash
+exec \
+	s6-setuidgid abc /command/to/execute
-- 
GitLab