Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# OKD 3.x Cluster Health Check Script
# ===================================
#
# This script is designed to perform a comprehensive health check on an OKD 3.x cluster.
# It covers various aspects of the cluster including nodes, pods, services, and resources.
#
# Compatibility:
# - Generally suitable for OKD version 3.x
version: "2"
services:
sonarqube:
image: sonarqube
ports:
- "9000:9000"
networks:
- sonarnet
environment:
@pamtrak06
pamtrak06 / CNTLM Proxy - Centos
Last active June 17, 2020 20:42 — forked from lpf23/CNTLM Proxy - Centos
Configure CNTLM Proxy on Centos/Ubuntu
1) Download cntlm rpm package from http://sourceforge.net/projects/cntlm/files/cntlm/
2) Login as root
3) Run command:
$ rpm -ivh cntlm-*.rpm
4a) Obtain password hash for the configuration file in step 4b (do not put plaintext password in configuration)
$ cntlm -H -d <domain> -u <username>
####################################################################
## Copyright(c) 1999, 2009 Oracle. All rights reserved. ##
## ##
## Specify values for the variables listed below to customize ##
## your installation. ##
## ##
## Each variable is associated with a comment. The comment ##
## identifies the variable type. ##
## ##
## Please specify the values in the following format: ##
version: '3.3'
services:
app:
image: swarmpit/swarmpit:latest
environment:
- SWARMPIT_DB=http://db:5984
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
#!/bin/bash
subnet=10.193.0.0/24
iprange=10.193.0.0/16
echo -e "#!/bin/bash\n#set -e\n" > network-cleaning.sh
echo -e "#!/bin/bash\n#set -e\n" > network-recreation.sh
echo -e "#!/bin/bash\n#set -e\n" > network-links.sh
@pamtrak06
pamtrak06 / Dockerfile
Created December 18, 2019 06:29 — forked from yogeek/Dockerfile
Gosu usage in Docker
FROM ubuntu
RUN apt-get install ...
# grab gosu for easy step-down from root
ENV GOSU_VERSION 1.10
RUN set -x \
&& curl -sSLo /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" \
&& curl -sSLo /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" \
&& export GNUPGHOME="$(mktemp -d)" \
Prerequisities:
- install git
- install go
- install docker-systemd :
- https://github.com/agend07/systemd-docker
=> issue json: cannot unmarshal object into Go value of type string
=> https://github.com/ibuildthecloud/systemd-docker/issues/50
- got get github.com/agend07/systemd-docker
- mv ~/go/bin/systemd-docker /usr/local/bin/
[Docker sans démon: podman](https://podman.io/)
[docker compose vs podman](https://github.com/containers/podman-compose)
[RUNNING CONTAINERS AS SYSTEMD SERVICES WITH PODMAN](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux_atomic_host/7/html/managing_containers/running_containers_as_systemd_services_with_podman)
[Docker compose as a systemd unit](https://gist.github.com/mosquito/b23e1c1e5723a7fd9e6568e5cf91180f)
[wiki: systemd](https://fr.wikipedia.org/wiki/Systemd)
[freedesktop: systemd](https://www.freedesktop.org/wiki/Software/systemd/)
[systemd.unit — Unit configuration](https://www.freedesktop.org/software/systemd/man/systemd.unit.html)
[Lea Linux: systemd](https://lea-linux.org/documentations/systemd)
[Understanding Systemd Units and Unit Files](https://www.digitalocean.com/community/tutorials/understanding-systemd-units-and-unit-files)
[Créer un nouveau service avec systemd](https://doc.ubuntu-fr.org/creer_un_service_avec_systemd)
[RHEL: MANAGING SYSTEM SERVICES](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/sect-managing_services_with_systemd-services)