shopware-docker icon indicating copy to clipboard operation
shopware-docker copied to clipboard

Install not working on OsX Mojave

Open secretlifeof opened this issue 5 years ago • 3 comments

I am trying to install shopware the first time. I have followed the install instructions like described in this repository.

git clone https://github.com/shopwareLabs/shopware-docker backend
cd backend
./psh.phar docker:start
./psh.phar docker:ssh
./psh.phar init

The docker:start command works correctly. Starting web server at localhost:8083.

The init command exits with error:

###################
Starting Execution of 'init' ('dev-ops/common/actions/init.sh')


(1/2) Starting
> rm -rf ./shopware

(2/2) Starting
> ./sw.phar install:release -r latest -i ./shopware --db-host mysql --db-user app --db-password app --db-name shopware --shop-host localhost:8083

                                                                      
          [RuntimeException]                                          
          Could not find / create //.local/share/sw-cli-tools/assets  
                                                                      


Execution aborted, a subcommand failed!

Does it has something to do with version 6?

secretlifeof avatar Nov 04 '19 13:11 secretlifeof

Same happens with Ubuntu 18.04

syntaxgirl avatar Nov 05 '19 13:11 syntaxgirl

it seems to be missing user / group.

I have no name!@8a4aba3d4715:/var/www/shopware$ whoami
whoami: cannot find name for user ID 501

thus cannot create folder properly.

i got a workaround by adding / linking volumes to local folder.

in docker-compose.yaml, on app_server's volume, you can add these 3 lines

      - .cache:/.cache/sw-cli-tools
      - .sw-cli-tools:/.local/share/sw-cli-tools/assets
      - .config:/.config

so my full app_server section become:

Screen Shot 2019-12-26 at 11 36 42 am

r4ccoon avatar Dec 26 '19 02:12 r4ccoon

@r4ccoon you saved me <3

ireznik avatar Jan 03 '20 07:01 ireznik