{"id":16413721,"url":"https://github.com/startxfr/docker-images-example-mongo","last_synced_at":"2026-06-13T13:32:01.152Z","repository":{"id":150318895,"uuid":"122792542","full_name":"startxfr/docker-images-example-mongo","owner":"startxfr","description":"Example of a mongodb database to use with startx s2i builder","archived":false,"fork":false,"pushed_at":"2019-03-20T09:21:00.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-06T13:34:02.198Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/startxfr.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-25T00:30:20.000Z","updated_at":"2019-03-20T09:21:01.000Z","dependencies_parsed_at":"2023-04-04T12:48:27.417Z","dependency_job_id":null,"html_url":"https://github.com/startxfr/docker-images-example-mongo","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/startxfr%2Fdocker-images-example-mongo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/startxfr%2Fdocker-images-example-mongo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/startxfr%2Fdocker-images-example-mongo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/startxfr%2Fdocker-images-example-mongo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/startxfr","download_url":"https://codeload.github.com/startxfr/docker-images-example-mongo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240450613,"owners_count":19803293,"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-10-11T06:52:12.008Z","updated_at":"2026-06-13T13:31:56.128Z","avatar_url":"https://github.com/startxfr.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg align=\"right\" src=\"https://raw.githubusercontent.com/startxfr/docker-images/master/travis/logo-small.svg?sanitize=true\"\u003e\n\n# docker-images-example-mongo\n\n\nExample of a simple Nosql database using the startx s2i builder [startx/sv-mongo](https://hub.docker.com/r/startx/sv-mongo). \nFor more information on how to use this image, **[read startx mongo image guideline](https://github.com/startxfr/docker-images/blob/master/Services/mongo/README.md)**.\n\n## Running this example in OKD (aka Openshift)\n\n### Create a sample application\n\n```bash\n# Create a openshift project\noc new-project startx-example-mongo\n# start a new application (build and run)\noc process -f https://raw.githubusercontent.com/startxfr/docker-images/master/Services/mongo/openshift-template-build.yml -p APP_NAME=myapp | oc create -f -\n# Watch when resources are available\nsleep 30 \u0026\u0026 oc get all\n```\n\n### Create a personalized application\n\n- **Initialize** a project\n  ```bash\n  export MYAPP=myapp\n  oc new-project ${MYAPP}\n  ```\n- **Add template** to the project service catalog\n  ```bash\n  oc create -f https://raw.githubusercontent.com/startxfr/docker-images/master/Services/mongo/openshift-template-build.yml -n startx-example-mongo\n  ```\n- **Generate** your current application definition\n  ```bash\n  export MYVERSION=0.1\n  oc process -n startx-example-mongo -f startx-mongo-build-template \\\n      -p APP_NAME=v${MYVERSION} \\\n      -p APP_STAGE=example \\\n      -p BUILDER_TAG=latest \\\n      -p SOURCE_GIT=https://github.com/startxfr/docker-images-example-mongo.git \\\n      -p SOURCE_BRANCH=master \\\n      -p MONGO_ROOT_PASSWORD=root_pwd \\\n      -p MONGO_USER=mongouser \\\n      -p MONGO_PASSWORD=mongouser_pwd \\\n      -p MONGO_STORES=example \\\n      -p MEMORY_LIMIT=256Mi \\\n  \u003e ./${MYAPP}.definitions.yml\n  ```\n- **Review** your resources definition stored in `./${MYAPP}.definitions.yml`\n- **build and run** your application\n  ```bash\n  oc create -f ./${MYAPP}.definitions.yml -n startx-example-mongo\n  sleep 15 \u0026\u0026 oc get all\n  ```\n- **Test** your application\n  ```bash\n  oc describe route -n startx-example-mongo\n  curl http://\u003curl-route\u003e\n  ```\n\n## Running this example with source-to-image (aka s2i)\n\n### Create a sample application\n\n```bash\n# Build the application\ns2i build https://github.com/startxfr/docker-images-example-mongo startx/sv-mongo startx-mongo-sample\n# Run the application\ndocker run --rm -d -p 8777:27017 startx-mongo-sample\n# Test the sample application\ntelnet -h localhost 8777\n```\n\n### Create a personalized application\n\n- **Initialize** a project directory\n  ```bash\n  git clone https://github.com/startxfr/docker-images-example-mongo.git mongo-myapp\n  cd mongo-myapp\n  rm -rf .git\n  ```\n- **Develop** and create a personalized page\n  ```bash\n  cat \u003c\u003c \"EOF\"\n  {\"field\":\"name\"}\n  EOF \u003e data.json\n  ```\n- **Build** your current application with startx mongo builder\n  ```bash\n  s2i build . startx/sv-mongo:latest startx-mongo-myapp\n  ```\n- **Run** your application and test it\n  ```bash\n  docker run --rm -d -p 8777:27017 startx-mongo-myapp\n  ```\n- **Test** your application\n  ```bash\n  telnet -h localhost 8777\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstartxfr%2Fdocker-images-example-mongo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstartxfr%2Fdocker-images-example-mongo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstartxfr%2Fdocker-images-example-mongo/lists"}