Skip to content
Browse files
Ingest the docker/containers.json config
  • Loading branch information
Barry Gordon committed Feb 23, 2022
1 parent f2040d9 commit 0f7930d8085ced4a7bc583c681f5a291b89b99ec
Showing 3 changed files with 5 additions and 31 deletions.

This file was deleted.

@@ -1,26 +1,4 @@
import fs from 'fs'
import dockerContainerConfig from '../docker/containers.json'

const dockerfile = fs.readFileSync(require.resolve('../Dockerfile'), 'utf8')

const imageNames = dockerfile
.filter(a => a.startsWith('FROM'))
.map(a => a.replace('FROM', '').trim())

const updaterImageName = imageNames.find(a =>
const proxyImageName = imageNames.find(a =>

if (!updaterImageName) {
throw new Error('Could not find dependabot-updater image name')

if (!proxyImageName) {
throw new Error('Could not find dependabot-update-job-proxy image name')

export const UPDATER_IMAGE_NAME = updaterImageName
export const PROXY_IMAGE_NAME = proxyImageName
export const UPDATER_IMAGE_NAME = dockerContainerConfig.updater
export const PROXY_IMAGE_NAME = dockerContainerConfig.proxy
@@ -7,7 +7,8 @@
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
"moduleResolution": "node",
"noEmit": true, /* Do not emit compiler output files as we use ncc to package the action */
"forceConsistentCasingInFileNames": true /* Error if requiring a file by a casing different from the casing on disk */
"forceConsistentCasingInFileNames": true, /* Error if requiring a file by a casing different from the casing on disk */
"resolveJsonModule": true
"include": ["src/**/*.ts"],
"exclude": ["**/node_modules/**"]

0 comments on commit 0f7930d

Please sign in to comment.