Skip to content

Commit

Permalink
feat: adding craft version as a file (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Beierl authored Jun 17, 2024
1 parent 20c9322 commit ae65792
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ CONTRIBUTING.md # Contributing
## Build and deploy

```bash
sudo snap install rockcraft --classic --edge
rockcraft pack -v
sudo skopeo --insecure-policy copy oci-archive:sdcore-upf-bess_1.4.0_amd64.rock docker-daemon:sdcore-upf-bess:1.4.0
sudo rockcraft.skopeo --insecure-policy copy oci-archive:sdcore-upf-bess_1.4.0_amd64.rock docker-daemon:sdcore-upf-bess:1.4.0
docker run sdcore-upf-bess:1.4.0
```
12 changes: 11 additions & 1 deletion rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,17 @@ parts:
after:
- bess
source: https://github.com/omec-project/upf.git
source-tag: v1.4.0
source-tag: v${CRAFT_PROJECT_VERSION}
source-subdir: conf
organize:
"*": opt/bess/bessctl/conf/

version:
plugin: nil
override-build: |
mkdir -p ${CRAFT_PART_INSTALL}/etc/
echo ${CRAFT_PROJECT_VERSION} > ${CRAFT_PART_INSTALL}/etc/workload-version
organize:
"*": etc/
stage:
- etc/

0 comments on commit ae65792

Please sign in to comment.