shopware-docker
shopware-docker copied to clipboard
Install not working on OsX Mojave
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?
Same happens with Ubuntu 18.04
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:

@r4ccoon you saved me <3