Code Monkey home page Code Monkey logo

goli's Introduction

Goli Action Helper

Goli

Get started

This program was implemented in order to have a kind of deployment adapted to people with a server that is not in an Azure, AWS etc. environment.

It is a very simple REST-API implemented in the Go language, which allows to perform actions in a server from a simple request.

What do you need to have before using this program (prerequisites)?

You need to have a server and have ubuntu running on it.

Configure your server to use Goli

You have juste to run the script setup.sh

./setup.sh

After this your "Goli Action Helper" is ready for use. Enjoy ;-)

Make a Test

curl -d 'auth_key=dummy_key' \
        -d 'name=hello_container' \
        -d 'image=dommy_image:latest' \
        -d 'network=host' \
        -d 'port_ex=9000' \
        -d 'port_in=80' \
        -d 'volume_ex=/var/log' \
        -d 'volume_in=/var/log' \
        -d 'v_map=yes' \

        -X POST \
        -H 'Content-Type: application/xwww-form-urlencoded' http://127.0.0.1:<host_port>/api/v1/docker/ps

Available Routers

        POST: /api/v1/docker/container/start 
        POST: /api/v1/docker/container/stop
	POST: /api/v1/docker/container/rm
	POST: /api/v1/docker/container/run
	POST: /api/v1/docker/container/pause
	POST: /api/v1/docker/container/unpause
	POST: /api/v1/docker/container/inspect
	POST: /api/v1/docker/container/logs

	POST: /api/v1/docker/image/rm
	POST: /api/v1/docker/image/pull

	POST: /api/v1/docker/ps
	POST: /api/v1/docker/images

goli's People

Contributors

kowalski2019 avatar

Stargazers

Franck Djiometio avatar  avatar Donald Donchi Fofack avatar

Watchers

 avatar

goli's Issues

looking for free port

The idea is to ask the user to use his own port or propose him to an auto generated port.
port = expr $RANDOM % 10000
tips: lsof -i -n -P | grep LISTEN | grep $port

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.