lyoko

joined 1 year ago
[–] [email protected] 15 points 4 months ago* (last edited 4 months ago)

I have the same problem with navidrome so I've written a new Opensubsonic server in Rust with a permision model. You can check it out here: https://github.com/vnghia/nghe

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

In my experience, I found that rclone mount a crypt remote is not as stable as a direct mount. But I will try to do it again. Thank you very much !

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

I usually try different custom ROMs and have to format my phone frequently. Will that eSIM survive that format or not ?

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

How do you keep your Spotify recommendations update ? Don't you have to listen to songs on it to get updated recommendations ?

[–] [email protected] 1 points 1 year ago

That sounds like what I need. Thank you very much !

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

I dont think Ansible is a general templating engine ? I do templating for all most everything and not only docker compose, for example this for traefik configuration.

[–] [email protected] 1 points 1 year ago

so you are also generating the docker-compose from code. I think I am looking for something that aware of both templating and docker-compose deployment because right now, at the end of the day, I am still have to run docker-compose up -f ... while helm can do both templating and deployment.

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

I actually need more than merging. For example, right now my traefik.template will look like this:

[http.routers.{{ router_name }}]
  rule = "{{ router_rule }}"
  service = "{{ service_name }}"
  middlewares = [{{ middlewares | map("tojson") | join(", ") }}]
{% block router %}{% endblock %}
  [http.routers.{{ router_name }}.tls]
    certResolver = "leresolver_http"

{% if service_host is defined %}
[[http.services.{{ service_name }}.loadBalancer.servers]]
  url = "{{ 'https' if service_use_https is defined else 'http' }}://{{ service_host }}{{ ':' ~ service_port if service_port is defined else '' }}"
{% endif %}

and then one of my traefik.toml could look like this

{% extends "template/traefik.jinja" %}

{% set router_name = "dozzle" %}
{% set router_rule = "Host(`dozzle.example.com`)" %}
{% set service_name = "dozzle" %}
{% set service_host = "dozzle" %}
{% set service_port = 8080 %}
[–] [email protected] 2 points 1 year ago (1 children)

you mean nix the package manager ?

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

I know about Helm but I don't need k8s features and my VPS is just too weak for k8s I think :/

12
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 

Maybe this is a little bit off-topic. I would like to ask how you manage your dockerfile.

I have a git repo hosting my configurations (docker-compose, traefik, etc). Then, I have a python script that reads data from JSON, renders the placeholder inside these files (the {{replace_me}}) by an actual value and outputs them to another directory. Finally, I cd to that directory and run docker-compose up -f .... (This approach takes inspiration from the terraform templatefile)

That JSON file is generated by some terraform code, along with terraform code for other stuffs (storage bucket, vps, dns, etc).

It works well for me so far. Especially for:

  • templating traefik toml configuration (I like it a lot more than the label approach).
  • secret in the docker env file (so my docker.env file has the form of secrect={{secret}}.

I know most templating docker part can be replaced by directly interpolating with environment variables but I don't really like it because it seems environment variables are not persistent.

Do you have any suggestions for my workflow ? I am always feel a litte bit off about this approach.

Edit: Thank you for your suggestions. I will try k8s for edge computing and if it does not work really well, I will stick with my current approach.

[–] [email protected] 2 points 1 year ago

Yes you can. I add a window 11 iso to it as well

view more: next ›