linux docker przydatne

//START dockera po uruchomieniu linuxa!!!
sudo docker-compose up
haso !!! : rootPASS
docker-compose up --build // build and recreate !!!

//kasowanie compose
sudo docker-compose down
sudo docker system prune -a
sudo docker container ls
sudo docker image ls

composer/php 

sudo docker run --rm --interactive --tty --volume $PWD:/app composer install --ignore-platform-reqs

!!!! dcomposer alias 05.02.2022!!!
echo "alias dcomposer='docker run --rm --interactive --tty --volume $PWD:/app composer'"
echo echo "alias dphp='docker run --rm --interactive --tty --volume $PWD:/app php'"
alias dphp='docker run --rm --interactive --tty --volume $PWD:/app php'

  1. Wejdz do phpa:
    docker exec -it 52b92833eedc /bin/bash
    jak nie ma to lista: sudo docker container ls
  2. Potem wykonuj co chcesz ...

//=================================================================

global require friendsofphp/php-cs-fixer

docker exec -it 05f1bbbeab0e sudo mysql -u root -p rootPASS auctions < auctions.sql
auctions < /home/oem/Downloads/auctions.sql
home/oem/Downloads/auctions.sql
auctions auctions > xxxaaaaa.sql
sudo mysql -u root -p m4856_cypherlarva < m4856_cypherlarva.sql
sudo docker exec -it 05f1bbbeab0e mysql -u root -p auctions < auctions.sql
mysql -uroot -prootPASS auctions < auctions.sql
docker exec -i mysql-container mysql -uroot -prootPASS auctions < auctions.sql

auctions

http://samochodygt.ct8.pl/api/kategoria/64477.
pomocfrankowiczom.biuraprawne.comhttp://localhost/

//debug koniguracji
sudo docker inspect mysql

//php fixer
tools/php-cs-fixer/vendor/bin/php-cs-fixer fix srctools/php-cs-fixer/vendor/bin/php-cs-fixer fix src --fixers=unused_use

Komentarze wyłączone