Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REST service: Containerization, Docker #2

Open
wants to merge 65 commits into
base: master
Choose a base branch
from

Conversation

Ihar-dev
Copy link
Owner

@Ihar-dev Ihar-dev commented Jul 19, 2022

  1. Task: https://github.com/AlreadyBored/nodejs-assignments/blob/main/assignments/containerization/assignment.md
  2. Screenshots:
    screenshot 891
    screenshot 873
  3. Done: 31.07.2022 / deadline 31.07.2022
  4. Score: 180/180
    Basic Scope
    +20 Readme.md has instruction how to run application
    +30 user-defined bridge is created and configured
    +30 container auto restart after crash
    +20 application is restarting upon changes implemented into src folder
    +30 database files and logs to be stored in volumes instead of container
    Advanced Scope
    +20 Final size of the Docker image with application is less than 500 MB
    +10 Implemented npm script for vulnerabilities scanning (free solution)
    +20 Your built image is pushed to DockerHub

Installation:

Use your terminal command line interface

$ git clone https://github.com/Ihar-dev/nodejs2022Q2-service.git
or
$ git clone git@github.com:Ihar-dev/nodejs2022Q2-service.git

then
$ cd nodejs2022Q2-service
$ git checkout containerization-docker

also you need docker to be installed and started
https://www.docker.com/get-started/

How to Use The Application:

$ docker-compose up
or
$ docker-compose up -V --build

Testing:

in an additional terminal after the application starting
$ cd nodejs2022Q2-service
$ npm i
$ npm run test

Scanning the image for vulnerabilities:

in an additional terminal after the application starting
$ cd nodejs2022Q2-service
$ npm run scan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants