Skip to content

Commit

Permalink
Expand test
Browse files Browse the repository at this point in the history
  • Loading branch information
hardillb committed Nov 16, 2023
1 parent d62c519 commit ce58219
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const fs = require('fs')
const got = require('got')
const Docker = require('dockerode')

Expand Down Expand Up @@ -85,7 +86,7 @@ const createContainer = async (project, domain) => {
contOptions.Env.push(`FORGE_NR_SECRET=${credentialSecret}`)
}

if (this._app.config.driver.options.privateCA) {
if (this._app.config.driver.options.privateCA && fs.existsSync(this._app.config.driver.options.privateCA)) {
contOptions.Binds = [
`${this._app.config.driver.options.privateCA}:/usr/local/ssl-certs/chain.pem`
]
Expand Down

0 comments on commit ce58219

Please sign in to comment.