Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TakoB222 committed Jul 26, 2024
1 parent 1b3231b commit 95804fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
10 changes: 4 additions & 6 deletions file-metrics-collector/rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ description: |
Collects metrics from specified file.
version: v0.17.0
license: Apache-2.0
build-base: [email protected]
base: bare
base: [email protected]
run-user: _daemon_
services:
file-metrics-collector:
Expand Down Expand Up @@ -41,8 +40,7 @@ parts:
security-team-requirement:
plugin: nil
override-build: |
# security requirement
# there are no packages installed in `bare` base which is used in this rock
mkdir -p ${CRAFT_PART_INSTALL}/usr/share/rocks
(echo "# os-release" && cat /etc/os-release && echo "# dpkg-query") \
> ${CRAFT_PART_INSTALL}/usr/share/rocks/dpkg.query
(echo "# os-release" && cat /etc/os-release && echo "# dpkg-query" && \
dpkg-query --root=${CRAFT_PROJECT_DIR}/../bundles/ubuntu-22.04/rootfs/ -f '${db:Status-Abbrev},${binary:Package},${Version},${source:Package},${Source:Version}\n' -W) \
> ${CRAFT_PART_INSTALL}/usr/share/rocks/dpkg.query
10 changes: 4 additions & 6 deletions katib-db-manager/rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ description: |
Katib database manager.
version: v0.17.0
license: Apache-2.0
build-base: [email protected]
base: bare
base: [email protected]
run-user: _daemon_
services:
katib-db-manager:
Expand Down Expand Up @@ -54,8 +53,7 @@ parts:
security-team-requirement:
plugin: nil
override-build: |
# security requirement
# there are no packages installed in `bare` base which is used in this rock
mkdir -p ${CRAFT_PART_INSTALL}/usr/share/rocks
(echo "# os-release" && cat /etc/os-release && echo "# dpkg-query") \
> ${CRAFT_PART_INSTALL}/usr/share/rocks/dpkg.query
(echo "# os-release" && cat /etc/os-release && echo "# dpkg-query" && \
dpkg-query --root=${CRAFT_PROJECT_DIR}/../bundles/ubuntu-22.04/rootfs/ -f '${db:Status-Abbrev},${binary:Package},${Version},${source:Package},${Source:Version}\n' -W) \
> ${CRAFT_PART_INSTALL}/usr/share/rocks/dpkg.query

0 comments on commit 95804fc

Please sign in to comment.