-
Hey community! I need to connect an azure mariadb and added the the following database options: 'mysql' => [
//...
'sslmode' => 'prefer',
'options' => env('APP_ENV') != 'local'
PDO::MYSQL_ATTR_SSL_CA => base_path() . "/ssl/BaltimoreCyberTrustRoot.crt.pem",
PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => false,
) : [],
], therefore I require "require": {
"php": "^8.0",
"ext-gd": "*",
"ext-json": "*",
"ext-pdo": "^8.0",
"doctrine/dbal": "^3.1.1",
"fideloper/proxy": "^4.4",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^7.3.0",
"jenssegers/agent": "^2.6",
"laravel/framework": "^8.12",
"laravel/jetstream": "^2.3.11",
"laravel/sanctum": "^v2.11.2",
"laravel/tinker": "^v2.6.1",
"league/oauth2-client": "^2.6",
"livewire/livewire": "^v2.5.1",
"maatwebsite/excel": "^3.1.33",
"microsoft/microsoft-graph": "^1.34.0",
"motze92/office365-mail": "^2.0.7"
}, while building a new docker image I the following error:
Hope someone can help me out here 🙏 |
Beta Was this translation helpful? Give feedback.
Answered by
lordisp
Oct 20, 2021
Replies: 1 comment
-
I fount the reason! I have a multi-stage build and my composer container did not have the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lordisp
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I fount the reason!
I have a multi-stage build and my composer container did not have the
pdo
extension.So I've added that with
docker-php-ext-install pdo_mysql
and everything works fine.