Giter VIP home page Giter VIP logo

goss's Introduction

Goss

Build Status License: MIT

Goss is a YAML based serverspec alternative tool for validating a server’s configuration. It eases the process of writing tests by allowing the user to generate tests from the current system state. Once the test suite is written they can be executed, waited-on, or served as a health endpoint.

Usage:

Setup:

# cd into the directory with your Dockerfile and build your image.
docker build -t MyApp .

Create tests:

# This is an example for a docker image named MyApp:
docker run --rm -it \
    -v "$(pwd)":/goss \
	-v /tmp:/tmp \
    -v /var/run/docker.sock:/var/run/docker.sock \
    dsuite/goss dgoss edit MyApp

goss a process MyApp
goss a user root
goss a user user2
goss a file /dir
goss a file /dir/file
goss a http http://localhost:8080
exit

# this will generate a goss.yaml file in your current folder.

See the Goss manual for more details

Run tests:

docker run --rm -it \
    -v "$(pwd)":/goss \
	-v /tmp:/tmp \
    -v /var/run/docker.sock:/var/run/docker.sock \
    dsuite/goss dgoss run MyApp

More examples:

Whant to see goss in action, visit goss-examples

goss's People

Contributors

hexosse avatar

Watchers

 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.