curl -sL https://get.rke2.io | sh
systemctl daemon-reload
systemctl start rke2-server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
terraform { | |
required_providers { | |
keycloak = { | |
source = "mrparkers/keycloak" | |
} | |
} | |
} | |
provider "keycloak" { | |
client_id = "admin-cli" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. /complete-alias/complete_alias | |
source <(kubectl completion bash) | |
source <(helm completion bash) | |
source "/kube-ps1/kube-ps1.sh" | |
export KUBE_PS1_SYMBOL_ENABLE=false | |
export PS1='$(kube_ps1)'$PS1 | |
# kubectl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.7" | |
services: | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch:7.6.2 | |
environment: | |
discovery.type: single-node | |
ports: | |
- 9200:9200 | |
kibana: | |
image: docker.elastic.co/kibana/kibana:7.6.2 |
I hereby claim:
- I am ondrejsika on github.
- I am ondrejsika (https://keybase.io/ondrejsika) on keybase.
- I have a public key whose fingerprint is B000 780A 20CF 1013 F7A5 9081 775D 8A02 0903 EF6B
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
exportPathMap: async function(defaultPathMap) { | |
return { | |
'/': { page: '/' }, | |
'/about-me': { page: '/about-me' }, | |
}; | |
} | |
}; | |
const withPages = require('@primer/next-pages/plugin') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ansible playbook to setup HTTPS using Let's encrypt on nginx. | |
The Ansible playbook installs everything needed to serve static files from a nginx server over HTTPS. | |
The server pass A rating on [SSL Labs](https://www.ssllabs.com/). | |
To use: | |
1. Install [Ansible](https://www.ansible.com/) | |
2. Setup an Ubuntu 16.04 server accessible over ssh | |
3. Create `/etc/ansible/hosts` according to template below and change example.com to your domain | |
4. Copy the rest of the files to an empty directory (`playbook.yml` in the root of that folder and the rest in the `templates` subfolder) |
Adapted from traefik systemd Service Unit
The provided file should work with systemd version 219 or later. It might work with earlier versions.
The easiest way to check your systemd version is to run systemctl --version
.
We will assume the following:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: ondrejsika/ci | |
variables: | |
COMPOSE_PROJECT_NAME: p$CI_PIPELINE_ID | |
COMPOSE_FILE: docker-compose.yml:docker-compose-test.yml | |
stages: | |
- build | |
- test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Unable to find image 'hello-world:latest' locally | |
latest: Pulling from library/hello-world | |
1b930d010525: Pull complete | |
Digest: sha256:2557e3c07ed1e38f26e389462d03ed943586f744621577a99efb77324b0fe535 | |
Status: Downloaded newer image for hello-world:latest | |
Hello from Docker! | |
This message shows that your installation appears to be working correctly. | |
To generate this message, Docker took the following steps: |
NewerOlder