Skip to content

Commit

Permalink
feat: add template
Browse files Browse the repository at this point in the history
  • Loading branch information
yanksyoon committed Jan 2, 2025
1 parent 91e87e9 commit 9d9be67
Showing 1 changed file with 71 additions and 0 deletions.
71 changes: 71 additions & 0 deletions rockcraft/templates/expressjs-framework/rockcraft.yaml.j2
Original file line number Diff line number Diff line change
@@ -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: [email protected] # 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.

0 comments on commit 9d9be67

Please sign in to comment.