From 9d9be673630c1a752b846d82760d2f3d725ad31b Mon Sep 17 00:00:00 2001 From: Yanks Yoon Date: Thu, 2 Jan 2025 11:08:18 +0000 Subject: [PATCH] feat: add template --- .../expressjs-framework/rockcraft.yaml.j2 | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 rockcraft/templates/expressjs-framework/rockcraft.yaml.j2 diff --git a/rockcraft/templates/expressjs-framework/rockcraft.yaml.j2 b/rockcraft/templates/expressjs-framework/rockcraft.yaml.j2 new file mode 100644 index 000000000..fe99c7f8f --- /dev/null +++ b/rockcraft/templates/expressjs-framework/rockcraft.yaml.j2 @@ -0,0 +1,71 @@ +name: {{name}} +# see {{versioned_url}}/explanation/bases/ +# for more information about bases and using 'bare' bases for chiselled rocks +base: bare # as an alternative, a ubuntu base can be used +build-base: ubuntu@24.04 # build-base is required when the base is bare +version: '0.1' # just for humans. Semantic versioning is recommended +summary: A summary of your ExpresssJS application # 79 char long summary +description: | + This is {{name}}'s description. You have a paragraph or two to tell the + most important story about it. Keep it under 100 words though, + we live in tweetspace and your description wants to look good in the + container registries out there. +# the platforms this rock should be built on and run on. +# you can check your architecture with `dpkg --print-architecture` +platforms: + amd64: + # arm64: + # ppc64el: + # s390x: + +# to ensure the expressjs-framework extension works properly, your ExpressJS +# application should be inside the app, src or a directory with the project +# name, and have inside the app directory a `index.js` or `server.js` file with +# the starting script defined in the package.json's scripts section under the +# "run" key. +extensions: + - expressjs-framework + +# uncomment the sections you need and adjust according to your requirements. + +# parts: # you need to uncomment this line to add or update any part. +# expressjs-framework/install-app: +# prime: +# # by default, only the files in bin/, public/, routes/, views/, app.js, +# # package.json package-lock.json are copied into the image. +# # You can modify the list below to override the default list and +# # include or exclude specific files/directories in your project. +# # note: prefix each entry with "app/" followed by the local path. +# - app/app +# - app/templates +# - app/static + +# you may need packages to build a npm package. Add them here if necessary. +# expressjs-framework/dependencies: +# build-packages: +# # for example, if you need pkg-config and libxmlsec1-dev to build one +# # of your packages: +# - pkg-config +# - libxmlsec1-dev + + +# you can add package slices or Debian packages to the image. +# package slices are subsets of Debian packages, which result +# in smaller and more secure images. +# see https://documentation.ubuntu.com/rockcraft/en/latest/explanation/chisel/ + +# add this part if you want to add packages slices to your image. +# you can find a list of packages slices at https://github.com/canonical/chisel-releases +# runtime-slices: +# plugin: nil +# stage-packages: +# # list the required package slices for your expressjs application below. +# # for example, for the slice libs of libpq5: +# - libpq5_libs + +# if you want to add a Debian package to your image, add the next part +runtime-debs: + plugin: nil + stage-packages: + # list required Debian packages for your expressjs application below. + - libpq5 # for Postgresql connection.