Organising Blender Scripts



Somehow, I’d ended up with Blender scripts scattered over a number of different folders across multiple machines. Most python scripts but also a new javascript and other files. As a result, I’d been struggling to find previous work (or specific functions) and generally getting frustrated.

I recently install a local gitea instance and today I finally got round to moving all my scripts to a single repository / folder structure. A simple readme markdown file helps me keep track of what is where…

Why didn’t I do this earlier!?! If you have any other tips for organising Blender scripts, please share them in the comments. image

Docker compose

Here’s the gitea docker-compose.yml… gitea.host.name, MSQL_HOSTNAME, MYSQL_PASSWORD, NAS_HOSTNAME are parameters to complete. The labels are to set up gitea with traefik. I must blog about traefik sometime…

version: "3"

services:
  gitea:
    image: gitea/gitea:1.18.1
    container_name: gitea
    environment:
      - USER=git
      - USER_UID=1000
      - USER_GID=1003
      - GITEA__server__ROOT_URL=https://gitea.host.name/
      - GITEA__server__START_SSH_SERVER=true
      - GITEA__server__SSH_PORT=22
      - GITEA__server__SSH_LISTEN_PORT=222
      - GITEA__database__DB_TYPE=mysql
      - GITEA__database__HOST=MYSQL_HOSTNAME:3306
      - GITEA__database__NAME=gitea
      - GITEA__database__USER=gitea
      - GITEA__database__PASSWD=MQSQL_PASSWORD
      - GITEA__service__DISABLE_REGISTRATION=true
    restart: unless-stopped
    networks:
      - proxy
    volumes:
      - giteaData:/data
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.gitea-secure.entrypoints=websecure"
      - "traefik.http.routers.gitea-secure.rule=Host(`gitea.host.name`)"
      - "traefik.http.services.gitea-service.loadbalancer.server.port=3000"
      - "traefik.docker.network=proxy"
      # SSH
      # https://stackoverflow.com/questions/66343265/ssh-not-working-using-gitea-on-docker-with-traefik
      - "traefik.tcp.routers.gitea-ssh.entrypoints=ssh"
      - "traefik.tcp.routers.gitea-ssh.rule=HostSNI(`*`)"
      - "traefik.tcp.routers.gitea-ssh.service=gitea-ssh-service"
      - "traefik.tcp.services.gitea-ssh-service.loadbalancer.server.port=222"

networks:
  proxy:
    external: true

volumes:
  giteaData:
    driver: local
    driver_opts:
      type: nfs
      o: addr=NAS_HOSTNAME,nolock,soft,rw
      device: :/volume1/storage/gitea

Comments