Compare commits

...

9 Commits
dev ... master

2 changed files with 14 additions and 14 deletions

View File

@ -1,13 +1,13 @@
# PiCluster
![Pic](https://git.pooper.social/verita84/picluster/raw/branch/master/images/piclusterLogo.png)
![Pic](https://git.poster.place/verita84/picluster/raw/branch/master/images/piclusterLogo.png)
PiCluster is a simple way to manage Docker containers on multiple hosts. I created this because I found Docker Swarm not that good and Kubernetes was too difficult to install currently on ARM. PiCluster will only build and run images from Dockerfile's on the host specified in the config file. This software will work on regular x86 hardware also and is not tied to ARM.
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0)
![Pic](https://git.pooper.social/verita84/picluster/raw/branch/master/images/picluster-mainscreen.png)
![Pic](https://git.poster.place/verita84/picluster/raw/branch/master/images/picluster-mainscreen.png)
## Features
@ -63,7 +63,7 @@ git clone -b dev https://git.rage.lol/verita84/picluster.git picluster
```
## Config file reference
[See Wiki](https://git.pooper.social/verita84/picluster/wiki/Config-Reference)
[See Wiki](https://git.poster.place/verita84/picluster/wiki/Config-Reference)
## Try PiCluster in Docker
@ -77,38 +77,38 @@ docker-compose up -d
Finally, in your web browser go to <http://127.0.0.1:3003>
## Installation
[See Wiki](https://git.pooper.social/verita84/picluster/wiki/Installation)
[See Wiki](https://git.poster.place/verita84/picluster/wiki/Installation)
## Container Load Balancer
[See Wiki](https://git.rage.lol/verita84/picluster/wiki/Container-Load-Balancer)
## Upgrading
[See Wiki](https://git.pooper.social/verita84/picluster/wiki/Upgrading)
[See Wiki](https://git.poster.place/verita84/picluster/wiki/Upgrading)
## Functions-as-a-Service (FAAS)
[See Wiki](https://git.pooper.social/verita84/picluster/wiki/Serverless-%28FaaS%29)
[See Wiki](https://git.poster.place/verita84/picluster/wiki/Serverless-%28FaaS%29)
<br>
## Configuring and using the command-line client "pictl"
[See Wiki](https://git.pooper.social/verita84/picluster/picluster/wiki/Pictl)
[See Wiki](https://git.poster.place/verita84/picluster/picluster/wiki/Pictl)
## SSL/TLS
[See Wiki](https://git.pooper.social/verita84/picluster/wiki/SSL-Configuration)
[See Wiki](https://git.poster.place/verita84/picluster/wiki/SSL-Configuration)
## Using pm2 to init PiCluster on systemd
[See Wiki](https://git.pooper.social/verita84/picluster/wiki/PM2)
[See Wiki](https://git.poster.place/verita84/picluster/wiki/PM2)
## Automatic Container failover to other hosts
[See Wiki](https://git.pooper.social/verita84/picluster/wiki/Automatic-Container-failover-to-other-hosts)
[See Wiki](https://git.poster.place/verita84/picluster/wiki/Automatic-Container-failover-to-other-hosts)
# Authors and Contributions
* Project created by [Verita84](https://git.pooper.social/verita84).
* Project created by [Verita84](https://git.poster.place/verita84).
* [TokinRing](https://github.com/TokinRing), core developer.

View File

@ -377,8 +377,8 @@ app.post('/run', (req, res) => {
systemd_remove(req.body.command);
}
}
res.json(output);
}
res.json(output);
}, err => {
if (err) {
console.error('error:', err);
@ -388,7 +388,7 @@ app.post('/run', (req, res) => {
});
function systemd(data) {
const systemd = ["[Unit]", "Description=Container", "After=podman.service", "[Service]", "Type=oneshot", "RemainAfterExit=yes", "Environment=\"NAME=", "ExecStartPre=/bin/sh -c \"/usr/bin/podman rm -f ${NAME}; exit 0;\"", "ExecStartPre=/bin/sh -c \"/usr/bin/podman build -t ${NAME} /docker/${NAME}; exit 0;\"", "podman run", "ExecStart=/bin/sh -c \"systemctl restart firewalld.service; exit 0;\"", "ExecStart=/bin/sh -c \"podman network reload -a; exit 0;\"", "ExecStop=/usr/bin/podman rm -f ${NAME}\"", "[Install]", "WantedBy=multi-user.target"];
const systemd = ["[Unit]", "Description=Container", "After=podman.service", "[Service]", "Type=oneshot", "RemainAfterExit=yes", "Environment=\"NAME=", "ExecStartPre=/bin/sh -c \"/usr/bin/podman rm -f ${NAME}; exit 0;\"", "ExecStartPre=/bin/sh -c \"/usr/bin/podman build -t ${NAME} " + config.docker + "/${NAME}; exit 0;\"", "podman run", "ExecStart=/bin/sh -c \"systemctl restart firewalld.service; exit 0;\"", "ExecStart=/bin/sh -c \"podman network reload -a; exit 0;\"", "ExecStop=/usr/bin/podman rm -f ${NAME}", "[Install]", "WantedBy=multi-user.target"];
var container_name = data.split(' ');
var name = container_name[container_name.length - 1];
@ -552,4 +552,4 @@ function additional_services() {
});
});
}
}
}