Skip to content

Instantly share code, notes, and snippets.

View n1c0l4stournier's full-sized avatar
🏢
At Work

Nicolas Tournier n1c0l4stournier

🏢
At Work
View GitHub Profile
docker run \
-v ~/.docker/config.json:/kaniko/.docker/config.json \
gcr.io/kaniko-project/executor:debug \
--dockerfile=${PATH_TO}/Dockerfile \
--context=${PATH_TO} \
--insecure-pull \
--insecure \
--destination=${URL_REGISTRY}/${IMAGE_NAME}:${IMAGE_TAG}
@n1c0l4stournier
n1c0l4stournier / getGitlabRunnetToken
Last active March 15, 2021 09:01
Get Gitlab runner registration token
docker exec -it ${CONTAINER_ID} bash -c 'gitlab-rails runner -e production "puts Gitlab::CurrentSettings.current_application_settings.runners_registration_token"'
@n1c0l4stournier
n1c0l4stournier / test.yaml
Created June 13, 2019 13:10
Google Container Structure Tests
schemaVersion: "2.0.0"
commandTests:
- name: "Check centos version"
command: "sh"
args: ["-c", "cat /etc/centos-release;"]
expectedOutput: ["7.5.1804"]
- name: "Check java version"
command: "sh"
@n1c0l4stournier
n1c0l4stournier / jenkins_plugins.groovy
Last active October 22, 2018 12:37
Get Jenkins Plugin List in Jenkins Console - http://JENKINS_URL/script
Jenkins.instance.pluginManager.plugins.each{
plugin ->
println ("${plugin.getShortName()}:${plugin.getVersion()}")
}