/test-module

I think this should help alot

Primary LanguageDockerfile

Test-lily-module

a test lilypad module like this https://github.com/bacalhau-project/lilypad-module-cowsay/tree/main

Install lilypad locally

OSARCH=$(uname -m | awk '{if ($0 ~ /arm64|aarch64/) print "arm64"; else if ($0 ~ /x86_64|amd64/) print "amd64"; else print "unsupported_arch"}') && export OSARCH;

OSNAME=$(uname -s | awk '{if ($1 == "Darwin") print "darwin"; else if ($1 == "Linux") print "linux"; else print "unsupported_os"}') && export OSNAME;

curl -sSL -o lilypad https://github.com/bacalhau-project/lilypad/releases/download/v2.0.0-701b8cb/lilypad-$OSNAME-$OSARCH

chmod +x lilypad
sudo mv lilypad /usr/local/bin/lilypad

Run this app with lilypad

lilypad run github.com/dub3-space/test-lily-module:e54535a77729d1731d5e5874073aedc56217b86f -i GREET=ciao 

note that e54535a77729d1731d5e5874073aedc56217b86f is the sha of the commit I want to reference to lilypad. you need to change this with the commit you want to use

PAY ATTENTION

The docker image need to be built with --platform linux/amd64 tag otherwise lilypad won't like it