#Docker Image Build - NotFoundError

2 messages · Page 1 of 1 (latest)

arctic crypt
#

Hey Folks
Doing a fresh install using npx @backstage/create-app@latest, then following the docker build instructions:

yarn install --frozen-lockfile
yarn tsc
yarn build:backend --config app-config.yaml

This is giving a new error implying that app-config.yaml should be in the backend package, as opposed to the root of our app?

yarn run v1.22.19
$ yarn workspace backend build --config app-config.yaml
$ backstage-cli package build --config app-config.yaml
Building app separately because it is a bundled package

$ backstage-cli package build --config /Users/hreeder/tmp/backstage-test/buckstage/packages/backend/app-config.yaml
app:
app:
app:  NotFoundError: Config file "/Users/hreeder/tmp/backstage-test/buckstage/packages/backend/app-config.yaml" does not exist
app:
app:

app:  error Command failed with exit code 1.
app:
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
app:

Command 'yarn' exited with code 1

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed.
Exit code: 1
Command: /Users/hreeder/.nvm/versions/node/v18.12.1/bin/node
Arguments: /opt/homebrew/Cellar/yarn/1.22.19/libexec/lib/cli.js build --config app-config.yaml
Directory: /Users/hreeder/tmp/backstage-test/buckstage/packages/backend
Output:

info Visit https://yarnpkg.com/en/docs/cli/workspace for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
#
❯ cat backstage.json
{
  "version": "1.14.0"
}

❯ npx backstage-cli --version
0.22.7