GithubHelp home page GithubHelp logo

peekops's Introduction

peekops

To take a peek on your Ops skills.

Objective

You will need to setup a set of servers based on the 'Architecture' section on this page. You can use your favourite tools to do so, and ideally the solution must be executed with single command bash solutions/run_solutions.sh. Once the servers are up, you will need to configure their target IP address into .env file that is generated by npm run init command and execute test command npm test. This command will run test cases that will assess your solutions.

Commands you will need to know:

npm install  # Install dependency
npm run init # copy base configuration file, you will need to configure environment file properly.
npm test     # Verify your solution.

Architecture

  • Web Server
    • Nginx
    • sshd
  • Application Server
    • Express based app
    • sshd
  • Database Server
    • Postgres
  • Cache Server
    • Redis

You will need to map target machines following this convention:

      +-------------+    +-------------+    +-------------+    +-------------+
      |             |    |             |    |             |    |             |
      |     Web     +----+ Application +----+   Database  +----+    Cache    |
      |             |    |             |    |             |    |             |
      +-------------+    +-------------+    +-------------+    +-------------+

The test will pick .env environment variable and use that to access the servers. Make sure to configure IP address properly.

     # Make sure to put correct IP addresses as it may change after reboot.
     WEB_TARGET_MACHINE=192.168.99.101
     APPLICATION_TARGET_MACHINE=192.168.99.102
     CACHE_TARGET_MACHINE=192.168.99.103
     DATABASE_TARGET_MACHINE=192.168.99.104

Test Cases

  • VMs/Servers setup.
  • Network and firewall configuration.
  • Code build and deployment.

Rule

  • Put your solutions under solutions directory.
  • Use any tool you need and that you are comfortable with.
  • You can use Vagrant or Docker to manage virtual machines. You can also use Terraform by completing solutions/main.tf
  • By default all port must be blocked except the one used by application.

Solutions

  • To run solutions, we should run bash solutions/run_solutions.sh.
  • Configure IP address properly in .env file.
  • Run npm test

peekops's People

Contributors

ruckuus avatar

Watchers

James Cloos avatar Mahyuddin 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.