----------------A-------------------------------------------------------------------------------------------- https://docs.docker.com/engine/install/ubuntu/ 1)S'assurer que docker n'est pas installé - sudo apt-get remove docker docker-engine docker.io containerd runc 2)Installer unbuntu avec: - sudo apt-get update - sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg \ lsb-release 3)Ajouter la clé officielle de Docker: - curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg 4)Ajouter à la liste des repositories(apt get), docker: echo \ "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null 5) Installer docker - sudo apt-get update (pour recuperer le role administrateur) - sudo apt-get install docker-ce docker-ce-cli containerd.io (pour installer docker) POUR ACCEDER AU REPERTOIRE WSL,SAISIR COMMANDE SUIVANTE : explorer.exe . --------------B--------------------------------------------------------------------------------------------- https://docs.docker.com/engine/install/linux-postinstall/ 1) Ajouter docker group - sudo groupadd docker 2) Add your user to the docker group. - sudo usermod -aG docker $USER 3) Log out and log back in so that your group membership is re-evaluated. ---------------C-------------------------------------------------------------- 1) voir si docker marche : -service docker status 2) Lancer docker -sudo service docker start * Ajouter password --------------------D------------------------------------------------ https://docs.docker.com/compose/install/ 1) Installer docker composer - sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose 2) Apply executable permissions to the binary: -sudo chmod +x /usr/local/bin/docker-compose ----------E------------------------------------------------------------ Installation of compose: - Unzip docker-compose (same level with residorg-web) - cd /mnt/c/work/docker-compose/residorg-docker-compose - vi docker-compose.override.yml (set the path to where is restyling) - sudo docker-compose up -d vi docker-compose.override.yml -------------F-------------- lancer les images : 1) service docker status 2) sudo service docker start 3) cd /mnt/c/users/work/residorg-compose 4) sudo docker-compose up -d --------------------------------------------------------- Pour voir les satus des containers sudo docker ps docker cp C.\Users\Oumar\Desktop\startup.sh e9923d2854cc:/usr/local/bin/startup.sh docker cp /mnt/c/Users/Oumar/Desktop/startup.sh e9923d2854cc:/usr/local/bin/startup.sh ----------------------------------------------------------------------------------------------- copiy from windows to unbuntu c:\pscp "C:\Users\Oumar\Desktop\startup.sh" oumar@172.18.0.1:startup.sh -----------------------When scratching------------------------------------------ git clone git@bitbucket.org:comelit/residorg-compose.git cd residorg-compose cat docker-registry-viewer-keyfile.json | docker login -u _json_key --password-stdin https://gcr.io cat README.md and edit the file with the path sudo docker stop residorg-2020 sudo docker stop residorg-mysql sudo docker rm residorg-2020 sudo docker rm residorg-mysql sudo docker-compose up -d -----------------------------Git pull error----------- when error= Your local changes to the following files would be overwritten by merge use this git checkout HEAD path/to/the file exple : git checkout HEAD encoder/dist/encoder.js ----------------------wsl version---------------------------------------- open windows cmd and tape following code wsl --list --verbose ---------------------------command to check if the commits referred by the submodule is the last commit on master of the original repo--------------------------------------------- git submodule status" ------------------------------------------------------------------------------------------------- docker run --name=residorg-mysql -d residorg-mysql:0.1 docker inspect residorg-mysql docker logs -f residorg-mysql docker run --name=docker-residorg-2020-web -d docker-residorg-2020-web:0.1 docker inspect docker-residorg-2020-web docker logs -f docker-residorg-2020-web /***********************************OPENCLASSROOM****************************************/ -Lancer une image : docker run nom_de_limage -Lancer une image détachée: docker run -d nom_de_limage -Lancer une image détachée sur un port: docker run -d -p 8080:80 nom_de_limage -Trouver les images : docker images -a //-a est optionnel -Trouver les conteneurs : docker ps -a //-a est optionnel -Acceder au conteneur lancé : docker exec -ti ID_RETOURNÉ_LORS_DU_DOCKER_RUN bash -Nettoyer le systeme : docker system prune -On peut créer une image à partir de Dockerfile (équivalent d'un fichier package.json en Node.js, ou composer.json en PHP. ) /*************************************GENERATE SWAGGER****************************************/ add support for the swagger generation; I tried to generate the swagger but I can’t see the new API. I think that something is missing in residorg-php-restyling/comelit/residorg/openapi/generate-openapi-web-components.php file. That file contains all the files having some @OA tag in comments and it’s used to generate the swagger document. About this point, the command to generate the swagger is: while Residorg is running in your local environment, open a new terminal execute docker exec -it residorg-2020 bash execute cd comelit/residorg execute composer run-script openapi:web-components:json in residorg-php-restyling module, go to comelit/residorg/openapi and you can find the openapi-web-components.json file check that file using https://editor.swagger.io/ /***************************RESIDORG AUTOLOAD ERROR ************************************* when api scratch with vendor auload : go to comelit/residorg and excecute following commands on wsl docker run -w /host --rm --volume="$PWD:/host" composer:2.6.5 composer install --ignore-platform-reqs docker run -w /host --rm --volume="$PWD:/host" composer:2.6.5 composer dump-autoload