Luckyfriend222

joined 1 year ago
[–] [email protected] 1 points 1 month ago (1 children)

Sorry, reread your post. I am indeed wrong. My entity control is done with script like turning porch light on, so that is why I have it in my widget. It is a script. Sorry about that.

[–] [email protected] 1 points 1 month ago (3 children)

Did you see the widget is back in HA on iOS18?

[–] [email protected] 2 points 2 months ago (1 children)

He is probably talking about light switches like a porch light or garage light that you want quick access to when you get home and for some reason your automation never switched it on, so you want to quickly access it on a homescreen via a widget, and not have to go into the app and search through multiple dashboards etc. His use case and therefor his question is totally valid.

[–] [email protected] 2 points 2 months ago

Never used it, but checked iOS widget now, and you are correct. It only gives options to three things: Ask AI, Actions, and open page. Nothing else on my iOS.

[–] [email protected] 2 points 3 months ago

I use this too. When SNMP is set up there are loads of things you can monitor with LibreNMS. Much less of a learning curve than Grafana + Prometheus, although the latter probably has some nice tweaks available that SNMP does not provide.

[–] [email protected] 5 points 4 months ago

Not a dad joke per say but:

What is the difference between a sperm cell and a lawyer?

A sperm cell has a one-in-a-billion chance of becoming human one day.

[–] [email protected] 4 points 5 months ago (1 children)

Thank you for showing me SearXNG. I will definitely be looking into it, and once comfortable maybe even host one internally.

[–] [email protected] 8 points 6 months ago

She uses Arch btw

[–] [email protected] 2 points 11 months ago
[–] [email protected] 10 points 11 months ago (1 children)

I understand what you mean. Thank you for taking the time to answer. I appreciate it.

 

Hi everyone

I have read through the documentation now several times, and I just want to soundboard something with someone. Regarding the environments we can set up. Is this meant for example as a production cluster and a dev cluster? And if so, is it possible to put a docker swarm cluster in there? I don't see how gitlab will 'know' how to deploy an application to docker swarm? What am I missing? Or am I better off just deploying "manually" via the CI/CD pipeline like I am doing now?

TIA

 

Hi community

I have a pipeline where a stack (service) is deployed to my docker swarm. I want to use $CI_PROJECT_NAME in my docker service definition file to define the docker service name. But it seems the variable is not being expanded, or something else is wrong. I need to have a generic yml so I can distribute this to all devs and they don't have to change anything.

Example of what I am trying to achieve:

version: '3.9'
services:
  $CI_PROJECT_NAME:
    image: myregistry/devops1/$CI_PROJECT_NAME/$CI_PROJECT_NAME:latest
    deploy:
      replicas: 3
      endpoint_mode: dnsrr
      update_config:
        parallelism: 1
        delay: 3s
        order: start-first
        failure_action: rollback
        monitor: 1m
      restart_policy:
        max_attempts: 3
      placement:
        max_replicas_per_node: 1
    networks:
      - microservices
    volumes:
      - apache-logs:/var/log/

networks:
  microservices:
    external: true


volumes:
  apache-logs:
    driver: local
    driver_opts:
      o: bind
      device: /mnt/swarm_shared/services/$CI_PROJECT_NAME
      type: none

I know this is not a docker forum, but was thinking the issue is with my pipeline rather than my docker compose file. I would appreciate any help I can get. TIA

EDIT: As per this community post I used a sed replacement command to solve my problem. Ugly, but functional.

Thanks for the input!

view more: next ›