Skip to content

Commit

Permalink
App Submission: Formicaio
Browse files Browse the repository at this point in the history
  • Loading branch information
bochaco committed Oct 2, 2024
1 parent 88d1b06 commit bc63c68
Show file tree
Hide file tree
Showing 6 changed files with 122 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.
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.1@sha256:d7c15f347a3daa8c0cf58a7d1ee7037d1af4590d64559746e15954437706caef

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

View workflow job for this annotation

GitHub Actions / Lint apps

Invalid image name "bochaco/formicaio:0.0.1@sha256:d7c15f347a3daa8c0cf58a7d1ee7037d1af4590d64559746e15954437706caef"

Error: HTTP 429 for bochaco/formicaio:0.0.1@sha256:d7c15f347a3daa8c0cf58a7d1ee7037d1af4590d64559746e15954437706caef: { "errors": [ { "code": "TOOMANYREQUESTS", "message": "You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit" } ] }
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.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 bc63c68

Please sign in to comment.