Version Packages
This commit is contained in:
@@ -1,5 +1,113 @@
|
||||
# @backstage/create-app
|
||||
|
||||
## 0.3.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- d50e9b81e: Updated docker build to use `backstage-cli backend:bundle` instead of `backstage-cli backend:build-image`.
|
||||
|
||||
To apply this change to an existing application, change the following in `packages/backend/package.json`:
|
||||
|
||||
```diff
|
||||
- "build": "backstage-cli backend:build",
|
||||
- "build-image": "backstage-cli backend:build-image --build --tag backstage",
|
||||
+ "build": "backstage-cli backend:bundle",
|
||||
+ "build-image": "docker build ../.. -f Dockerfile --tag backstage",
|
||||
```
|
||||
|
||||
Note that the backend build is switched to `backend:bundle`, and the `build-image` script simply calls `docker build`. This means the `build-image` script no longer builds all packages, so you have to run `yarn build` in the root first.
|
||||
|
||||
In order to work with the new build method, the `Dockerfile` at `packages/backend/Dockerfile` has been updated with the following contents:
|
||||
|
||||
```dockerfile
|
||||
# This dockerfile builds an image for the backend package.
|
||||
# It should be executed with the root of the repo as docker context.
|
||||
#
|
||||
# Before building this image, be sure to have run the following commands in the repo root:
|
||||
#
|
||||
# yarn install
|
||||
# yarn tsc
|
||||
# yarn build
|
||||
#
|
||||
# Once the commands have been run, you can build the image using `yarn build-image`
|
||||
|
||||
FROM node:14-buster-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy repo skeleton first, to avoid unnecessary docker cache invalidation.
|
||||
# The skeleton contains the package.json of each package in the monorepo,
|
||||
# and along with yarn.lock and the root package.json, that's enough to run yarn install.
|
||||
ADD yarn.lock package.json packages/backend/dist/skeleton.tar.gz ./
|
||||
|
||||
RUN yarn install --frozen-lockfile --production --network-timeout 300000 && rm -rf "$(yarn cache dir)"
|
||||
|
||||
# Then copy the rest of the backend bundle, along with any other files we might want.
|
||||
ADD packages/backend/dist/bundle.tar.gz app-config.yaml ./
|
||||
|
||||
CMD ["node", "packages/backend", "--config", "app-config.yaml"]
|
||||
```
|
||||
|
||||
Note that the base image has been switched from `node:14-buster` to `node:14-buster-slim`, significantly reducing the image size. This is enabled by the removal of the `nodegit` dependency, so if you are still using this in your project you will have to stick with the `node:14-buster` base image.
|
||||
|
||||
A `.dockerignore` file has been added to the root of the repo as well, in order to keep the docker context upload small. It lives in the root of the repo with the following contents:
|
||||
|
||||
```gitignore
|
||||
.git
|
||||
node_modules
|
||||
packages
|
||||
!packages/backend/dist
|
||||
plugins
|
||||
```
|
||||
|
||||
- 532bc0ec0: Upgrading to lerna@4.0.0.
|
||||
- Updated dependencies [16fb1d03a]
|
||||
- Updated dependencies [92f01d75c]
|
||||
- Updated dependencies [6c4a76c59]
|
||||
- Updated dependencies [32a950409]
|
||||
- Updated dependencies [491f3a0ec]
|
||||
- Updated dependencies [f10950bd2]
|
||||
- Updated dependencies [914c89b13]
|
||||
- Updated dependencies [fd3f2a8c0]
|
||||
- Updated dependencies [257a753ff]
|
||||
- Updated dependencies [d872f662d]
|
||||
- Updated dependencies [edbc27bfd]
|
||||
- Updated dependencies [434b4e81a]
|
||||
- Updated dependencies [fb28da212]
|
||||
- Updated dependencies [9337f509d]
|
||||
- Updated dependencies [0ada34a0f]
|
||||
- Updated dependencies [0af242b6d]
|
||||
- Updated dependencies [f4c2bcf54]
|
||||
- Updated dependencies [d9687c524]
|
||||
- Updated dependencies [53b69236d]
|
||||
- Updated dependencies [29c8bcc53]
|
||||
- Updated dependencies [3600ac3b0]
|
||||
- Updated dependencies [07e226872]
|
||||
- Updated dependencies [b0a41c707]
|
||||
- Updated dependencies [f62e7abe5]
|
||||
- Updated dependencies [a341a8716]
|
||||
- Updated dependencies [96f378d10]
|
||||
- Updated dependencies [532bc0ec0]
|
||||
- Updated dependencies [688b73110]
|
||||
- @backstage/backend-common@0.5.4
|
||||
- @backstage/plugin-auth-backend@0.3.1
|
||||
- @backstage/plugin-scaffolder@0.5.1
|
||||
- @backstage/plugin-catalog@0.3.2
|
||||
- @backstage/core@0.6.2
|
||||
- @backstage/cli@0.6.1
|
||||
- @backstage/plugin-user-settings@0.2.6
|
||||
- @backstage/plugin-scaffolder-backend@0.7.1
|
||||
- @backstage/plugin-api-docs@0.4.6
|
||||
- @backstage/plugin-catalog-import@0.4.1
|
||||
- @backstage/plugin-github-actions@0.3.3
|
||||
- @backstage/plugin-lighthouse@0.2.11
|
||||
- @backstage/plugin-techdocs-backend@0.6.1
|
||||
- @backstage/plugin-catalog-backend@0.6.2
|
||||
- @backstage/plugin-circleci@0.2.9
|
||||
- @backstage/plugin-explore@0.2.6
|
||||
- @backstage/plugin-search@0.3.1
|
||||
- @backstage/plugin-techdocs@0.5.7
|
||||
|
||||
## 0.3.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/create-app",
|
||||
"description": "Create app package for Backstage",
|
||||
"version": "0.3.9",
|
||||
"version": "0.3.10",
|
||||
"private": false,
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
@@ -44,30 +44,30 @@
|
||||
"ts-node": "^8.6.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@backstage/backend-common": "^0.5.3",
|
||||
"@backstage/backend-common": "^0.5.4",
|
||||
"@backstage/catalog-model": "^0.7.1",
|
||||
"@backstage/cli": "^0.6.0",
|
||||
"@backstage/cli": "^0.6.1",
|
||||
"@backstage/config": "^0.1.2",
|
||||
"@backstage/core": "^0.6.1",
|
||||
"@backstage/plugin-api-docs": "^0.4.5",
|
||||
"@backstage/core": "^0.6.2",
|
||||
"@backstage/plugin-api-docs": "^0.4.6",
|
||||
"@backstage/plugin-app-backend": "^0.3.7",
|
||||
"@backstage/plugin-auth-backend": "^0.3.0",
|
||||
"@backstage/plugin-catalog": "^0.3.1",
|
||||
"@backstage/plugin-catalog-backend": "^0.6.1",
|
||||
"@backstage/plugin-catalog-import": "^0.4.0",
|
||||
"@backstage/plugin-circleci": "^0.2.8",
|
||||
"@backstage/plugin-explore": "^0.2.5",
|
||||
"@backstage/plugin-github-actions": "^0.3.2",
|
||||
"@backstage/plugin-lighthouse": "^0.2.10",
|
||||
"@backstage/plugin-auth-backend": "^0.3.1",
|
||||
"@backstage/plugin-catalog": "^0.3.2",
|
||||
"@backstage/plugin-catalog-backend": "^0.6.2",
|
||||
"@backstage/plugin-catalog-import": "^0.4.1",
|
||||
"@backstage/plugin-circleci": "^0.2.9",
|
||||
"@backstage/plugin-explore": "^0.2.6",
|
||||
"@backstage/plugin-github-actions": "^0.3.3",
|
||||
"@backstage/plugin-lighthouse": "^0.2.11",
|
||||
"@backstage/plugin-proxy-backend": "^0.2.4",
|
||||
"@backstage/plugin-rollbar-backend": "^0.1.7",
|
||||
"@backstage/plugin-scaffolder": "^0.5.0",
|
||||
"@backstage/plugin-search": "^0.3.0",
|
||||
"@backstage/plugin-scaffolder-backend": "^0.7.0",
|
||||
"@backstage/plugin-scaffolder": "^0.5.1",
|
||||
"@backstage/plugin-search": "^0.3.1",
|
||||
"@backstage/plugin-scaffolder-backend": "^0.7.1",
|
||||
"@backstage/plugin-tech-radar": "^0.3.5",
|
||||
"@backstage/plugin-techdocs": "^0.5.6",
|
||||
"@backstage/plugin-techdocs-backend": "^0.6.0",
|
||||
"@backstage/plugin-user-settings": "^0.2.5",
|
||||
"@backstage/plugin-techdocs": "^0.5.7",
|
||||
"@backstage/plugin-techdocs-backend": "^0.6.1",
|
||||
"@backstage/plugin-user-settings": "^0.2.6",
|
||||
"@backstage/test-utils": "^0.1.7",
|
||||
"@backstage/theme": "^0.2.3"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user