Skip to content

Instantly share code, notes, and snippets.

View vdemeester's full-sized avatar
👷‍♂️
Working from home

Vincent Demeester vdemeester

👷‍♂️
Working from home
View GitHub Profile
#!/usr/bin/env bash
wget https://storage.googleapis.com/tekton-releases/latest/release.yaml
sed -e 's%\(.* image: \)\(githu.com\)\(.*\/\)\(test\/\)\(.*\)%\1\2 \3\4test-\5%' release.yaml |
sed -e 's%\(.* image: \)\(gcr.io\)\(.*\/\)\(.*\)@\(.*\)%\1 quay.io/openshift-pipeline/tektoncd-pipeline-\4\:v0\.4\.0%' |
# process these images separately as they're passed as arguments to other containers
sed -e 's%gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/bash@\(.*\)%quay.io/openshift-pipeline/tektoncd-pipeline-bash\:v0\.4\.0%g' |
sed -e 's%gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/creds-init@\(.*\)%quay.io/openshift-pipeline/tektoncd-pipeline-creds-init\:v0\.4\.0%g' |
sed -e 's%gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/entrypoint@\(.*\)%quay.io/openshift-pipeline/tektoncd-pipeline-entrypoint\:v0\.4\.0%g' |
sed -e 's%gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/git-init@\(.*\)%quay.io/openshift-pipeline/tektoncd-pipeline-git-init\:v0\.4\.0%g' |
#!/usr/bin/env bash
set -e
KEEP_FILES="openshift|.gitignore|LICENSE|Makefile|OWNERS|OWNERS_ALIASES"
git filter-branch --prune-empty -f --index-filter "git ls-tree --name-only HEAD . | grep -vE '$KEEP_FILES' | xargs git rm -r --cached --ignore-unmatch FOO" HEAD
status: │···
conditions: │···
- lastTransitionTime: 2019-03-13T10:37:37Z │···
message: 'References a Task default/build-simple that doesn''t exist: couldn''t │···
create redirected Build: failed to add entrypoint to steps of TaskRun build-simple: │···
Failed to fetch remote image gcr.io/vde-knative/git-init-4874978a9786b6625dd8b6ef2a21aa70@sha256:f0d537b26d54fb│···
cc807ede1d535b0eb06cb9a814399fa965cb3081a011dc9455: │···
Failed to get container image info from registry gcr.io/vde-knative/git-init-4874978a9786b6625dd8b6ef2a21aa70@s│···
ha256:f0d537b26d54fbcc807ede1d53
Verifying my Blockstack ID is secured with the address 1BFhR8C95bbgbjLP5Jo5R3ZRXh9nYu7PD3 https://explorer.blockstack.org/address/1BFhR8C95bbgbjLP5Jo5R3ZRXh9nYu7PD3
@vdemeester
vdemeester / default.nix
Created April 13, 2018 15:43
buildkit nix
{ stdenv, lib, buildGoPackage }:
buildGoPackage rec {
name = "buildkit-${version}";
version = "preview";
goPackagePath = "github.com/moby/buildkit";
subPackages = [ "cmd/buildkitd" "cmd/buildctl" ];
buildFlags = [ "-tags seccomp" "-tags cgo" "-tags netgo" "-tags static_build" ];
buildFlagsArray = ''
# Description: Boxstarter Script
# Author: Vincent Demeester <[email protected]>
# Last Updated: 2017-09-11
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
@vdemeester
vdemeester / cloudSettings
Last active December 22, 2017 17:58
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-12-22T17:57:57.359Z","extensionVersion":"v2.8.7"}
FROM docker:latest
RUN apk --no-cache add make
COPY bin/* /bin/
diff --git a/scripts/config/elasticsearch.yml b/scripts/config/elasticsearch.yml
index d2d1dbb..e300eea 100644
--- a/scripts/config/elasticsearch.yml
+++ b/scripts/config/elasticsearch.yml
@@ -8,3 +8,5 @@ cluster.name: elasticsearch
node.name: testmaxime
#network.host: 127.0.0.1
#network.bind_host: 0
+network.bind_host: 0.0.0.0
+network.publish_host: "${PUBLISH_IP}"
func (s *DockerSuite) TestRunCapDropCannotMknod(c *check.C) {
// Not applicable for Windows as there is no concept of --cap-drop or mknod
testRequires(c, DaemonIsLinux)
out, _, err := dockerCmdWithError("run", "--cap-drop=MKNOD", "busybox", "sh", "-c", "mknod /tmp/sda b 8 0 && echo ok")
if err == nil {
c.Fatal(err, out)
}
if actual := strings.Trim(out, "\r\n"); actual == "ok" {
c.Fatalf("expected output not ok received %s", actual)