Skip to content

Commit

Permalink
Merge platform/graphql and platform/graphql-deps in rockcraft.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
weiiwang01 committed Dec 18, 2024
1 parent ab0eb50 commit 88ae9c1
Showing 1 changed file with 2 additions and 25 deletions.
27 changes: 2 additions & 25 deletions opencti_rock/rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ platforms:
amd64:

parts:
platform/graphql-deps:
platform/graphql:
plugin: nil
source: https://github.com/OpenCTI-Platform/opencti.git
source-tag: *version
Expand All @@ -27,37 +27,14 @@ parts:
build-snaps:
- node/20/stable
- rustup
stage-snaps:
- node/20/stable
stage-packages:
- curl
override-build: |
craftctl default
cd opencti-platform/opencti-graphql/
yarn install --frozen-lockfile
yarn build:prod
yarn cache clean --all
mkdir -p $CRAFT_PART_INSTALL/opt/opencti
cp -rp node_modules $CRAFT_PART_INSTALL/opt/opencti
platform/graphql:
plugin: nil
source: https://github.com/OpenCTI-Platform/opencti.git
source-tag: *version
source-type: git
source-depth: 1
build-packages:
- python3-dev
- postfix
- postfix-pcre
build-snaps:
- node/20/stable
- rustup
override-build: |
craftctl default
cd opencti-platform/opencti-graphql/
yarn install
yarn build:prod
mkdir -p $CRAFT_PART_INSTALL/opt/opencti
cp -rp build static src config script $CRAFT_PART_INSTALL/opt/opencti
platform/frontend:
Expand Down

0 comments on commit 88ae9c1

Please sign in to comment.