Skip to content

Commit 6629c54

Browse files
author
Gianpiero Addis
committed
Run modman inside the container, chmod .modman dir
1 parent 25a1382 commit 6629c54

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

magento/install-magento.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ if [ ! -f modman ]; then
1515
wget https://raw.githubusercontent.com/colinmollenhour/modman/master/modman
1616
chmod +x modman
1717
./modman init
18+
chmod -R 777 .modman
1819
fi
1920

2021
php n98-magerun.phar install --dbHost="${MAGENTO_DB_HOST}" --dbUser="${MAGENTO_DB_USER}" --dbPass="${MAGENTO_DB_PASS}" --dbName="${MAGENTO_DB_NAME}" --dbPort="${MAGENTO_DB_PORT}" --installSampleData=no --useDefaultConfigParams=yes --magentoVersionByName="${MAGENTO_VERSION}" --installationFolder="${PWD}" --baseUrl="${MAGENTO_BASE_URL}"

phpunit-magento

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ cleanup() {
1313
if [ ! -z "$(modman list)" ]; then
1414
echo "Removing installed modules..."
1515
for module in $(modman list); do
16-
modman remove $module
16+
dockerExec "cd app && ./modman remove $module"
1717
done
1818
fi
1919
}
@@ -36,8 +36,7 @@ fi
3636

3737
# Deploy the module.
3838
cp -R $callingDir $modmanDir/.
39-
cd $modmanDir
40-
modman deploy $callingDirName
39+
dockerExec "cd app && ./modman deploy $callingDirName"
4140

4241
filter="$1"
4342

0 commit comments

Comments
 (0)