Giter Site home page Giter Site logo

xmm-docker's Introduction

Dockerfile for XMM

A Dockerfile to run XMM bot.

Setup

1. Install Docker

2. Create a folder for each bot.

Preferably your directory structure should look like this:

├── bot1
│   ├── Dockerfile
│   ├── xmm-bot.json
├── bot2
│   ├── Dockerfile
│   ├── xmm-bot.json
├── bot3
│   ├── Dockerfile
│   ├── xmm-bot.json  

3. Create xmm-config.json for XMM configuration.

A sample file is included here.

4. Create and launch docker container

Do this in each bot folder

Build the image docker build -t xmm:<BOTNAME> .

Run the container docker run -d xmm:<BOTNAME>

5. DONE

6. Stop the bot or container

Stop : docker kill <CONTAINER_ID>

Changing bot config

Everytime you change bot config, you need to create the image at step#4.

If you build the image with the same tag/name pair then old image will be dangling image. To remove all dangling images use docker images -q --filter dangling=true | xargs docker rmi

xmm-docker's People

Stargazers

Yuki Shichiku avatar

Watchers

Martin Utama avatar James Cloos 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.