-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix filesystem premissions after docker:init via docker
- Loading branch information
Simon Bäumer
committed
Mar 31, 2017
1 parent
347c65d
commit d03545a
Showing
5 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
DIR="$( pwd )/vendor/shopware/plugin-dev-tools" | ||
|
||
USERID=$(id -u) | ||
GROUP=$(id -g) | ||
|
||
cat > $DIR/output/create-user.sh <<DELIM | ||
#!/usr/bin/env bash | ||
groupadd -g ${GROUP} app-shell | ||
useradd -s /bin/bash -m -u ${USERID} -g ${GROUP} app-shell | ||
chown -R app-shell:app-shell /home/app-shell | ||
chown -R app-shell:app-shell /var/www/html | ||
echo -e "app-shell\napp-shell\n" | passwd app-shell | ||
echo 'app-shell ALL=(ALL:ALL) NOPASSWD: ALL' >> /etc/sudoers | ||
DELIM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
./vendor/shopware/plugin-dev-tools/bin/create-user.sh | ||
|
||
docker-compose build && docker-compose up -d | ||
docker-compose run __PLUGIN_LOWERCASE__ /tmp/wait-mysql.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
docker-compose run __PLUGIN_LOWERCASE__ __SHOPWARE_ROOT__vendor/phpunit/phpunit/phpunit | ||
docker-compose run __PLUGIN_LOWERCASE__ __SHOPWARE_ROOT__vendor/phpunit/phpunit/phpunit --verbose |