vi /etc/environment
add these lines...
LANG=en_US.utf-8
LC_ALL=en_US.utf-8
Alternatively,
#!/bin/bash | |
IP_ADDR=$(ip addr |grep 172.16.252 |head -n1 |awk '{ print $2 }' |cut -d"/" -f1) | |
echo "${IP_ADDR} $HOSTNAME" >> /etc/hosts | |
# Install Docker latest. yum-utils package is required (which provides the yum-config-manager | |
# utility) in order to set up the docker stable repository. After install, we need to define | |
# docker network as insecure registry to prevent failure during cluster creation. | |
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo |
vi /etc/environment
add these lines...
LANG=en_US.utf-8
LC_ALL=en_US.utf-8
Alternatively,
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root -pPASSWORD DATABASE > backup.sql | |
docker exec CONTAINER /usr/bin/mysqldump -u root -pPASSWORD DATABASE | gzip > backup.sql.gz | |
docker exec CONTAINER /usr/bin/mysqldump -u root -pPASSWORD DATABASE | bzip2 > backup.sql.bz2 | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root -pPASSWORD DATABASE | |
gunzip < backup.sql.gz | docker exec -i CONTAINER /usr/bin/mysql -u root -pPASSWORD DATABASE | |
bunzip2 < backup.sql.bz2 | docker exec -i CONTAINER /usr/bin/mysql -u root -pPASSWORD DATABASE |
Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.
You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.
[user] | |
# | |
# Fonte: https://github.com/brauliobo/gitconfig/blob/master/configs/.gitconfig | |
# | |
# not good to force this globally, you should use the right name/email in each context | |
#email = brauliobo@gmail.com | |
#name = Braulio Bhavamitra | |
#email = braulio@eita.org.br | |
#name = Braulio Oliveira | |
#email = brauliooliveira@olery.com |
# | |
# Author: Fabiano Santos Florentino | |
# Version: 0.0.1 | |
# | |
FROM alpine | |
RUN apk update \ | |
&& apk add --no-cache apache2 \ | |
&& adduser apache apache \ | |
&& mkdir -p /var/lock/apache2 /var/run/apache2 /var/log/apache2 \ |