Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App Submission: Formicaio #1565

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
39 changes: 39 additions & 0 deletions formicaio/docker-compose.yml
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

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.2.0-dind@sha256:f9f72ad901a78f27be922b2d320bbc263174f12919c1b37e6a01f828fa904565
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:0.0.2@sha256:16848c16e157dad3b0dcbb8adeca0ea1273aa004341a3395de4d91d491118075
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

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 37 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
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.0.2"
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: ""