{"id":15600636,"url":"https://github.com/flopezag/openshift-nginx","last_synced_at":"2025-03-29T12:23:18.602Z","repository":{"id":80957829,"uuid":"143179293","full_name":"flopezag/openshift-nginx","owner":"flopezag","description":"Dockerfile description of the NGINX in order to install and configure FIWARE Wirecloud in OpenShift","archived":false,"fork":false,"pushed_at":"2018-08-13T10:13:49.000Z","size":18,"stargazers_count":1,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-04T13:27:48.352Z","etag":null,"topics":["fiware","kubernetes-deployment","nginx","openshift"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flopezag.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-01T16:08:40.000Z","updated_at":"2019-02-28T07:16:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"fdd3f0c2-c392-4f30-88d5-101139b76cac","html_url":"https://github.com/flopezag/openshift-nginx","commit_stats":{"total_commits":14,"total_committers":2,"mean_commits":7.0,"dds":0.0714285714285714,"last_synced_commit":"42832039ca6ef3fc882f754144c011b9a6e19df3"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flopezag%2Fopenshift-nginx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flopezag%2Fopenshift-nginx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flopezag%2Fopenshift-nginx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flopezag%2Fopenshift-nginx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flopezag","download_url":"https://codeload.github.com/flopezag/openshift-nginx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246182311,"owners_count":20736732,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fiware","kubernetes-deployment","nginx","openshift"],"created_at":"2024-10-03T02:05:13.828Z","updated_at":"2025-03-29T12:23:18.584Z","avatar_url":"https://github.com/flopezag.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenShift NGINX\n[![License badge](https://img.shields.io/badge/license-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\nDockerfile description and OpenShift configuration file of the NGINX in order to \ncreate a docker image and deploy a corresponding NGINX instance to connect to \nFIWARE Wirecloud in an OpenShift environment.\n\n## Create the Docker Image\n\nIn order to create the proper image you need to have installed docker engine.\nThe first command is used to generate the docker image from the defined Dockerfile.\n\n```console\ndocker build -f Dockerfile -t flopez/nginx:latest .\n```\n\nIt creates the corresponding docker image tagged with flopez/nginx. The next step is\nupload the image into a repository (in our case [Docker Hub](https://hub.docker.com/)).\nWe need to login into our user:\n\n```console\ndocker login\n```\n\nAnd them push the new created image into our repository\n\n```console\ndocker push flopez/nginx:latest\n```\n\n## OpenShift deployment\n\nTo start to work with OpenShift, you need to be registered in the corresponding \nenvironment.\n\n```console\noc login \u003cOpenShift server\u003e\n```\n\nThis command will request you the username and password to access to the proper \nOpenShift environment. Now, to deploy a new application based on the current \nconfiguration files, the first step is the creation of the proper application in \nthe OpenShift environment. Just execute the command:\n\n```console\noc new-app -e WIRECLOUD_SERVER=\u003chostname of wirecloud service\u003e flopez/nginx:latest --name nginx -o yaml \u003e nginx.yaml\n```\n\nKeep in mind that it is needed to specify the wirecloud server hostname inside \nthe OpenShift environment in order to know to which Server we should redirect \nthe corresponding requests. The docker image flopez/nginx is deployed publicly\nin [Hub Docker public repository](https://hub.docker.com/r/flopez/nginx/). This \noperation will create the definition of the new application *nginx* with the \ncorresponding yaml description file. We do not use this created description file \nbut the one that we provided, due to we need to edit the content. You can compare \nthe content inside [config folder](https://github.com/flopezag/openshift-nginx/tree/develop/config) \nfolder with the generated one to see the differences. Finally, keep in mind that \nin OpenShift the hostname has the format:\n\n```text\n\u003cservice name\u003e.\u003cproject name\u003e.svc\n```\n\nFurthermore, to deploy our *nginx* application just execute the corresponding \ncommand:\n\n```console\noc create -f config/\n```\n\nLast but not least, if we want to delete completely all the resources generated \nwith these configuration files, just execute the corresponding command, specifying \nthe name of the application that was created in the execution of the ```oc new-app``` \ncommand:\n\n```console\noc delete all -l app=nginx\n```\n\n## License\n\nThese scripts are licensed under Apache License 2.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflopezag%2Fopenshift-nginx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflopezag%2Fopenshift-nginx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflopezag%2Fopenshift-nginx/lists"}