I hereby claim:
- I am edwintye on github.
- I am edwintye (https://keybase.io/edwintye) on keybase.
- I have a public key ASDTrHgxZvPRMpKM-6ZtRyRbXUbxLNCGiCsVY3xTEEA5iAo
To claim this, I am signing this object:
package main | |
import ( | |
"errors" | |
"github.com/stretchr/testify/require" | |
"net" | |
"testing" | |
"time" | |
) |
package main | |
import ( | |
"context" | |
"github.com/gorilla/mux" | |
"github.com/oklog/run" | |
"log" | |
"net/http" | |
"os" | |
"os/signal" |
FROM ubuntu:20.04 | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN apt-get update -y && \ | |
apt-get install -y curl python3-pip git | |
# Install a YAML Linter | |
ARG yamllint_version=1.26.1 | |
LABEL yamllint_version=$yamllint_version |
package test | |
import ( | |
"crypto/tls" | |
"fmt" | |
"github.com/gruntwork-io/terratest/modules/helm" | |
http_helper "github.com/gruntwork-io/terratest/modules/http-helper" | |
"github.com/gruntwork-io/terratest/modules/k8s" | |
"github.com/gruntwork-io/terratest/modules/random" | |
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" |
package main.resources | |
//The global script scope | |
def ctx = context(scope: scriptScope()) | |
//What things can be on the script scope | |
contributor(ctx) { | |
method(name: 'pipeline', type: 'Object', params: [body: Closure]) | |
property(name: 'params', type: 'org.jenkinsci.plugins.workflow.cps.ParamsVariable') | |
property(name: 'env', type: 'org.jenkinsci.plugins.workflow.cps.EnvActionImpl.Binder') |
type DockerContainerInterface interface { | |
initialize(string, string) error | |
getImage() error | |
startContainer() (string, error) | |
getContainerNetworkInfo() (string, string) | |
stopContainer() error | |
} |
name: Go | |
on: [push] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
redis: [rc, latest, 5.0] |
#!/usr/bin/env bash | |
IMAGE_VERSION=${1:-rc} | |
CONTAINER_ID=$(docker run -p 6379 --rm -d "redis:${IMAGE_VERSION}") | |
PORT=$(docker port "${CONTAINER_ID}" | cut -d ":" -f 2) | |
echo "go test using port ${PORT} from ${IMAGE_VERSION}" | |
REDIS_PORT=$PORT go test -v . |
I hereby claim:
To claim this, I am signing this object: