Coder Social home page Coder Social logo

ralph-docker's Introduction

Ralph Docker image configuration

Build docker container to Ralph application

Before running the script, you must change the configuration file.

Rename file config.json.example to config.json and chnage it:

"REPOSITORIES_TYPES": {
    "github": "https://github.com/%(fork)s/%(repo_name)s.git -b% (branch) s"
}

Set the url to clone repositories

In the key REPOSITORIES are all repositories that cloning at startup image

{
    "owner": "allegro"
    "default_branch": "develop"
    "type": "github"
    "repo_name": "django-bob"
}

owner - username from Github default_branch - default name of branch type - github (url from REPOSITORIES_TYPES) repo_name - the name of the repository

You can change the settings before starting for each repository by environmental variables

export RALPH_FORK = 'my_fork'
export RALPH_BRANCH = 'my_branch'

Then the image of Docker will be built with your changes

Build docker base image. Base image has the all packages to run Ralph:

sudo ./run.sh build base

Build docker os image. Os is the sample image data and prepared for scanning (ssh_linux, dns_hostname, snmp):

sudo ./run.sh build os

Initialize image:

sudo ./run.sh init os

Start container:

sudo ./run.sh start os
```

Open docker (/bin/bash):
```
sudo ./run.sh exec os
```

Upgrade Ralph to new version:
```
sudo ./run.sh upgrade os
```

See more information to Ralph installation: http://ralph.readthedocs.org/en/latest/installation.html 


It is an Open Source project provided on Apache v2.0 License.

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.