Coder Social home page Coder Social logo

docker-mojito's Introduction

Mojito Docker image

Description

This repo provides dockerization for box/mojito. If you want to know more about it, please refer to its README.

Build

There's an automated build linked on Docker Hub, which produces the following tags:

  • latest: full (webapp + CLI) package, launches webapp by default (see below)
  • cli: CLI-only package, uses mojito-cli as container entrypoint (see below)

Additionally, whenever a tag gets published, two more tags are produced:

  • <TAG>: full package
  • <TAG>-cli: CLI-only package

Full version

This version launches mojito webapp by default, but also includes the CLI.

In order for the webapp to work correctly, you should provide the following ENV variables:

  • MOJITO_DB_HOST: MySQL hostname (e.g. mysql)
  • MOJITO_DB_PORT: MySQL port (e.g. 3306)
  • MOJITO_DB_NAME: MySQL database name (e.g. mojito)
  • MOJITO_DB_USER: MySQL username (e.g. webapp)
  • MOJITO_DB_PASS: MySQL password (e.g. passw0rd)

Please notice that no defaults are provided.

CLI-only version

This version contains mojito-cli only, which is set as Docker entrypoint so that it can be used as follows:

docker run --rm mzuccala/mojito:cli create-repo -h

In order for the CLI to work correctly, you should provide the following ENV variables:

  • MOJITO_API_HOST: hostname where mojito webapp resides (e.g. localhost)
  • MOJITO_API_PORT: TCP port (e.g. 8080)
  • MOJITO_API_SCHEME: HTTP connection scheme (e.g. HTTP)
  • MOJITO_API_USER: mojito username (e.g. admin)
  • MOJITO_API_PASS: mojito password (e.g. ChangeMe)

Please notice that no defaults are provided.

Contributing

If you'd like to contribute, feel free to open a pull request and I'll take care of it ASAP!

docker-mojito's People

Contributors

mavimo avatar peteroruba avatar zuc 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.