Giter Site home page Giter Site logo

tyke.io's Introduction

1.	Launched an Ec2 instance (Amazon Linux 2 AMI) in AWS
2.	Sudo yum update – updated the Instance
3.	Sudo yum install Docker – Installed Docker
4.	In /opt – a folder has created with Name ‘tyke’
5.	All the required file were saved in this folder
6.	The files are
a.	Dockerfile
b.	Default.conf
c.	Gen-certificate.sh
d.	sample.html
7.	Dockerfile is used to create image with all the required information
8.	Nginx webserver is considered and replaced default.conf (only run on default port :80) with customized default.conf
9.	A shell script has provided with the simple command ‘openssl’ inorder to generate self-signed certificate
10.	Image is build with command ‘Docker build -t tyke .’ (-t refer to tag name for the image)
11.	A container has created with command ‘docker run -it -p 8880:80 -p 8443:443 tyke’ (-it refers to interactive and -p refers to port)
12.	Paste Public IP from AWS with localhost:8880 which opens the web page with ‘tyke.io rocks IoT’
13.	https://localhost:8443 with certificate

Image can be build in localhost and run the container

References used

https://www.jamescoyle.net/how-to/1073-bash-script-to-create-an-ssl-certificate-key-and-request-csr
https://www.nginx.com/resources/wiki/start/topics/examples
https://docs.docker.com/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.