Skip to content

Instantly share code, notes, and snippets.

View obcode's full-sized avatar

Oliver Braun obcode

  • Munich University of Applied Sciences
  • Germany
View GitHub Profile
# ./.tmuxinator.yml
name: client1
root: ./
windows:
- servers:
layout: main-vertical
panes:
- etcd
@obcode
obcode / docker-compose.yml
Created May 16, 2020 09:15
Docker-Compose für Drone
version: "3"
services:
nginx:
build:
context: .
dockerfile: nginx.dockerfile
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- /home/obraun/certs:/etc/nginx/certs:ro
ports:
@obcode
obcode / docker-compose.yaml
Last active May 14, 2020 09:41
Beispiel Docker-Compose für VSS Blatt 1
version: "3"
services:
customerservice:
image: docker.pkg.github.com/vesose/solutionb1/customerservice:latest
command: --bind=customerservice:9010
bookservice:
image: docker.pkg.github.com/vesose/solutionb1/bookservice:latest
command: --bind=bookservice:9020
libraryservice:
image: docker.pkg.github.com/vesose/solutionb1/libraryservice:latest
@obcode
obcode / main.go
Created April 10, 2020 18:28
Main für Customer-Service customer/service/main.go
func main() {
var wg sync.WaitGroup
wg.Add(1)
defer wg.Wait()
flagBind := flag.String("bind", ":9010", "Bind service to address")
flag.Parse()
context := actor.EmptyRootContext
package moviestore
import "testing"
func newMoviestoreImpl() *moviestoreImpl {
ms := new(moviestoreImpl)
ms.available = make(map[Serial]Movie)
ms.users = make(map[UserID]User)
ms.rented = make(map[UserID][]Movie)
version: "3"
services:
jenkins:
# image: jenkins/jenkins:lts
build:
context: .
dockerfile: jenkins.dockerfile
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /home/jenkins:/var/jenkins_home
# Use new container infrastructure to enable caching
sudo: false
# Do not choose a language; we provide our own build tools.
language: generic
# Caching so the next build will be fast too.
cache:
directories:
- $HOME/.stack
@obcode
obcode / query.go
Created May 8, 2018 12:04
GraphQL Query Golang
package main
import (
"fmt"
"net/http"
"bytes"
"io/ioutil"
)
func main() {
pipeline {
agent any
stages {
stage('Build') {
steps {
sh 'sh gradlew clean'
sh 'sh gradlew compileJava'
}
}
stage('Checkstyle') {
_ _ _ _ __ __ _ _ _
| | | | ___| | | ___ \ \ / /__ _ __| | __| | |
| |_| |/ _ \ | |/ _ \ \ \ /\ / / _ \| '__| |/ _` | |
| _ | __/ | | (_) | \ V V / (_) | | | | (_| |_|
|_| |_|\___|_|_|\___( ) \_/\_/ \___/|_| |_|\__,_(_)
|/