Sign inSign up

biarca/terraform-gcp-github

By biarca

•Updated over 9 years ago

fourty2q- terraform pre installations from gitHUB using Dockerfile

Image
0

368

biarca/terraform-gcp-github repository overview

⁠README

This README would normally document whatever steps are necessary to get your application up and running.

⁠What is this repository for?
  • This repo will set up a container of ubuntu 14.04.5 with all the prerequsites needed (like terraform/gcloud/kubectl) to run the terraform scripts.
⁠How do I get set up?

⁠Usage Notes

Build and run a container instance locally using the image with standard Docker commands. For example:

docker pull biarca/terraform-gcp-github
docker run -it --name mycontainer biarca/terraform-gcp-github /bin/bash

IMPORTANT: The current codebase has been tested through version 0.9.8 of Terraform.

In the container clone gitHub code of terraform by running the command below and pass gitHub username and password when prompted.

git clone https://github.com/vedamsgit/fourty2q.git

Before running terraform scripts, connect to GCP using the following command.

gcloud auth login

It will prompt you to continue and a link is generated. Open the link in the browser and signup with emailID of the GCP. Auth key is generated and copy the code in the container for verification.

⁠To run Terraform scipts

Generate ssh-key using the following command.

ssh-keygen -t rsa -f $HOME/.ssh/id_rsa -q -P ""

From the Cloned repository change directory to fourty2q/terraform_modules

⁠Use-case1: Combining of Portal and Portlets and pushing it to DockerHUB and GCP Container-registry

Change the directory to ssl_keygen_combi

Edit the parameters in the Terraform variables file "terraform.tfvars" For description of each and every variable, check the file "variable.tf"

⁠To run Terraform scipts

terraform get
terraform plan -out=terraform.plan
terraform apply terraform.plan

⁠Use-case2: Data Migration

Change the directory to ../data_migration

Edit the parameters in the Terraform variables file "terraform.tfvars" For description of each and every variable, check the file "variable.tf"

⁠To run Terraform scipts

terraform get
terraform plan -out=terraform.plan
terraform apply terraform.plan

⁠Use-case3: Provisioning of GKE with Portal/Portlets

Change the directory to ../gke_cluster

Edit the parameters in the Terraform variables file "terraform.tfvars" For description of each and every variable, check the file "variable.tf"

⁠To run Terraform scipts

terraform get
terraform plan -out=terraform.plan
terraform apply terraform.plan

⁠Use-case4: Deploying Portal/Portlets on GCE Instance and Creating GKE Cluster with GCE Instance as Backend

⁠This use case is the combination the above Use cases 2 and 3

Change the directory to ../all_in_one_gce

Edit the parameters in the Terraform variables file "terraform.tfvars" For description of each and every variable, check the file "variable.tf"

⁠To run Terraform scipts

terraform get
terraform plan -out=terraform.plan
terraform apply terraform.plan
⁠Who do I talk to?
  • Biarca and Team

Tag summary

Content type

Image

Digest

Size

185 MB

Last updated

over 9 years ago

docker pull biarca/terraform-gcp-github