Git Product home page Git Product logo

s2i-tomcat's Introduction

Creating a S2I Tomcat builder image

Getting started

Creating the application image

The application image combines the builder image with your applications source code, which is served using whatever application is installed via the Dockerfile, compiled using the assemble script, and run using the run script. The following command will create the application image:

s2i build test/test-app s2i-tomcat s2i-tomcat-app

Running the application image

Running the application image is as simple as invoking the docker run command:

docker run -d -p 8080:8080 s2i-tomcat-app

The application, which consists of a simple static web page, should now be accessible at http://localhost:8080.

How to use in a openshift cluster

1. import s2i-tomcat image to openshift
oc import-image (you repository host)/s2i-tomcat:lastest -n openshift --confirm --insecure
2. edit image stream ,add annotation tags
oc edit is/tomcat-s2i -n openshift
tags:
    - annotations:
        description: >-
                  Build and run Tomcat applications on CentOS 7. For more information
                  about using this builder image, including OpenShift considerations,
                  see https://github.com/silentwu/s2i-tomcat.git.
        iconClass: icon-wildfly
        openshift.io/display-name: Tomcat 8.5.24
        openshift.io/provider-display-name: 'Rabbit blog, http://blog.xianshiyue.com'
        sampleRepo: 'https://gitee.com/silentwu/openshift-tomcat.git'
        supports: 'tomcat:8.5.24,jee,java'
        tags: 'builder,tomcat,java'
        version: 8.5.24

s2i-tomcat's People

Contributors

silently9527 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.