One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "github.com/masterxavierfox/go-graphql-api/gql" | |
| "github.com/masterxavierfox/go-graphql-api/postgres" | |
| "github.com/masterxavierfox/go-graphql-api/server" | 
| settings: | |
| legacy: | |
| force: false | |
| interval: 0s | |
| schema: | |
| - name: go-graphql-api | |
| path: . | |
| commands: | |
| run: | |
| status: true | 
| CREATE TABLE users ( | |
| id serial PRIMARY KEY, | |
| name VARCHAR (50) NOT NULL, | |
| age INT NOT NULL, | |
| profession VARCHAR (50) NOT NULL, | |
| friendly BOOLEAN NOT NULL | |
| ); | |
| INSERT INTO users VALUES | |
| (1, 'kevin', 35, 'waiter', true), | 
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: my-app | |
| spec: | |
| selector: | |
| matchLabels: | |
| run: my-app | |
| replicas: 2 | |
| template: | 
| NAME := acmecorp/foo | |
| TAG := $$(git log -1 --pretty=%!H(MISSING)) | |
| IMG := ${NAME}:${TAG} | |
| LATEST := ${NAME}:latest | |
| build: | |
| @docker build -t ${IMG} . | |
| @docker tag ${IMG} ${LATEST} | |
| push: | 
This is how to connect to another host with your docker client, without modifying your local Docker installation or when you don't have a local Docker installation.
First be sure to enable the Docker Remote API on the remote host.
This can easily be done with a container.
For HTTP connection use jarkt/docker-remote-api.
For HTTPS connection use whiledo/docker-remote-api-tls.
| #!/usr/bin/env bash | |
| ################################################################################### | |
| # # | |
| # Copyright 2010-2014 Ning, Inc. # | |
| # Copyright 2014-2015 Groupon, Inc. # | |
| # Copyright 2014-2015 The Billing Project, LLC # | |
| # # | |
| # The Billing Project licenses this file to you under the Apache License, # | |
| # version 2.0 (the "License"); you may not use this file except in # | 
| # KB stack | |
| version: '3.2' | |
| volumes: | |
| db: | |
| services: | |
| killbill: | |
| image: killbill/killbill:0.18.15 | |
| ports: | |
| - "8080:8080" | |
| - "12345:12345" | 
| export DOCKER_ORCHESTRATOR='swarm' | |
| export DOCKER_ORCHESTRATOR='kubernetes' |