Giter VIP home page Giter VIP logo

automatic-service-containerization's Introduction

Automatic Service Containerization with Docker

All the materials developed during the development of my research "Automatic Service Containerization with Docker", which is the basis of my master thesis and of a scientific paper that will be published posteriorly.

Instructions to replicate our study

  1. Download the main repository and its subprojects with:
git clone --recurse-submodules [email protected]:Raidenkyu/automatic-service-containerization.git
  1. change to the hermit/ directory and run:
npm run install-hermit
  1. change to the dockerfile-diff/ directory and run:
npm run install-dockerfile-diff
  1. To get a random project from GitHub, change to the projects-fetcher/ directory and run:
npm start

If you receive an error saying that the limit of requests was execeed, please wait some minutes before retrying. If the operation succeeds you can find a project in the file projects.csv.

  1. Navigate to the url of the project fetched in the previous step and clone the the respective project.

  2. Change to the directory of the project and see if the original dockerfile of the project is too complex to hermit or not. Then rate the status of the project in the projects dataset as accepted or discarded. If the project was discarded, you don't need to follow the remaining steps.

  3. Run hermit to generate the dockerfile with:

hermit -c -t <number of seconds to timeout>

Usually 10 seconds are enough.

  1. Now you should have both the original "Dockerfile" and "Dockerfile.hermit". To compare them and evaluate hermit's dockerfile run:
dockerfile-diff Dockerfile Dockerfile.hermit

If evaluation process ended without problems then update the "generation" column in the file projects.csv with "successful". If not update with "failed-build", but if you think that by running some installation commands it will work update with "require-extra-steps". In the case of "failed-build" then you can ignore the following instructions.

  1. To generate the file evaluations.csv the results collected by dockerfile-diff run:
dockerfile-diff print
  1. Change to the hermit-study/ directory and update the files projects.csv and evaluations.csv in the res/ directory with the versions that resulted from this experiment.

  2. Open hermit.ipynb in a Jupyter Notebook and analyse how the evaluations changed.

automatic-service-containerization's People

Contributors

raidenkyu 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.