Skip to main content
Redhat Developers  Logo
  • Products

    Platforms

    • Red Hat Enterprise Linux
      Red Hat Enterprise Linux Icon
    • Red Hat AI
      Red Hat AI
    • Red Hat OpenShift
      Openshift icon
    • Red Hat Ansible Automation Platform
      Ansible icon
    • View All Red Hat Products

    Featured

    • Red Hat build of OpenJDK
    • Red Hat Developer Hub
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat OpenShift Local
    • Red Hat Developer Sandbox

      Try Red Hat products and technologies without setup or configuration fees for 30 days with this shared Openshift and Kubernetes cluster.
    • Try at no cost
  • Technologies

    Featured

    • AI/ML
      AI/ML Icon
    • Linux
      Linux Icon
    • Kubernetes
      Cloud icon
    • Automation
      Automation Icon showing arrows moving in a circle around a gear
    • View All Technologies
    • Programming Languages & Frameworks

      • Java
      • Python
      • JavaScript
    • System Design & Architecture

      • Red Hat architecture and design patterns
      • Microservices
      • Event-Driven Architecture
      • Databases
    • Developer Productivity

      • Developer productivity
      • Developer Tools
      • GitOps
    • Automated Data Processing

      • AI/ML
      • Data Science
      • Apache Kafka on Kubernetes
    • Platform Engineering

      • DevOps
      • DevSecOps
      • Ansible automation for applications and services
    • Secure Development & Architectures

      • Security
      • Secure coding
  • Learn

    Featured

    • Kubernetes & Cloud Native
      Openshift icon
    • Linux
      Rhel icon
    • Automation
      Ansible cloud icon
    • AI/ML
      AI/ML Icon
    • View All Learning Resources

    E-Books

    • GitOps Cookbook
    • Podman in Action
    • Kubernetes Operators
    • The Path to GitOps
    • View All E-books

    Cheat Sheets

    • Linux Commands
    • Bash Commands
    • Git
    • systemd Commands
    • View All Cheat Sheets

    Documentation

    • Product Documentation
    • API Catalog
    • Legacy Documentation
  • Developer Sandbox

    Developer Sandbox

    • Access Red Hat’s products and technologies without setup or configuration, and start developing quicker than ever before with our new, no-cost sandbox environments.
    • Explore Developer Sandbox

    Featured Developer Sandbox activities

    • Get started with your Developer Sandbox
    • OpenShift virtualization and application modernization using the Developer Sandbox
    • Explore all Developer Sandbox activities

    Ready to start developing apps?

    • Try at no cost
  • Blog
  • Events
  • Videos

How to run FIS 2.0 application using source S2I deployment procedure

August 14, 2017
Chandra Shekhar Pandey
Related topics:
KubernetesJavaMicroservices
Related products:
Red Hat OpenShift Container PlatformRed Hat Fuse

Share:

    This article describes how to create and deploy an FIS 2.0 project using the s2i source workflow. It creates a project from scratch and using github repository one can deploy their FIS 2.0 camel and spring-boot based project to an Openshift environment. Below are the steps in the sequence, which should be followed to deploy the application easily.

    • Firstly, one should setup an Openshift environment with FIS image and templates as per doc https://access.redhat.com/documentation/en-us/red_hat_jboss_fuse/6.3/html-single/fuse_integration_services_2.0_for_openshift/.
    • Create a directory spring-boot somewhere in the local path. Now go to this folder.
    mkdir spring-boot
    
    cd spring-boot
    • Execute the following to download spring-boot archetype:
    mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate   -DarchetypeCatalog=https://maven.repository.redhat.com/ga/io/fabric8/archetypes/archetypes-catalog/2.2.195.redhat-000004/archetypes-catalog-2.2.195.redhat-000004-archetype-catalog.xml   -DarchetypeGroupId=org.jboss.fuse.fis.archetypes   -DarchetypeArtifactId=spring-boot-camel-xml-archetype   -DarchetypeVersion=2.2.195.redhat-000004
    • In github repo, create a new repository. Let's say we created 'testingAgain'. Copy the repository url.
    • Now create a local git repository and add the remote github url to the local git repo.
    git init
    
    git add *
    
    git commit -m "Added spring-boot project"
    
    git remote add origin https://github.com/1984shekhar/testingAgain.git
    
    git push origin master
    • On Openshift console, click on 'Add to Project'. One can find this on the top panel in the Openshift GUI.
    • In the 'Browse Catalog' search for spring. Select s2i-spring-boot-camel. This quickstart is a simple example of camel and spring-boot.
    • Once selected, we can set below parameters. While other parameters can be left as it is.
    Application Name: test-camel-spring-boot
    
    Git Repository URL: https://github.com/1984shekhar/sourceS2I_fis_example.git
    
    #Git Reference refers to brnach name or tag.
    
    Git Reference: master
    
    Application Version: 1.0
    • Click on Create, it will redirect to a different page.
    • Click on 'Go to overview' on that page.
    • Go to 'Applications -> Pods'- You should see a POD.
    test-camel-spring-boot-1-build with status Running.
    • Click on the Pod 'test-camel-spring-boot-1-build'.
    • Go to Logs tab. Scroll at the bottom, it will download artifacts.
    • Within a couple of minutes in logs, at last, you would find:
    Pushing [==================================================>] 142.2 MB
    
    Pushing
    
    Pushed
    
    latest: digest: sha256:756fe8a1b7fe53c174824c48b56d8b28e6ba48dadb9b9d0d4164ae76abebc58a size: 9646
    
    Push successful
    • Click on 'Go to overview' on that page.
    • We would see another pod like:
    test-camel-spring-boot-1-3k38z in Running phase.
    
    test-camel-spring-boot-1-build in Completed phase.
    • Pod test-camel-spring-boot-1-3k38z is an actual pod. Click on it and go to Logs tab.
    • We should see logs like:
    08:16:39.411 [Camel (camel) thread #0 - timer://foo] INFO simple-route - 477
    
    08:16:49.411 [Camel (camel) thread #0 - timer://foo] INFO simple-route - 497
    
    08:16:59.411 [Camel (camel) thread #0 - timer://foo] INFO simple-route - 289
    
    08:17:09.411 [Camel (camel) thread #0 - timer://foo] INFO simple-route - 872
    
    08:17:19.412 [Camel (camel) thread #0 - timer://foo] INFO simple-route - 401
    • Using oc client we can verify with the command:
    [cpandey@cpandey karaf-camel]$ oc get pods
    
    NAME  READY STATUS RESTARTS AGE
    
    test-camel-spring-boot-1-3k38z 1/1 Running 0 3mtest-camel-spring-boot-1-build 0/1 Completed 0  13m
    [cpandey@cpandey karaf-camel]$

    Whether you are new to Containers or have experience, downloading this cheat sheet can assist you when encountering tasks you haven’t done lately.

    Last updated: January 12, 2018

    Recent Posts

    • Cloud bursting with confidential containers on OpenShift

    • Reach native speed with MacOS llama.cpp container inference

    • A deep dive into Apache Kafka's KRaft protocol

    • Staying ahead of artificial intelligence threats

    • Strengthen privacy and security with encrypted DNS in RHEL

    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Products

    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform

    Build

    • Developer Sandbox
    • Developer Tools
    • Interactive Tutorials
    • API Catalog

    Quicklinks

    • Learning Resources
    • E-books
    • Cheat Sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site Status Dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2025 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Report a website issue