{"id":15099708,"url":"https://github.com/odennav/docker-card-site","last_synced_at":"2026-02-13T13:47:15.630Z","repository":{"id":222748092,"uuid":"758269464","full_name":"odennav/docker-card-site","owner":"odennav","description":"Automate deployment of Card website with Docker.","archived":false,"fork":false,"pushed_at":"2024-06-25T11:53:47.000Z","size":4248,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-15T00:45:50.832Z","etag":null,"topics":["automation","bash-script","deployment","docker","dockerfile","dockerhub","html-css-javascript","html5","nginx-image","vagrant"],"latest_commit_sha":null,"homepage":"https://www.tooplate.com/view/2109-the-card","language":"JavaScript","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/odennav.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":"2024-02-16T00:29:24.000Z","updated_at":"2024-06-25T11:53:50.000Z","dependencies_parsed_at":"2024-09-15T18:22:49.504Z","dependency_job_id":null,"html_url":"https://github.com/odennav/docker-card-site","commit_stats":null,"previous_names":["odennav/nginx-card","odennav/docker-card-site"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/odennav/docker-card-site","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odennav%2Fdocker-card-site","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odennav%2Fdocker-card-site/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odennav%2Fdocker-card-site/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odennav%2Fdocker-card-site/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/odennav","download_url":"https://codeload.github.com/odennav/docker-card-site/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odennav%2Fdocker-card-site/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29408334,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["automation","bash-script","deployment","docker","dockerfile","dockerhub","html-css-javascript","html5","nginx-image","vagrant"],"created_at":"2024-09-25T17:26:20.377Z","updated_at":"2026-02-13T13:47:15.609Z","avatar_url":"https://github.com/odennav.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deploying the Card website with Docker\n\nDeployment automated with bash scripts in Test environment.\n\n\n******************\n![](https://github.com/odennav/nginx-card/blob/master/docs/the-card.jpg) \n\n\n## Getting Started\n\n\nInstall [Terraform](https://developer.hashicorp.com/terraform/install) in your local machine\n\nInstall [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html) in your local machine\n\n```bash\nsudo apt install curl unzip\ncurl \"https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip\" -o \"awscliv2.zip\"\nunzip awscliv2.zip\nsudo ./aws/install -i /usr/local/aws-cli -b /usr/local/bin\n```\n\nConfirm the AWS CLI installation\n```bash\naws --version\n```\n\nClone this repository in your local machine\n```bash\ncd /\ngit clone git@github.com:odennav/docker-card-site.git\n```\n\nExecute these Terraform commands sequentially in your local machine to create the AWS VPC(Virtual Private Cloud) and EC2 instances.\n\nInitializes terraform working directory\n```bash\ncd docker-card-site/terraform\nterraform init\n```\n\nValidate the syntax of the terraform configuration files\n```bash\nterraform validate\n```\n\nCreate an execution plan that describes the changes terraform will make to the infrastructure\n```bash\nterraform plan\n```\n\nApply the changes described in execution plan\n```bash\nterraform apply -auto-approve\n```\n\nCheck AWS console for instances created and running\n\n**SSH Access**\n\nUse `.pem` key from AWS to SSH into the public EC2 instance. IPv4 address of public EC2 instance will be shown in terraform outputs.\n```bash\nssh -i private-key/terraform-key.pem ec2-user@\u003cipaddress\u003e\n```\n   \nClone this repository to the `docker build` machine provisioned and install git in VM.\n\n```bash\nsudo apt-get install git\ngit clone https://github.com/odennav/docker-card-site.git\ncd docker-card-site\n```\n\nDownload HTML template from `Tooplate` and extract webfiles to working directory\n```bash\ncd bash-scripts/\nbash get_html.sh\n```\nRun script to automate deployment of the `Card` website \n```bash\ncd bash-scripts/\nbash nginx_card_deploy.sh\n```\n\n### Clean Up Deployment(Optional)\n\nDelete docker images and containers used to host the website\n```bash\ncd bash-scripts/\nbash clean_up.sh \n```\n-----\n\nSpecial thanks to [Tooplate](https://https://www.tooplate.com/) for free HTML templates\n\n-----\n\nCool Deployment!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fodennav%2Fdocker-card-site","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fodennav%2Fdocker-card-site","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fodennav%2Fdocker-card-site/lists"}