Skip to content

Instantly share code, notes, and snippets.

View antweiss's full-sized avatar

Ant Weiss antweiss

View GitHub Profile
$git clone https://github.com/codefresh-io/otto-example.git
application {
name = "ottofresh"
dependency {
source = "./mongodb"
}
}
application {
name = "mongodb"
type = "docker-external"
}
customization {
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network "forwarded_port", guest: 80, host: 8080
{
"consumer": {
"name": "billy"
},
"provider": {
"name": "bobby"
},
"interactions": [{
"description": "Mytest",
"providerState": "User billy exists",
initContainerStatuses:
- containerID: docker://3feab2c9e5ec5d1db1e133f950dd2849e1bb5bba302923794ff930d5e1a0204a
image: otomato/istio-proxy-init:1.0.3p
imageID: docker-pullable://otomato/istio-proxy-init@sha256:5cdee706b9e327175b201ceb6278885769a8b82cab77b5e5f3246fee93eabdac
lastState:
terminated:
containerID: docker://3feab2c9e5ec5d1db1e133f950dd2849e1bb5bba302923794ff930d5e1a0204a
exitCode: 2
finishedAt: 2018-11-05T08:07:00Z
reason: Error
@antweiss
antweiss / mongo-replicaset-on-k8s-for-tests.yaml
Last active May 1, 2019 09:13
An epehemeral StatefulSet to run a MongoDB replicaset on Kubernetes - use for tests that require a temporary replicaset
# a headless service to make mongo pods available at mongo-0.mongo, mongo-1.mongo, mongo-2.mongo
# to connect to the replicaset use: mongo -server rs0/mongo-0.mongo,mongo-1.mongo,mongo-2.mongo
apiVersion: v1
kind: Service
metadata:
name: mongo
labels:
role: mongo
environment: test
spec:
@antweiss
antweiss / docker-for-mac-shell-into-docker-vm
Created June 20, 2019 10:47
Get cli prompt into the Docker for Mac VM.
screen ~/Library/Containers/com.docker.docker/Data/vms/0/tty
# hit enter
linuxkit-025000000001:~# ls /var/lib/docker
# Copyright 2019 Layer5 Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@antweiss
antweiss / build.gradle
Created August 24, 2020 13:23
generate android javadoc with gradle and publish javadoc site to Nexus OSS
import io.github.httpbuilderng.http.HttpTask
import groovyx.net.http.ApacheEncoders
import static groovyx.net.http.MultipartContent.multipart
import static groovy.io.FileType.FILES
plugins {
id "io.github.http-builder-ng.http-plugin" version "0.1.1"
}
task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.sourceFiles