Show Table of Contents
1.2. Deploy a Profile
Deploy a profile to the child container
Having created the child container, as described in Section 1.1, “Create a Fabric”, you can now deploy the a profile to it. To do so, follow these steps:
- Deploy the
example-camel-helloprofile into thechildcontainer by entering this console command:JBossFuse:karaf@root> fabric:container-change-profile child example-camel-hello
- Verify that the
example-camel-helloprofile deploys successfully to thechildcontainer, using thefabric:container-listcommand. Enter the following command to monitor the container status:JBossFuse:karaf@root> shell:watch container-list
And wait until thechildcontainer status changes tosuccess.
View the sample output
When it is running, the
example-camel-hello profile writes a message to the container's log every five seconds. To verify that the profile is running properly, you can look for these messages in the child container's log, as follows:
- Connect to the
childcontainer, by entering the following console command:JBossFuse:karaf@root> container-connect child
- After logging on to the
childcontainer, view thechildcontainer's log using thelog:tailcommand, as follows:JBossFuse:karaf@root> log:tail
You should see some output like the following: - Type Ctrl-C to exit the log view and get back to the child container's console prompt.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.