이 콘텐츠는 선택한 언어로 제공되지 않습니다.

2.2. Deploy a Profile


Deploy a profile to the child container

Having created the child container, as described in Section 2.1, “Create a Fabric”, you can now deploy a profile to it.
Note
Do not deploy profiles that have the same PID defined with different values. If you do, the fabric uses the values of the last one deployed.
To deploy a profile to the container, follow these steps:
  1. Open a terminal and cd to the $FUSE_HOME/quickstarts/beginner/camel-log directory.
  2. Build the camel-log quickstart by entering this command:
    $ mvn clean install
    Copy to Clipboard Toggle word wrap
  3. Upload the camel-log quickstart profile to the fabric container by entering this command:
    $ mvn fabric8:deploy
    Copy to Clipboard Toggle word wrap
    Note
    If this is the first time you've run this command, it prompts you to enter the username and password to use to log into the fabric container.
  4. Deploy the quickstarts-beginner-camel.log profile into the child container by entering this console command:
    JBossFuse:karaf@root> fabric:container-change-profile child quickstarts-beginner-camel.log
    Copy to Clipboard Toggle word wrap
  5. Verify that the camel-log quickstart profile, quickstarts-beginner-camel.log, was uploaded successfully by entering the fabric:status console command:
    JBossFuse:karaf@root> fabric:status
    [profile]                           [instances]    [health]
    fabric                              1              100%
    fabric-ensemble-0000-1              1              100%
    jboss-fuse-full                     1              100%
    quickstarts-beginner-camel.log 1 100%
    Copy to Clipboard Toggle word wrap
  6. Verify that the quickstarts-beginner-camel.log profile deployed successfully to the child container, issuing the fabric:container-list command:
    JBossFuse:karaf@root> fabric:container-list
    Copy to Clipboard Toggle word wrap
    until the child container's status changes to success:
    [id]     [version]  [type]  [connected]  [profiles]                      [provision status]
    root*    1.0        karaf   yes          fabric                          success           
                                             fabric-ensemble-0000-1                            
                                             jboss-fuse-full                                                                       
      child  1.0        karaf   yes          quickstarts-beginner-camel.log  success
    Copy to Clipboard Toggle word wrap

View the sample output

When it is running, the quickstarts-beginner-camel.log 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:
  1. Connect to the child container, by entering the following console command:
    JBossFuse:karaf@root> container-connect child
    Copy to Clipboard Toggle word wrap
  2. After logging on to the child container, view the child container's log using the log:tail command, as follows:
    JBossFuse:karaf@root> log:tail
    Copy to Clipboard Toggle word wrap
    You should see some output like the following:
    2016-06-16 11:47:51,012 | INFO  | #2 - timer://foo | log-route
        | ? ? | 153 - org.apache.camel.camel-core - 2.17.1.redhat-630187
        | >>> Hello from Fabric based Camel route! : child
    2016-06-16 11:47:56,011 | INFO  | #2 - timer://foo | log-route
        | ? ? | 153 - org.apache.camel.camel-core - 2.17.1.redhat-630187
        | >>> Hello from Fabric based Camel route! : child
    Copy to Clipboard Toggle word wrap
  3. Type Ctrl-C to exit the log view and return to the child container's console prompt.
  4. Type Ctrl-D to exit the child container's console, which returns you to the root container's console.
맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2025 Red Hat