diff --git a/sklearnserver/rockcraft.yaml b/sklearnserver/rockcraft.yaml index d8b0ddc..6ff79f5 100644 --- a/sklearnserver/rockcraft.yaml +++ b/sklearnserver/rockcraft.yaml @@ -80,14 +80,14 @@ parts: install -D -m 755 ${CRAFT_STAGE}/microservice/SKLearnServer.py microservice/SKLearnServer.py # security requirement - mkdir -p ${CRAFT_PART_INSTALL}/usr/share/ROCK images + mkdir -p ${CRAFT_PART_INSTALL}/usr/share/rocks (echo "# os-release" && cat /etc/os-release && echo "# dpkg-query" && \ dpkg-query -f '${db:Status-Abbrev},${binary:Package},${Version},${source:Package},${Source:Version}\n' -W) \ - > ${CRAFT_PART_INSTALL}/usr/share/ROCK images/dpkg.query + > ${CRAFT_PART_INSTALL}/usr/share/rocks/dpkg.query non-root-user: plugin: nil - after: sklearnserver + after: [sklearnserver] overlay-script: | # Create a user in the $CRAFT_OVERLAY chroot groupadd -R $CRAFT_OVERLAY -g 1001 ubuntu