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
2020/05/17 06:20:22 ### WILL SKIP THE FOLLOWING TAGS: [SupportedVersions ovf:License] | |
2020/05/17 06:20:22 -------------------------------------------------------------------------------- | |
2020/05/17 06:20:22 Request caller: govcd.(*Client).validateAPIVersion-->govcd.(*Client).vcdFetchSupportedVersions-->govcd.executeRequestWithApiVersion-->govcd.(*Client).executeRequest-->govcd.(*Client).NewRequestWithApiVersion-->govcd.(*Client).NewRequestWithApiVersion | |
2020/05/17 06:20:22 GET https://iaas.xxxxxx.net/api/versions | |
2020/05/17 06:20:22 -------------------------------------------------------------------------------- | |
2020/05/17 06:20:22 Req header: | |
2020/05/17 06:20:22 ################################################################################ | |
2020/05/17 06:20:22 Response caller govcd.(*VCDClient).Authenticate-->govcd.(*VCDClient).GetAuthResponse-->govcd.(*VCDClient).vcdloginurl-->govcd.(*Client).validateAPIVersion-->govcd.(*Client).vcdFetchSupportedVersions-->govcd.(*Client).executeRequest-->govcd.decodeBody |
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
curl -L0 https://github.com/moby/moby/blob/master/contrib/check-config.sh > check-config.sh | |
chmod +x check-config.sh | |
./check-config.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
How to Benchmark | |
------------------------ | |
wget -qO- bench.sh | bash | |
bash <(wget --no-check-certificate -O - https://raw.github.com/mgutz/vpsbench/master/vpsbench) |
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
sudo curl -LO https://github.com/docker/compose/releases/download/v2.27.0/docker-compose-linux-x86_64 | |
sudo mv docker-compose-linux-x86_64 docker-compose | |
sudo mv docker-compose /usr/local/bin/ | |
sudo chmod +x /usr/local/bin/docker-compose |
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 | |
images=$(sudo docker images | awk '{print $1":"$2}') | |
registry_server="192.168.31.27:5000" | |
for image in $images | |
do | |
echo "Image: $image" | |
sudo docker tag $image $registry_server/$image | |
sudo docker push $registry_server/$image | |
sudo docker rmi $registry_server/$image |
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
##------------------------------ | |
## Applicable on on Ubuntu 18.04 | |
## Never tested on other OS | |
##------------------------------ | |
#!/bin/bash | |
sudo apt update -y | |
sudo apt upgrade -y | |
sudo apt install software-properties-common -y | |
sudo apt-add-repository --yes --update ppa:ansible/ansible |
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
### Debug a variable | |
- name: Debug VM info | |
debug: | |
msg: "{{info}}" | |
when: info is defined | |
### Check apps installed or not | |
- name: Check if Docker already exists | |
shell: > | |
docker -v |
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 | |
echo Update system | |
apt update -y && apt upgrade -y | |
echo Stop rsyslog | |
service rsyslog stop | |
echo Empty log files | |
find /var/log/ -type f -exec cp /dev/null {} \; | |
echo Remove tmp files | |
rm -rf /tmp/* | |
rm -rf /var/tmp/* |
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
kolla-build -b ubuntu --push --registry 192.168.31.27:5000 --tag ussuri -t binary keystone |
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
Instalasi | |
------------------------ | |
sudo mkdir docker-mosquitto | |
cd docker-mosquitto | |
sudo mkdir mosquitto | |
sudo mkdir mosquitto/config/ | |
sudo mkdir mosquitto/data/ | |
sudo mkdir mosquitto/log/ | |
sudo touch mosquitto/config/mosquitto.conf |
OlderNewer