Closed MarkWasley closed 3 years ago
Hey there, IN only builds their docker using alpine currently. So are already using alpine containers!
As for the SSL issue, it’s better to file a feature request in the invoiceninja repo, as I don’t think that’s currently supported
I believe you would need to define your SSL certs in the database configuration
ie, something like this in config/database.php
'mysql' => [
'driver' => 'mysql',
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '3306'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'unix_socket' => env('DB_SOCKET', ''),
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'sslmode' => env('DB_SSLMODE', 'prefer'),
'options' => array(
PDO::MYSQL_ATTR_SSL_CA => '/home/.../ca-cert.pem',
PDO::MYSQL_ATTR_SSL_CERT => '/home/.../cert.pem',
PDO::MYSQL_ATTR_SSL_KEY => '/home/.../key.pem'
),
'strict' => true,
'engine' => null,
],
That's good to know that the builds are already using Alpine.
@turbo124 Thanks David. This solved my connection problem but I ran into other issues so I'm using my own database server in the meantime.
Setup information Docker Compose
Describe the bug There are no Docker images for Version 5 with Alpine. I could only find Version 4 ones on Docker Hub. I tried to create one with this Dockerfile but Docker didn't know what
$BUILDPLATFORM
was.I also need to be able to establish a secure connection to an external database, My database provider wants me to validate their server side certificate, as explained here.
To reproduce Steps to reproduce the behaviour:
docker-compose.yml
withdocker-compose up -d
to build imageExpected behaviour Being able to install Version 5 with Alpine on Docker and being able to establish a secure connection to an external database.
Screenshots/logs
Docker/Kubernetes/Helm:
docker version
:Server: Docker Engine - Community Engine: Version: 20.10.8 API version: 1.41 (minimum version 1.12) Go version: go1.16.6 Git commit: 75249d8 Built: Fri Jul 30 19:52:10 2021 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.4.9 GitCommit: e25210fe30a0a703442421b0f60afac609f950a3 runc: Version: 1.0.1 GitCommit: v1.0.1-0-g4144b63 docker-init: Version: 0.19.0 GitCommit: de40ad0