Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Add a readme
Browse files Browse the repository at this point in the history
Signed-off-by: Bill Maxwell <[email protected]>
  • Loading branch information
cloudnautique committed Dec 15, 2023
1 parent 22df23c commit a0a3094
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 17 deletions.
34 changes: 17 additions & 17 deletions Acornfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,20 @@ secrets: config: {
}

localData: instructions: """
## Overview

This will create the service from an existing MongoDB so that it can be swapped with the MongoDB container service.

## Instructions

fill in:
- address: the address of the MongoDB server (mongo.example.com)
- port: the port of the MongoDB server (27017)
- username: the username to use to connect to the MongoDB server
- password: the password to use to connect to the MongoDB server
- adminUsername: the username to use to connect to the MongoDB server as an admin
- adminPassword: the password to use to connect to the MongoDB server as an admin
- proto: the protocol to use to connect to the MongoDB server (mongodb or mongodb+srv)
- dbName: the name of the database to use
"""
## Overview
This will create the service from an existing MongoDB so that it can be swapped with the MongoDB container service.
## Instructions
fill in:

- address: the address of the MongoDB server (mongo.example.com)
- port: the port of the MongoDB server (27017)
- username: the username to use to connect to the MongoDB server
- password: the password to use to connect to the MongoDB server
- adminUsername: the username to use to connect to the MongoDB server as an admin
- adminPassword: the password to use to connect to the MongoDB server as an admin
- proto: the protocol to use to connect to the MongoDB server (mongodb or mongodb+srv)
- dbName: the name of the database to use
"""
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# MongoDB External

This repo is an Acorn for connecting external MongoDB instances to your application through the standardized MongoDB service interface. This allows you to swap out the containerized MongoDB instance for one that is hosted externally.

## Usage

This Acorn will prompt the user for the following information:

- address: the address of the MongoDB server (mongo.example.com)
- port: the port of the MongoDB server (27017)
- username: the username to use to connect to the MongoDB server
- password: the password to use to connect to the MongoDB server
- adminUsername: the username to use to connect to the MongoDB server as an admin
- adminPassword: the password to use to connect to the MongoDB server as an admin
- proto: the protocol to use to connect to the MongoDB server (mongodb or mongodb+srv)
- dbName: the name of the database to use

This information will be rendered into the Acorn service object.

If you run

```bash
acorn run -n mongodb-external ghcr.io/acorn-io/mongodb-external
```

It will require you to run:

```bash
acorn login mongodb-external
```

Which is the app name. This will trigger Acorn to prompt you.

## Examples

To see how to setup an application to use this Acorn, see the [examples](examples) directory.

0 comments on commit a0a3094

Please sign in to comment.