Comments (3)
so i took a look at your manifest shell script and at least for me I needed to set the PKGVERSION like so:
index 0b2131e..f2aa8c9 100755
--- a/scripts/make-manifest.sh
+++ b/scripts/make-manifest.sh
@@ -1,5 +1,6 @@
#!/bin/bash
PKGNAME="nano-web"
+PKGVERSION=$(./scripts/get-version.sh)
the Version wasn't getting put into the package.manifest w/out:
➜ nano-web git:(main) ✗ cat release/nano-web_0.1.2-1/package.manifest
{
"Program":"nano-web_0.1.2-1/nano-web",
"Args" : ["nano-web"],
"Version":"0.1.2-1"
}
from ops.
also, fyi - there is a cmd 'ops pkg from-run g --name nano-web --version 0.1.1 -c config.json' that would remove a lot of these manual steps
from ops.
The PKGVERSION was indeed getting set from my shell's env, so I've modified my makefile to set it explicitly now!
However this issue was caused by a bug in the regex due to the dash in the package name! See PR :)
Updated Makefile
PKGNAME=nano-web
PKGVERSION:=$(shell ./scripts/get-version.sh)
PKGRELEASE=$(PKGNAME)_$(PKGVERSION)
RELEASEDIR=./release
PKGDIR=$(RELEASEDIR)/$(PKGRELEASE)
pkg-clean:
rm -rf $(RELEASEDIR)
pkg-build:
GOOS=linux go build -o $(PKGDIR)/$(PKGNAME) main.go
pkg-create: pkg-clean
mkdir -p $(PKGDIR)/sysroot
mkdir -p $(PKGDIR)/sysroot/public
PKGVERSION=$(PKGVERSION) PKGNAME=$(PKGNAME) ./scripts/make-manifest.sh > $(PKGDIR)/package.manifest
cp README.md $(PKGDIR)
pkg-add: pkg-create pkg-build
ops pkg add $(PKGDIR) --name $(PKGRELEASE)
pkg-bundle: pkg-add
cd $(RELEASEDIR); tar czvf $(PKGRELEASE).tar.gz $(PKGRELEASE)
@echo "Release created: $(PKGDIR).tar.gz"
pkg-push: pkg-add
ops pkg push $(PKGRELEASE)
pkg-load: pkg-add
ops pkg load -l $(PKGRELEASE) -p 80
from ops.
Related Issues (20)
- feature request to deploy to Hivelocity.net provider HOT 4
- GCP instance creation to an instance-group fails from non-default interface name HOT 1
- qmp for local instances doesn't work w/custom instance names HOT 1
- unimplemented socket options for Python amqp HOT 5
- GCP rate limit: one disk image create every 10 minutes HOT 4
- Unikernel Process Not Starting with Memory Size Beyond a Certain Range in Firecracker HOT 7
- Incomplete documentation, no real world nodejs runner example HOT 2
- Instance tags through config.json in DO HOT 2
- Ops deploy does not use InstanceName on DO HOT 1
- Memory metric not showing for instance on digital ocean HOT 2
- Go App Served via SSH HOT 3
- Error: failed converting configuration file: json: cannot unmarshal number into Go struct field RunConfig.RunConfig.Ports of type string HOT 3
- Run on GCP Cloud Run HOT 3
- Feat suggestion: Show progress in ops image create HOT 5
- [Mac M1] ops pkg list (question / bug) HOT 2
- No network on Azure HOT 2
- Does exec/command need full paths? HOT 9
- GPU integration with nanos HOT 17
- How to package a program on the outer layer of a public package? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ops.