GithubHelp home page GithubHelp logo

abhishekpawl / mysite Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.33 MB

Personal Portfolio Website

Home Page: https://abhishekpawl.vercel.app/

HTML 1.93% JavaScript 64.89% CSS 32.79% Dockerfile 0.39%
react nodejs docker

mysite's Introduction

My Personal Portfolio Website

You can visit Here

UPDATE: go

Docker utility

To run the dockerized container of this app:

After cloning the repo:

  • In the root directory:
    1. To build the image from the Dockerfile, run
      docker image build --tag <IMAGE-NAME>:<tagname> .
      
    2. To run a docker container of the image and to:
      1. keep STDIN open even if not attached
      2. provide a tty
      3. run the container in detached mode
      4. [UPDATE: After uncommenting line 7 in Dockerfile] publish the exported ports (since it has been provided for in the Dockerfile), run
        docker container run -i -t -d -P <IMAGE-NAME>:<tagname>
        
    3. To retrieve the ID of the docker container, run
      docker container ls
      
      docker container ls The exposed port can be retrieved from here and the app will be hosted on the mentioned port. site
    4. To get into the container and the filesystem in interactive mode, run
      docker exec -it <CONTAINER-ID> sh
      
      or
      docker container attach <CONTAINER-ID>
      
      docker exec --it 'CONTAINER-ID' sh
    5. To stop and remove the container at once, run
      docker container rm -f <CONTAINER ID>
      

Docker Compose utility

A step ahead:

  • In the root directory:
    1. Now, with the docker-compose.yml file available can, run [Port to be exposed can be altered in the docker-compose.yml file]
      docker-compose up -d
      
    2. The information can be retrieved by the command
      docker-compose ps
      
    3. To undo all changes, run
      docker-compose down
      

mysite's People

Contributors

abhishekpawl avatar

Watchers

 avatar

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.