Giter Site home page Giter Site logo

dataspects / mediawiki-manager Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 1.0 17.71 MB

Manage MediaWiki setups

Home Page: https://mwstake.org/mwstake/wiki/MWStake_MediaWiki_Manager

License: BSD 3-Clause "New" or "Revised" License

Shell 20.75% PHP 68.90% Smarty 10.36%
install operate switch upgrade backup restore snapshots mediawiki manage

mediawiki-manager's People

Contributors

bryandamon avatar lexsulzer avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

hexmode

mediawiki-manager's Issues

Make MWM container agnostic

You have been working on docker containers so, in as much as any of this works, it works on Docker already. Looking at the changes you madeit seems fairly straight-forward.

The “why” is to allow widespread adaption and adoption of this tool. I am not suggesting that you should be responsible for maintaining compatibility between every container available, but by initially targeting podman and docker, you have done a little bit of the work.

The “how” is by adding container-specific commands to a shell file that would be sourced to pull in the necessary commands. For example, docker-container.sh would have

function containerExec() {
    container=shift
    command=$@

    sudo docker exec $container$command”
}

function containerStart() {
    container=shift
    env=shift
    image=shift
    command=shift
    volMap=''

    for map in $@; do
        volMap=”$volMap --volume $mapdone
    sudo docker run --env-file $env $volMap —verbose $command
}

function packStart() {
    env=shift

    sudo docker-compose --env-file $env up -d
}

function packStop() {
    env=shift

    sudo docker-compose --env-file $env stop -d
}

A similar podman-container.sh file would look like this:

function containerExec() {
    container=shift
    command=$@

    podman exec $container$command”
}

function containerStart() {
    container=shift
    env=shift
    image=shift
    command=shift
    volMap=''

    for map in $@; do
        volMap=”$volMap --volume $mapdone
    podman run --env-file $env $volMap —verbose $command
}

function packStart() {
    env=shift
    name=shift

    . $env
    podman pod start $name
}

function packStop() {
    env=shift
    name=shift

    . $env
    podman pod stop $name
}

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.