Giter Club home page Giter Club logo

spe_mini_project's Introduction

SPE_mini_project

This is the github repo for the spe mini project, scientific calculator in java and CI/CD pipeline using jenkins.

1. About all the files

  1. Dockerfile - This file is reponsible for creating our calculator image from openjdk-11 base image.
  2. Jenkinsfile - This is the heart of the pipeline. Jenkinsfile is where we write all our pipeline scripts, stages and steps, to be executed to get a CI/CD pipeline for our mini project.
  3. Inventory - The inventory file is where we mention our ansible host machines in which we want to deploy our image and run the containers.
  4. plybk.yml - In this file, we write all the deployment steps, what we want to do with our host machines, i.e., pull image from dockerhub -> remove previous versions of images and containers -> run a new container with latest image.

NOTE - The inv file contains my local deployment servers while the inventory file contains my remote deoployment server. But this is not a good way, we can put these in a single file. The thing is, we can create groups in the inventory file itself for adding local servers and remote servers separately and access them using their groups.

for eg. - we can create two server groups as

[localServers] ... list of local servers

[remoteServers] ... list of remote servers

  1. copy_logs.sh - This is a shell script written to copy log files from the container in the local machine's Downloads directory. I have decided to run this as a script as i have to change the owner permission as well after "docker cp" , which if not done, wont't allow me to upload log file into elastic search. So i have written a sequence of commands to be executed after copying the log file.

2. How to run the entire project?

For this I have prepared an entire documentation of the project. Step by step instructions of setup and running the project. Resolving errors which I have faced during development alonf with screenshots. Please refer to the pdf I am sharing with you all - SPE Mini Project Documentation PDF

Making test commit on Apr 2 2023 9:08 AM Second test commit

spe_mini_project's People

Contributors

kay-rohit 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.