Skip to content

camelexamples/camel-k-install

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

install

install.camel-k.com - install on fedora

Prepare the Environment:

Run

install jbang

curl -Ls https://sh.jbang.dev | bash -s - app setup
sudo dnf copr enable @jbangdev/jbang 
sudo dnf install -y jbang
sudo dnf update -y

For Linux, macOS, and Windows (using WSL or bash compatible shell like Cygwin or MinGW)

curl -Ls https://sh.jbang.dev | bash -s - trust add https://github.com/apache/
curl -Ls https://sh.jbang.dev | bash -s - app install --fresh --force camel@apache/camel

Create your first Camel integration

camel init hello.java

Run the Camel integration

camel run hello.java

Bang the Camel integration is now running. You can use ctrl + c to stop the integration.

Camel makes it easy to change your code on the fly. You can run in live coding mode, as shown:

camel run hello.java --dev

While in live coding mode, whenever you save changes to hello.java, Camel will automatically load the updated version.

create project

mkdir example
cd example
jbang init hello.java

create

jbang hello.java

update

jbang edit --open=[editor] hello.java

verify JBang

jbang version

to use Camel JBang then install the following:

jbang app install camel@apache/camel

Enable shell completion

Camel JBang provides shell completion for bash and zsh out of the box. To enable shell completion for Camel JBang, run:

source <(camel completion)

To make it permanent, run:

echo 'source <(camel completion)' >> ~/.bashrc

instal k3c and Camel

curl -sfL https://get.k3s.io | sh - 

Check for Ready node, takes ~30 seconds

sudo k3s kubectl get node 

About

install.camel-k.com - install on fedora

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published