Skip to content

kameshsampath/apko-hello-world

Repository files navigation

Hello World

A demo to show how to apk of an application

Pre-requisites

Push to any Docker v2 registry

Create a file secrets with following values,

image_repo: <your Docker v2 repo>
image_registry_username: <your registry username>
image_registry_password: <your  registry user password>

Build package and image,

drone exec --trusted --secret-file secrets

Build only image

drone exec --trusted --secret-file secrets --include="publish"

Run App

docker run --rm -p 8080:8080 $IMAGE_REPO

Do a curl command like,

curl "localhost:8080?name=$USER"

Should have a response,

{"Prefix":"Hello","Name":"$USER","Message":"Hello,$USER"}

Generate Signing Keys

If you want to generate the melange keys,

drone exec --include 'keygen' --pipeline="keys"

References