dataspects / mediawiki-manager Goto Github PK
View Code? Open in Web Editor NEWManage MediaWiki setups
Home Page: https://mwstake.org/mwstake/wiki/MWStake_MediaWiki_Manager
License: BSD 3-Clause "New" or "Revised" License
Manage MediaWiki setups
Home Page: https://mwstake.org/mwstake/wiki/MWStake_MediaWiki_Manager
License: BSD 3-Clause "New" or "Revised" License
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 $map”
done
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 $map”
done
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
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.