Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mpdf does not install properly in Docker #104

Open
ChemiKyle opened this issue May 3, 2021 · 0 comments
Open

Mpdf does not install properly in Docker #104

ChemiKyle opened this issue May 3, 2021 · 0 comments

Comments

@ChemiKyle
Copy link
Contributor

Docker needs to be forced to install composer dependencies properly, assuming you are using 10.5.1. Here is a hacky guide to correcting the issue for want of the proper way to fix this.

Navigate to your docker instance's www/redcap_10.5.1 folder, update the require section to add the mpdf library:

    "require": {
        "mpdf/mpdf": "^7.0.1"
        },

"ssh" into your redcap docker container: docker exec -it rc1051_web bash and follow install composer as in the referenced guide, altering the install-dirto be less annoying, here are the commands as of this comment, note that the sha384 check will likely change:

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php --install-dir=/usr/bin
php -r "unlink('composer-setup.php');"

While still in your "ssh" session, navigate to /var/www/html/redcap_v10.5.1 and run composer.phar update and wait.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant