Closed FrankYang0529 closed 1 year ago
Hi @vdice, I add Dockerfile
for dockerize bindle. May you review it when you have time? Thank you.
It looks like Using Bindle example can't work on the current master branch, so I use v0.8.0 for testing.
I think we may want to ensure that the docs example can run successfully with this image at HEAD as well. Or at least by the next tagged release -- so we'll want to create issue(s) around the current failing behavior so that they can be fixed.
I think we may want to ensure that the docs example can run successfully with this image at HEAD as well. Or at least by the next tagged release -- so we'll want to create issue(s) around the current failing behavior so that they can be fixed.
Test for Using Bindle example with master branch:
Build and setup bindle-server
# build
make build
docker build -t bindle .
# Setup
BINDLE_TEMP=$(mktemp -d)
echo $BINDLE_TEMP
export BINDLE_KEYRING=$BINDLE_TEMP/keyring.toml
./target/debug/bindle keys create "VishnuJin<me@example.com>" -f $BINDLE_TEMP/secret_keys.toml
# Start bindle-server
docker run --name bindle -d --restart=unless-stopped -e RUST_LOG=debug -v $BINDLE_TEMP:/bindle-data -p 8080:8080 bindle
docker logs bindle -f
Sign and push invoice
# setup
export BINDLE_TEMP=<path from bindle-server terminal>
export BINDLE_KEYRING=$BINDLE_TEMP/keyring.toml
# create invoice.toml file
cat <<EOF > invoice.toml
bindleVersion = "1.0.0"
[bindle]
name = "mybindle"
version = "0.1.0"
authors = ["vdice"]
description = "My first bindle"
[annotations]
myname = "myvalue"
EOF
# sign invoice
./target/debug/bindle sign-invoice invoice.toml -o signed-invoice.toml -l "VishnuJin<me@example.com>" -f $BINDLE_TEMP/secret_keys.toml
# push invoice
./target/debug/bindle push-invoice signed-invoice.toml
# see invoice
./target/debug/bindle keys fetch
./target/debug/bindle info mybindle/0.1.0
Hi @vdice, it looks like we can't use the latest bindle with Spin. Bindle rejects un-signed invoices after this change https://github.com/deislabs/bindle/pull/300/. I will focus on https://github.com/fermyon/spin/issues/689 to fix this issue first.
Hi @vdice, it looks like we can't use the latest bindle with Spin. Bindle rejects un-signed invoices after this change https://github.com/deislabs/bindle/pull/300. I will focus on https://github.com/fermyon/spin/issues/689 to fix this issue first
@FrankYang0529 Yeah that is why the 0.9.0 release is still in an RC. We were giving everyone time to update to the required signing.
@vdice leaving final approval up to you. If you'd like to see a make
target and some docs in this PR, I am good with that
Hi @vdice, I updated docs/README.md
. May you help me review it again? Thank you.
ref: https://github.com/fermyon/installer/pull/100
~It looks like Using Bindle example can't work on the current master branch, so I use
v0.8.0
for testing.~ https://github.com/deislabs/bindle/pull/343#issuecomment-1250080411Start Bindle
git reset HEAD~1
to keepDockerfile
.git checkout v0.8.0
to check out tov0.8.0
.docker build -t bindle .
.BINDLE_TEMP=$(mktemp -d)
.docker run --name bindle -d --restart=unless-stopped -e RUST_LOG=debug -v $BINDLE_TEMP:/bindle-data -p 8080:8080 bindle
.Start consul & nomad
consul agent --dev
nomad agent --dev
Start Hippo
admin
and passwordp@ssword
.Run Spin
make build
.spin new http-rust myapp
.myapp
folder, runspin build
.spin deploy
.