Skip to content
Snippets Groups Projects
Commit 2dc8b045 authored by Alan Nelson's avatar Alan Nelson
Browse files

Remove script to set composer credentials

parent 389f1936
No related branches found
No related tags found
2 merge requests!5Develop,!4Working copy
......@@ -33,8 +33,4 @@ RUN curl -o /usr/local/bin/composer https://getcomposer.org/composer.phar \
# PHP Config file
COPY php.ini /etc/php.d/mg2.ini
# Custom Scrips
COPY set-mg2-credentials /usr/local/bin/set-mg2-credentials
RUN chmod 755 /usr/local/bin/set-mg2-credentials
CMD ["bash"]
#!/bin/bash
if [[ "$#" -ne 2 ]]; then
echo "Please provide both the username and password"
exit 1
fi
mkdir -p /root/.composer
cat > /root/.composer/auth.json <<EOF
{
"http-basic": {
"repo.magento.com": {
"username": "$1",
"password": "$2"
}
}
}
EOF
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment