# httpd-ex **Repository Path**: uccps-samples/httpd-ex ## Basic Information - **Project Name**: httpd-ex - **Description**: An example application repository for the s2i httpd builder image - **Primary Language**: HTML - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-09-14 - **Last Updated**: 2024-08-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Apache HTTP Server (httpd) S2I Sample Application This is a very basic sample application repository that can be built and deployed on UCCPS using the [Apache HTTP Server builder image](https://gitee.com/uccps-samples/httpd-container). The application serves a single static html page via httpd. To build and run the application: ``` $ s2i build https://gitee.com/uccps-samples/httpd-ex centos/httpd:2.4 myhttpdimage $ docker run -p 8080:8080 myhttpdimage $ # browse to http://localhost:8080 ``` You can also build and deploy the application on uccps, assuming you have a working `oc` command line environment connected to your cluster already: `$ oc new-app openshift/httpd~https://gitee.com/uccps-samples/httpd-ex` You can also deploy the sample template for the application: `$ oc new-app -f https://raw.githubusercontent.com/uccps-samples/httpd-ex/master/openshift/templates/httpd.json` You can also deploy the sample offline,Clone to local and switch to this directory: `$ oc new-app openshift/httpd~./`