Skip to content

Instantly share code, notes, and snippets.

View tboerger's full-sized avatar
:shipit:
Getting mad with crazy stuff

Thomas Boerger tboerger

:shipit:
Getting mad with crazy stuff
  • Cloudpunks GmbH
  • Nuremberg, Germany
  • 03:45 (UTC +02:00)
  • X @tboerger
View GitHub Profile
@tboerger
tboerger / .drone.jsonnet
Created October 9, 2019 12:22
Drone JSONNET example
local pipeline() = {
kind: "pipeline",
name: "linux",
platform: {
os: "linux",
arch: "amd64",
},
steps: [
{
name: "test",
@tboerger
tboerger / .drone.star
Created October 9, 2019 12:21
Drone Starlark example
def main(ctx):
return [
pipeline(),
]
def pipeline():
return {
'kind': 'pipeline',
'type': 'docker',
'name': 'linux',
@tboerger
tboerger / .drone.yml
Created October 9, 2019 12:20
Drone YAML example
kind: pipeline
type: docker
name: linux
platform:
arch: amd64
os: linux
steps:
- name: test
@tboerger
tboerger / macOS_Environment.md
Last active September 13, 2019 09:08
macOS Environment

Within this guide I will guide you step by step throu a setup of a local DNS setup to resolve local services as well as services running within Docker. Within this guide I will use Homebrew to install the required services, please follow the official instructions to install it.

We will use .lan as toplevel domain for local name resolution, all our services will be available by this name. To get it working on nearly all environments I will also attach a private IP to our loopback network interface where I have choosen 10.254.254.254, this is required to get the host and the Docker services resolving the same names.

diff --git a/vendor/github.com/drone/drone-yaml/yaml/converter/legacy/internal/config.go b/vendor/github.com/drone/drone-yaml/yaml/converter/legacy/internal/config.go
index 14a9070..84e1f0a 100644
--- a/vendor/github.com/drone/drone-yaml/yaml/converter/legacy/internal/config.go
+++ b/vendor/github.com/drone/drone-yaml/yaml/converter/legacy/internal/config.go
@@ -91,6 +91,60 @@ func Convert(d []byte) ([]byte, error) {
current := pipeline
current.Name = fmt.Sprintf("matrix-%d", index+1)
+ services := make([]*droneyaml.Container, 0)
+ for _, service := range current.Services {
---
kind: pipeline
name: matrix-1
platform:
os: linux
arch: amd64
clone:
disable: true
---
kind: pipeline
name: matrix-1
platform:
os: linux
arch: amd64
workspace:
base: /var/www/owncloud
@tboerger
tboerger / hook.sh
Created March 13, 2019 12:10
Dehydrated hook script for Cloudflare and Vault integration
#!/usr/bin/env bash
set -eo pipefail
function vault_upload {
local DOMAIN="${1}"
local KEYFILE="${2}"
local CERTFILE="${3}"
local FULLCHAINFILE="${4}"
local CHAINFILE="${5}"
@tboerger
tboerger / docker-compose.yml
Last active April 1, 2020 22:54
Prometheus Scaleway SD documentation
version: '2'
volumes:
prometheus:
services:
prometheus:
image: prom/prometheus:v2.6.0
restart: always
ports:
@tboerger
tboerger / docker-compose.yml
Last active January 10, 2019 11:02
Prometheus Hetzner SD documentation
version: '2'
volumes:
prometheus:
services:
prometheus:
image: prom/prometheus:v2.6.0
restart: always
ports: