This file contains hidden or 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 | |
docker-compose exec --user git web bash | |
export USER=git | |
cd /app/gogs | |
./gogs admin create-user --name tmpuser --password tmppassword --admin --email [email protected] |
This file contains hidden or 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 systemctl disable firewalld | |
sudo systemctl stop firewalld | |
sudo yum update -y | |
sudo yum install -y centos-release-openstack-stein | |
sudo yum update -y | |
sudo yum install -y openstack-packstack | |
sudo packstack --allinone |
This file contains hidden or 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 | |
export CB_LATEST_IMAGE=cb-hdp-26-1808062221.img | |
export CB_LATEST_IMAGE_NAME=cb-hdp-26-1808062221.img | |
export OS_USERNAME=admin | |
export OS_AUTH_URL=http://localhost/identity | |
export OS_TENANT_NAME=admin | |
export OS_PROJECT_DOMAIN_ID=default | |
export OS_USER_DOMAIN_ID=default | |
glance image-create --name "$CB_LATEST_IMAGE_NAME" --file "$CB_LATEST_IMAGE" --disk-format qcow2 --container-format bare --progress |
This file contains hidden or 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 | |
#http://mirrors.ubuntu.com/mirrors.txt | |
#sudo sed -i 's%us.archive.ubuntu.com%mirror.ehost.vn%' /etc/apt/sources.list | |
sudo sed -i 's%us.archive.ubuntu.com%mirror.clearsky.vn%' /etc/apt/sources.list |
This file contains hidden or 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 | |
# chmod +x netselect-apt.sh | |
# sudo netselect-apt.sh | |
rm -rf netselect*.deb | |
wget http://ftp.us.debian.org/debian/pool/main/n/netselect/netselect_0.3.ds1-28+b1_amd64.deb | |
sudo dpkg -i netselect_0.3.ds1-28+b1_amd64.deb | |
wget http://ftp.us.debian.org/debian/pool/main/n/netselect/netselect-apt_0.3.ds1-28_all.deb | |
sudo dpkg -i netselect-apt_0.3.ds1-28_all.deb |
This file contains hidden or 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
{ | |
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#", | |
"contentVersion": "0.9.0.0", | |
"parameters": { | |
"clusterName": { | |
"type": "string", | |
"metadata": { | |
"description": "The name of the HDInsight cluster to create." | |
} | |
}, |
This file contains hidden or 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' | |
services: | |
mongo: | |
image: mongo | |
ports: | |
- 27017:27017 | |
volumes: | |
- ./data-db:/data/db |
This file contains hidden or 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.1' | |
services: | |
db: | |
image: postgres:10 | |
restart: always | |
ports: | |
- 5432:5432 | |
volumes: |
This file contains hidden or 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 | |
sudo apt-get install git python-pip make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev curl | |
sudo pip install virtualenvwrapper | |
git clone https://github.com/yyuu/pyenv.git ~/.pyenv | |
git clone https://github.com/yyuu/pyenv-virtualenvwrapper.git ~/.pyenv/plugins/pyenv-virtualenvwrapper | |
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc | |
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc |
This file contains hidden or 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" | |
services: | |
rabbitmq: | |
image: rabbitmq:3 | |
hostname: rabbit | |
postgres: | |
image: postgres:10 | |
restart: always | |
environment: |