Skip to content

Commit

Permalink
App Submission: Formicaio
Browse files Browse the repository at this point in the history
  • Loading branch information
bochaco committed Dec 16, 2024
1 parent 7151a3d commit dc14240
Show file tree
Hide file tree
Showing 6 changed files with 125 additions and 0 deletions.
Binary file added formicaio/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added formicaio/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added formicaio/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions formicaio/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
version: "3.7"

Check notice on line 1 in formicaio/docker-compose.yml

View workflow job for this annotation

GitHub Actions / Lint apps

Potentially using unsafe user in service "docker"

The default container user "root" can lead to security vulnerabilities. If you are using the root user, please try to specify a different user (e.g. "1000:1000") in the compose file or try to set the UID/PUID and GID/PGID environment variables to 1000.

Check notice on line 1 in formicaio/docker-compose.yml

View workflow job for this annotation

GitHub Actions / Lint apps

Potentially using unsafe user in service "formicaio"

The default container user "root" can lead to security vulnerabilities. If you are using the root user, please try to specify a different user (e.g. "1000:1000") in the compose file or try to set the UID/PUID and GID/PGID environment variables to 1000.

services:

app_proxy:
environment:
APP_HOST: formicaio_formicaio_1
APP_PORT: 8080

docker:
image: docker:27.4.0-dind@sha256:b0c1179ea32ad77bdb7b852b037e54b11022304c2f2662af1954ef53869314b2
privileged: true
network_mode: host

Check notice on line 13 in formicaio/docker-compose.yml

View workflow job for this annotation

GitHub Actions / Lint apps

Service "docker" uses host network mode

The host network mode can lead to security vulnerabilities. If possible please use the default bridge network mode and expose the necessary ports.
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

View workflow job for this annotation

GitHub Actions / Lint apps

Mounted file/directory "/formicaio/data/docker" doesn't exist

The volume "${APP_DATA_DIR}/data/docker:/data" tries to mount the file/directory "/formicaio/data/docker", but it is not present. This can lead to permission errors!
- ${APP_DATA_DIR}/entrypoint.sh:/entrypoint.sh
- ${APP_DATA_DIR}/data/docker:/data

formicaio:
image: bochaco/formicaio:latest@sha256:3c4285dc5bc751b74a8379e3653a86cd66333685198baed744457976a9cbab0d

Check warning on line 31 in formicaio/docker-compose.yml

View workflow job for this annotation

GitHub Actions / Lint apps

Invalid image tag "latest"

Images should not use the "latest" tag
privileged: true
restart: on-failure
stop_grace_period: 5s
environment:
DOCKER_SOCKET_PATH: /var/run/docker.sock
DB_PATH: /data
volumes:

Check notice on line 38 in formicaio/docker-compose.yml

View workflow job for this annotation

GitHub Actions / Lint apps

Mounted file/directory "/formicaio/data/formicaio" doesn't exist

The volume "${APP_DATA_DIR}/data/formicaio:/data" tries to mount the file/directory "/formicaio/data/formicaio", but it is not present. This can lead to permission errors!

Check notice on line 38 in formicaio/docker-compose.yml

View workflow job for this annotation

GitHub Actions / Lint apps

Mounted file/directory "/formicaio/data/docker" doesn't exist

The volume "${APP_DATA_DIR}/data/docker:/var/run" tries to mount the file/directory "/formicaio/data/docker", but it is not present. This can lead to permission errors!
- ${APP_DATA_DIR}/data/formicaio:/data
- ${APP_DATA_DIR}/data/docker:/var/run
devices:
- /dev:/dev
47 changes: 47 additions & 0 deletions formicaio/entrypoint.sh
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 $@
36 changes: 36 additions & 0 deletions formicaio/umbrel-app.yml
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

Check warning on line 5 in formicaio/umbrel-app.yml

View workflow job for this annotation

GitHub Actions / Lint apps

"icon" and "gallery" needs to be empty for new app submissions

The "icon" and "gallery" fields must be empty for new app submissions as it is being created by the Umbrel team.
category: social
version: "0.1.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: ""

0 comments on commit dc14240

Please sign in to comment.