{"id":18802296,"url":"https://github.com/oracle-quickstart/oci-couchbase","last_synced_at":"2025-04-13T18:31:29.343Z","repository":{"id":106379978,"uuid":"146033091","full_name":"oracle-quickstart/oci-couchbase","owner":"oracle-quickstart","description":"Terraform module to deploy Couchbase on Oracle Cloud Infrastructure (OCI)","archived":true,"fork":false,"pushed_at":"2020-06-15T23:46:51.000Z","size":5262,"stargazers_count":3,"open_issues_count":7,"forks_count":5,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-21T06:43:57.036Z","etag":null,"topics":["cloud","couchbase","nosql","oci","oracle","partner-led","syncgateway","terraform"],"latest_commit_sha":null,"homepage":"","language":"HCL","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/oracle-quickstart.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-24T19:42:21.000Z","updated_at":"2024-05-09T11:42:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"ec43efa3-8721-44fe-b7cc-bfa6d98f4fb6","html_url":"https://github.com/oracle-quickstart/oci-couchbase","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/oracle-quickstart%2Foci-couchbase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-quickstart%2Foci-couchbase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-quickstart%2Foci-couchbase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-quickstart%2Foci-couchbase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oracle-quickstart","download_url":"https://codeload.github.com/oracle-quickstart/oci-couchbase/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248760351,"owners_count":21157345,"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":["cloud","couchbase","nosql","oci","oracle","partner-led","syncgateway","terraform"],"created_at":"2024-11-07T22:27:23.278Z","updated_at":"2025-04-13T18:31:29.336Z","avatar_url":"https://github.com/oracle-quickstart.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# oci-couchbase\nThese are Terraform modules that deploy Couchbase Enterprise on Oracle Cloud Infrastructure (OCI). They are developed jointly by Oracle and Couchbase.\n\n* [simple](simple) is a Terraform module that will deploy Couchbase on OCI. Instructions on how to use it are below.  \n* [generator](generator) is a Python script that will create a Terraform module.  It can be used to generate more complex configurations that take advantage of MDS.\n\n## Prerequisites\nFirst off you'll need to do some pre deploy setup.  That's all detailed [here](https://github.com/oracle/oci-quickstart-prerequisites).\n\n## Clone the Module\nNow, you'll want a local copy of this repo.  You can make that with the commands:\n\n    git clone https://github.com/oracle-quickstart/oci-couchbase.git\n    cd oci-couchbase/simple\n    ls\n\nThat should give you this:\n\n![](./images/01%20-%20git%20clone.png)\n\nWe now need to initialize the directory with the module in it.  This makes the module aware of the OCI provider.  You can do this by running:\n\n    terraform init\n\nThis gives the following output:\n\n![](./images/02%20-%20terraform%20init.png)\n\n## Deploy\nNow for the main attraction.  Let's make sure the plan looks good:\n\n    terraform plan\n\nYou'll be prompted to enter a value for `var.adminPassword` if you haven't set a default in [variables.tf](./simple/variables.tf). That gives:\n\n![](./images/03%20-%20terraform%20plan.png)\n\nIf that's good, we can go ahead and apply the deploy:\n\n    terraform apply\n\nYou'll need to enter `yes` when prompted.  The apply should take about seven minutes to run.  Once complete, you'll see something like this:\n\n![](./images/04%20-%20terraform%20apply.png)\n\nWhen the apply is complete, the infrastructure will be deployed, but cloud-init scripts will still be running.  Those will wrap up asynchronously.  So, it'll be a few more minutes before your cluster is accessible.  Now is a good time to get a coffee.\n\n## Connect to the Cluster\nWhen the `terraform apply` completed, it printed out two values.  One of those is the URL to access Couchbase Server, the other one is for Couchbase Sync Gateway.  First, let's try accessing Server on port 8091 of the public IP.  You should see this:\n\n![](./images/05%20-%20server%20login.png)\n\nNow enter in the username (default `couchbase`) and password you specified in [variables.tf](./simple/variables.tf), or the value you entered when prompted if not defined in the file.  You should now have a view of your cluster and the services running.\n\n![](./images/06%20-%20server.png)\n\nCouchbase runs the admin interface on every node.  So, we could login to any node in the cluster to see this view.\n\nNext, let's access to Sync Gateway on port 4984 of its public IP.  You should see:\n\n![](./images/07%20-%20sync%20gateway.png)\n\n## SSH to a Node\nThese machines are using Oracle Enterprise Linux (OEL).  The default login is opc.  You can SSH into the machine with a command like this:\n\n    ssh -i ~/.ssh/oci opc@\u003cPublic IP Address\u003e\n\nCouchbase is installed under `/opt/couchbase/bin`.  You can debug deployments by investigating the cloud-init log file `/var/log/messages`.  You'll need to `sudo su` to be able to read it.\n\n![](./images/08%20-%20ssh.png)\n\n## View the Cluster in the Console\nYou can also login to the web console [here](https://console.us-phoenix-1.oraclecloud.com/a/compute/instances) to view the IaaS that is running the cluster.\n\n![](./images/09%20-%20console.png)\n\n## Destroy the Deployment\nWhen you no longer need the deployment, you can run this command to destroy it:\n\n    terraform destroy\n\nYou'll need to enter `yes` when prompted.  Once complete, you'll see something like this:\n\n![](./images/10%20-%20terraform%20destroy.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foracle-quickstart%2Foci-couchbase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foracle-quickstart%2Foci-couchbase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foracle-quickstart%2Foci-couchbase/lists"}