Testcontainers is a NodeJS library that supports tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.
I am trying to use testcontainers on a machine with FIPS enabled. When running I am getting the following error because of the use of the md5 hash on a FIPS enabled machine. The code is fairly straight forward and is incldued below for situational awareness.
error:060800C8:digital envelope routines:EVP_DigestInit_ex:disabled for FIPS
24 | }
25 |
> 26 | mysqlContainer = await new GenericContainer('mysql:8.0.32')
| ^
27 | .withEnvironment({
28 | MYSQL_ALLOW_EMPTY_PASSWORD: 'true',
29 | MYSQL_DATABASE: 'test',
at hash (../node_modules/testcontainers/src/common/hash.ts:4:17)
at RandomUuid.nextUuid (../node_modules/testcontainers/src/common/uuid.ts:10:16)
at ../node_modules/testcontainers/src/reaper/reaper.ts:31:94
at withFileLock (../node_modules/testcontainers/src/common/file-lock.ts:14:12)
at getReaper (../node_modules/testcontainers/src/reaper/reaper.ts:29:12)
at GenericContainer.start (../node_modules/testcontainers/src/generic-container/generic-container.ts:104:22)
at Object.<anonymous> (src/service/service.test.ts:26:20)
I am trying to use testcontainers on a machine with FIPS enabled. When running I am getting the following error because of the use of the md5 hash on a FIPS enabled machine. The code is fairly straight forward and is incldued below for situational awareness.
What is the recommended way to run testcontaienrs-node on a FIPS enabled machine?