{"id":21395419,"url":"https://github.com/klibio/io.klib.docker.osgi.tut","last_synced_at":"2025-03-16T14:26:15.295Z","repository":{"id":33644969,"uuid":"157607323","full_name":"klibio/io.klib.docker.osgi.tut","owner":"klibio","description":null,"archived":false,"fork":false,"pushed_at":"2022-01-21T23:30:04.000Z","size":73,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-01-23T01:44:43.442Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/klibio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-14T20:32:48.000Z","updated_at":"2019-10-14T15:00:09.000Z","dependencies_parsed_at":"2022-08-07T22:16:46.475Z","dependency_job_id":null,"html_url":"https://github.com/klibio/io.klib.docker.osgi.tut","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klibio%2Fio.klib.docker.osgi.tut","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klibio%2Fio.klib.docker.osgi.tut/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klibio%2Fio.klib.docker.osgi.tut/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klibio%2Fio.klib.docker.osgi.tut/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/klibio","download_url":"https://codeload.github.com/klibio/io.klib.docker.osgi.tut/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243880744,"owners_count":20362828,"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":[],"created_at":"2024-11-22T14:19:45.929Z","updated_at":"2025-03-16T14:26:15.269Z","avatar_url":"https://github.com/klibio.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OSGi enroute quickstart example\n\nThis is the [enroute quickstart tutorial](https://github.com/osgi/osgi.enroute) ...\n\n* Developed with bndtools in Eclipse,\n* Build with maven on TravisCI\n* Containerized to DockerHub\n\n[![Build Master](https://img.shields.io/badge/branch-master-brightgreen.svg)](https://github.com/klibio/io.klib.docker.osgi.tut/tree/master): \n[![Build Status Master branch](https://api.travis-ci.org/klibio/io.klib.docker.osgi.tut.svg?branch=master)](https://travis-ci.org/klibio/io.klib.docker.osgi.tut)\n\n[![Build develop](https://img.shields.io/badge/branch-develop-yellow.svg)](https://github.com/klibio/io.klib.docker.osgi.tut/tree/develop): \n[![Build Status Develop branch](https://api.travis-ci.org/klibio/io.klib.docker.osgi.tut.svg?branch=develop)](https://travis-ci.org/klibio/io.klib.docker.osgi.tut)\n\n[![Docker Hub](https://img.shields.io/badge/Docker%20Hub-io.klib.docker.osgi.tutorial-blue.svg)](https://hub.docker.com/r/klibio/io.klib.docker.osgi.tutorial/)\n\n# Pre-requisites\n\n* Docker installed on your local machine\n\n# How to consume\n\n\n````\ndocker pull klibio/io.klib.docker.osgi.tutorial\ndocker container run -p 8888:8080 klibio/io.klib.docker.osgi.tutorial\n````\nNow you can open a webbrowser on \nhttp://localhost:8888/quickstart/index.html\n=======\n\n````\ndocker pull klibio/io.klib.docker.osgi.tutorial\ndocker container run -p 8888:8080 klibio/io.klib.docker.osgi.tutorial\n````\nNow you can open a webbrowser on \nhttp://localhost:8888/quickstart/index.html\n\n# Digital Ocean Hosting\n\n## Step-by-Step:\n1. Create One-Click Droplet with Docker (preferred with SSH already deposited)\n2. Login either via root + password or via ssh key\n3. `docker pull klibio/io.klib.docker.osgi.tutorial:master-latest`\n4. `sudo ufw allow 8888/tcp Stackoverflow`\n5. `docker container run -d -p 8888:8080 klibio/io.klib.docker.osgi.tutorial:master-latest`\n\n## To add a SSH key to an existing droplet follow these steps:\n\n1. Change directory to where your public ssh key file is located\n2. `cat \u003cpublic_key_file\u003e | ssh root@\u003cdroplet_ip\u003e \"mkdir -p ~/.ssh \u0026\u0026 cat \u003e\u003e ~/.ssh/authorized_keys\"`\n3. To change this file, login via root and password\n4. `cat sshrsa_id_pub | ssh root@\u003cdroplet_ip\u003e \"mkdir -p ~/.ssh \u0026\u0026 cat \u003e\u003e ~/.ssh/authorized_keys\"`\n\n## Deployed containers\n\n### Hosted Container on DigitalOcean\n[master](http://68.183.72.62:8888/quickstart/index.html)\n[develop](http://68.183.72.62:8889/quickstart/index.html)\n\n# Microsoft Azure Hosting\n\n## Step-by-Step:\n1. Install Azure CLI [Install_Page](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest)\n2.  Use this command to login `az login -u \u003cusername\u003e -p \u003cpassword\u003e`\n3. Use this command to create/update the container \n````\naz container create \\\n--resource-group \u003cresgrp_name\u003e \\\n--name \u003ccontainer_name\u003e \\\n--image klibio/io.klib.docker.osgi.tutorial:develop-latest \\\n--dns-name-label \u003cname_label\u003e \\\n--ports 8080\n````\n\nBe careful, as azure container instances do NOT support port mapping. This feature will be implemented, but has not been yet. If you need this feature, a Ubuntu Server will be more usable. The dns contains the name label you desire as suffix. The prefix is determined by the location where you host the container instance on azure (f.e. \u003cname_labe\u003e.westeurope.azurecontainer.io)\n4. Wait for the container instance to be published. It will recieve an automatically associated ip and a dns adress. The DNS adress depends on the region in which the instance has been hosted and is unique.\n5. now you can connect to either \"\u003cdns_name\u003e:8080/quickstart/index.html\" or \"\u003cip_adress\u003e:8080/quickstart/index.html\"\n\nExample:\n[OSGI Tutorial](http://develop.westeurope.azurecontainer.io:8080/quickstart/index.html)\n\nTo update die container we first delete it and then redeploy it:\n\n````\naz container delete --resource-group klibio --name develop --yes \u0026\u0026 az container create --resource-group klibio --name develop --image klibio/io.klib.docker.osgi.tutorial:develop-latest --dns-name-label develop --ports 8080\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklibio%2Fio.klib.docker.osgi.tut","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fklibio%2Fio.klib.docker.osgi.tut","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklibio%2Fio.klib.docker.osgi.tut/lists"}