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
mkdir -p ${HOME}/minio_local/data | |
docker run \ | |
-p 9000:9000 \ | |
-p 9001:9001 \ | |
--user $(id -u):$(id -g) \ | |
--name minio1 \ | |
--network 67cdb819747826166520e17d6b188407106f223e4489c8bffae1a3dfdc80fa48 \ | |
-v ${HOME}/minio_local/data:/data \ | |
quay.io/minio/minio server /data --console-address ":9001" |
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 | |
# read dot env file to hashmap $tmpHash | |
# param $1 - path to dot env file | |
function readDotEnvIntoTmpHash() { | |
local pathToDotEnv=$1 | |
for line in $(egrep -v '^#' $pathToDotEnv | xargs); do | |
IFS="=" read -ra STR_ARRAY <<<"$line" | |
local k=${STR_ARRAY[0]} |
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
root = true | |
[*] | |
end_of_line = lf | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true | |
[*.php] | |
indent_style = space |
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
#Если вы хотите запустить докер как пользователь без полномочий root, вам необходимо добавить его в группу докеров. | |
#Создайте группу докеров, если она не существует | |
sudo groupadd docker | |
#Добавьте своего пользователя в группу докеров. | |
sudo usermod -aG docker $USER | |
#Выполните следующую команду или выйдите из системы и снова войдите в систему и запустите (это не сработает, вам может потребоваться сначала перезагрузить компьютер) | |
#newgrp docker | |
#Проверьте, можно ли запустить докер без рута |
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
#!/usr/bin/env bash | |
function help() { | |
echo "Please, run this script with one argument." | |
echo "Examples:" | |
echo "1) $0 1h" | |
echo "2) $0 30m" | |
echo "3) $0 125s" | |
echo "4) $0 1h <your message>" | |
echo "5) $0 30m <your message>" |