Created from scratch with Docker, PHP8 and Symfony.
Created from scratch with Docker 20, PHP8.1 and Symfony6.2.6.
A - Create your ssh key pair follow the instruction and default option, I STRONGLY ADVISE TO PUT A PASSWORD but it is optional:
ssh-keygen -t ed25519 -C "docauposte2 github"
From a command prompt on a linux desktop environment :
If xclip can be installed :
xclip -sel clip < ~/.ssh/id_ed25519.pub
Otherwise use cat :
cat ~/.ssh/id_ed25519.pub
From a remote connection to a server from a windows computer for example, print it and then copy it with your mouse or CTRL+C or CTRL+SHIFT+C :
cat ~/.ssh/id_ed25519.pub
-
Go to your account settings
-
In the access area of the summary select SSH and GPG keys
-
Click on the button up right "New SSH key"
-
Paste the key in the "key" input
-
Be nice and give it a name
-
Select the type of key it is, most of the time it will be an Authentication Key
-
Once everything is done click on "Add SSH key"
1 - Download the installation script :
wget https://github.com/polangres/DocAuPoste2/releases/download/v1.1/install-docauposte2.sh
If wget or curl are not available you can use cat as described in the wiki : https://github.com/polangres/DocAuPoste2/wiki/3-%E2%80%90-Deployment
2 - Render the script executable :
sudo chmod +x install-docauposte2.sh
3 - Run the script :
bash install-docauposte2.sh
sudo yum install git
sudo subscription-manager repo-override --repo=PlasticOmnium_Docker_Docker_CE_Stable --add=enabled:1
sudo yum update
sudo yum remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-engine \
podman \
runc
sudo yum install docker-ce docker-ce-cli containerd.io docker-compose-plugin -y
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
sudo systemctl start docker
sudo systemctl start containerd.service
sudo systemctl enable docker.service
sudo systemctl enable containerd.service
git clone -b develop [email protected]:kiloutyg/docauposte2
cd docauposte2
sudo chmod +x env_create.sh
./env_create.sh
3 - If Docker and Docker compose are installed already, just run (with or without sudo depending of Docker config):
docker compose up --build -d
4 - Once the app launched and IF AN ERROR ABOUT SQL appears when connecting to the app in your web browser : Then prepare Doctrine migration and then migrate :
A - Stop the docker compose stack : docker compose stop or CTRL+C
B - Re-run the building command :
docker compose up --build -d
C - Enter the app container and use the bash command prompt :
docker compose exec -ti web bash
D - Run the command to build the database :
php bin/console make:migration
php bin/console doctrine:migrations:migrate
E - Exit the container :
exit