-
Notifications
You must be signed in to change notification settings - Fork 395
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
version: "3.7" | ||
Check notice on line 1 in formicaio/docker-compose.yml GitHub Actions / Lint appsPotentially using unsafe user in service "docker"
Check notice on line 1 in formicaio/docker-compose.yml GitHub Actions / Lint appsPotentially using unsafe user in service "formicaio"
|
||
|
||
services: | ||
|
||
app_proxy: | ||
environment: | ||
APP_HOST: formicaio_formicaio_1 | ||
APP_PORT: 8080 | ||
|
||
docker: | ||
image: docker:27.2.0-dind@sha256:f9f72ad901a78f27be922b2d320bbc263174f12919c1b37e6a01f828fa904565 | ||
privileged: true | ||
network_mode: host | ||
Check notice on line 13 in formicaio/docker-compose.yml GitHub Actions / Lint appsService "docker" uses host network mode
|
||
stop_grace_period: 1m | ||
restart: on-failure | ||
environment: | ||
DOCKER_ENSURE_BRIDGE: "dind0:10.32.0.1/16" | ||
entrypoint: /entrypoint.sh | ||
command: > | ||
dockerd | ||
--bridge dind0 | ||
--data-root /data/data | ||
--exec-root /data/exec | ||
--host unix:///data/docker.sock | ||
--pidfile /data/docker.pid | ||
volumes: | ||
Check notice on line 26 in formicaio/docker-compose.yml GitHub Actions / Lint appsMounted file/directory "/formicaio/data/docker" doesn't exist
|
||
- ${APP_DATA_DIR}/entrypoint.sh:/entrypoint.sh | ||
- ${APP_DATA_DIR}/data/docker:/data | ||
|
||
formicaio: | ||
image: bochaco/formicaio:0.0.1@sha256:d7c15f347a3daa8c0cf58a7d1ee7037d1af4590d64559746e15954437706caef | ||
Check failure on line 31 in formicaio/docker-compose.yml GitHub Actions / Lint appsInvalid image name "bochaco/formicaio:0.0.1@sha256:d7c15f347a3daa8c0cf58a7d1ee7037d1af4590d64559746e15954437706caef"
|
||
restart: on-failure | ||
stop_grace_period: 5s | ||
environment: | ||
DOCKER_SOCKET_PATH: /var/run/docker.sock | ||
DB_PATH: /data | ||
volumes: | ||
Check notice on line 37 in formicaio/docker-compose.yml GitHub Actions / Lint appsMounted file/directory "/formicaio/data/formicaio" doesn't exist
Check notice on line 37 in formicaio/docker-compose.yml GitHub Actions / Lint appsMounted file/directory "/formicaio/data/docker" doesn't exist
|
||
- ${APP_DATA_DIR}/data/formicaio:/data | ||
- ${APP_DATA_DIR}/data/docker:/var/run |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/bin/sh | ||
|
||
# This hack can be removed if https://github.com/docker-library/docker/pull/444 gets merged. | ||
|
||
# Remove docker pidfile if it exists to ensure Docker can start up after a bad shutdown | ||
pidfile="/var/run/docker.pid" | ||
if [[ -f "${pidfile}" ]] | ||
then | ||
rm -f "${pidfile}" | ||
fi | ||
|
||
# Use nftables as the backend for iptables | ||
for command in iptables iptables-restore iptables-restore-translate iptables-save iptables-translate | ||
do | ||
ln -sf /sbin/xtables-nft-multi /sbin/$command | ||
done | ||
|
||
# Ensure that a bridge exists with the given name | ||
ensure_bridge_exists() { | ||
local name="${1}" | ||
local ip_range="${2}" | ||
|
||
# Check if the bridge already exists | ||
if ip link show "${name}" &>/dev/null | ||
then | ||
echo "Bridge '${name}' already exists. Skipping creation." | ||
ip addr show "${name}" | ||
return | ||
fi | ||
|
||
echo "Bridge '${name}' does not exist. Creating..." | ||
ip link add "${name}" type bridge | ||
ip addr add "${ip_range}" dev "${name}" | ||
ip link set "${name}" up | ||
|
||
echo "Bridge '${name}' is now up with IP range '${ip_range}'." | ||
ip addr show "${name}" | ||
} | ||
|
||
if [[ "${DOCKER_ENSURE_BRIDGE}" != "" ]] | ||
then | ||
bridge="${DOCKER_ENSURE_BRIDGE%%:*}" | ||
ip_range="${DOCKER_ENSURE_BRIDGE#*:}" | ||
ensure_bridge_exists "${bridge}" "${ip_range}" | ||
fi | ||
|
||
exec dockerd-entrypoint.sh $@ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
manifestVersion: 1 | ||
id: formicaio | ||
name: Formicaio | ||
tagline: Il potere delle formiche | ||
icon: https://svgshare.com/i/1B0F.svg | ||
category: social | ||
version: "0.0.1" | ||
port: 52100 | ||
description: >- | ||
Le formiche sono insetti sociali che vivono in colonie e sono | ||
note per la loro organizzazione e cooperazione. | ||
Ants are social insects that live in colonies and are | ||
known for their organization and cooperation. | ||
Simplify your decentralized experience with this intuitive application, | ||
designed to streamline your daily tasks when running nodes from home | ||
on peer-to-peer (P2P) networks. Seamlessly participate in online | ||
communities using the integrated Nostr client, and manage your | ||
digital assets with ease through the built-in wallet. Receive, send, | ||
and store tokens, rewards, and coins earned from running nodes or received | ||
from third-party sources, all within a single, user-friendly interface. | ||
developer: bochaco | ||
website: https://github.com/bochaco/formicaio | ||
submitter: bochaco | ||
submission: https://github.com/getumbrel/umbrel-apps/pull/1565 | ||
dependencies: [] | ||
repo: https://github.com/bochaco/formicaio | ||
support: https://github.com/bochaco/formicaio/issues | ||
gallery: | ||
- 1.png | ||
- 2.png | ||
- 3.png | ||
releaseNotes: "" | ||
path: "" |