Giter Site home page Giter Site logo

zulip / marketplace-partners Goto Github PK

View Code? Open in Web Editor NEW

This project forked from digitalocean/marketplace-partners

3.0 6.0 6.0 181 KB

Image validation, automation, and other tools for DigitalOcean Marketplace partners and Custom Image users

License: MIT License

Shell 100.00%

marketplace-partners's Introduction

Marketplace Partner Tools

MIT license Pull Requests Welcome

Image validation, automation, and other tools for DigitalOcean Marketplace partners and Custom Image users.

Screenshot

This repository includes bash scripts intended for use by Marketplace partners and Custom Image users to validate their images prior to submission, or use.

Build an Image Manually

If you're just getting started, build-an-image.md is where to begin. Some things here are required in your Fabric automation.

Build an Image with Fabric Automation

For repeatable image build processing, build-an-image-fabric.md is a good next step.

marketplace_validation

Provides a script img_check.sh that validates your build Droplet before shutting down to create a snapshot.

Supported Distributions

  • Debian 9.x (stretch)
  • Ubuntu 18.04 (LTS)
  • Ubuntu 16.04 (LTS)
  • CentOS 7.x
  • CentOS 6.x

This script checks build Droplet images against the following criteria:

  • Check for a supported distro and release
  • Check that all security updates are installed
  • Check for a populated bash_history file
  • Check for ssh_keys in the image
  • Check for pre-set passwords
  • Check that packages are updated
  • Check that a firewall is installed/configured
  • Check that a valid version of cloud-init is installed
  • Check for any populated log files or log archives

coming soon - Allow the script to be run against a disk image file on a Linux workstation by mounting and chrooting into the image.

The script img_check.sh can be used from within the image build system prior to creating a snapshot or exporting a disk image from Virtualbox, VMWare or a physical machine. The script is minimally invasive and designed to avoid changes to the disk. The one exception is that this script will update your apt or yum package database in order to identify if there are any uninstalled security updates.

To clear log files, bash_history, and authorized keys, you can use any file clearing method, including truncate against each result the script outputs, e.g.,

$ truncate --size 0 <path/to/file.log>

marketplace-partners's People

Contributors

akshaybengani789 avatar alexmv avatar centminmod avatar hackerkid avatar jgannondo avatar mateuszmandera avatar qrkourier avatar rijkvanzanten avatar ryanpq avatar wadenick avatar

Stargazers

 avatar  avatar  avatar

Watchers

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