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
#!/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 |
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: "2" | |
services: | |
sonarqube: | |
image: sonarqube | |
ports: | |
- "9000:9000" | |
networks: | |
- sonarnet | |
environment: |
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
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> |
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
#################################################################### | |
## 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: ## |
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.3' | |
services: | |
app: | |
image: swarmpit/swarmpit:latest | |
environment: | |
- SWARMPIT_DB=http://db:5984 | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock:ro | |
ports: |
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
#!/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 |
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
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)" \ |
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
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/ | |
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
[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) |
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
[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) |
NewerOlder