k9s cheatsheet: https://www.hackingnote.com/en/cheatsheets/k9s/
https://discuss.kubernetes.io/t/kubectl-tips-and-tricks/192
krew as the Kubernetes CLI (kubectl) plugin manager helps to install all the tools: https://krew.sigs.k8s.io/
# Roles which require host/groups to have certain variables set | |
# see (scroll down!) https://molecule.readthedocs.io/en/latest/configuration.html#provisioner & https://github.com/ansible/molecule/issues/1037 | |
# like: | |
provisioner: | |
name: ansible | |
... | |
inventory: | |
host_vars: | |
docker-debian-stretch: | |
gitlab_domain: "localhost" |
# SHORT VERSION, if artifactId and groupId are hard-coded | |
FROM maven:3-jdk-11 | |
# Add sources including pom.xml to Docker build context and use as workdir for later Maven execution | |
ADD . /build | |
WORKDIR /build | |
# Download Maven artifact from Nexus with current version | |
# And do it all inside ONE 'RUN' statement, see https://stackoverflow.com/a/37860420/4964553 | |
# Otherwise you can't define vars like ARTIFACT_VERSION for later steps in following 'RUN' commands! |
k9s cheatsheet: https://www.hackingnote.com/en/cheatsheets/k9s/
https://discuss.kubernetes.io/t/kubectl-tips-and-tricks/192
krew as the Kubernetes CLI (kubectl) plugin manager helps to install all the tools: https://krew.sigs.k8s.io/
# Add the following key to the 'Deploy Keys' section in Settings/Repository of your GitLab repository | |
# Dockerfile: | |
FROM centos:7 | |
ARG SSH_KEY_GITLAB_DEPLOY_KEY | |
RUN \ | |
### ssh configuration, see https://docs.gitlab.com/ee/ci/ssh_keys/#ssh-keys-when-using-the-docker-executor | |
# run ssh-agent inside build environment | |
eval $(ssh-agent -s); \ |
# The central problem right now, is that gitlab-runner exec was deprecated with GitLab 10 - and then undeprecated later, | |
# because of missing alternatives - see https://gitlab.com/gitlab-org/gitlab-runner/issues/2797 | |
# So this guide is somehow only a work documentation on how I tried to use this feature | |
### OPTION 1: Install gitlab-runner directly on your system | |
# See | |
# http://bryce.fisher-fleig.org/blog/faster-ci-debugging-with-gitlabci/index.html | |
# Install GitLab Runner locally |
# on terminal | |
VBoxManage list ostypes |
# Use another Java version as currently active | |
sdk list java | |
================================================================================ | |
Available Java Versions | |
================================================================================ | |
Vendor | Use | Version | Dist | Status | Identifier | |
-------------------------------------------------------------------------------- | |
AdoptOpenJDK | | 15.0.1.j9 | adpt | | 15.0.1.j9-adpt | |
| | 15.0.1.hs | adpt | installed | 15.0.1.hs-adpt | |
| | 14.0.2.j9 | adpt | | 14.0.2.j9-adpt |
--- | |
- hosts: "{{host}}" | |
tasks: | |
- name: Create directory C:\yourPath | |
win_file: path="C:\\yourPath" state=directory | |
- name: Install nssm (non-sucking service manager) with chocolatey | |
win_chocolatey: name=nssm |
mvn build-helper:parse-version versions:set -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.nextIncrementalVersion} versions:commit |