Skip to content

April: 03

No major notes as of right now.

  • - Preparing Bun Docker Image.
  • - Astro CICD.
  • 11:40AM

    I am wondering if there might be a way to handle the static content within a certain scope but also still have the dynamic flexibility. Based upon the current setup, it seems that it might not be as easy as I would have thought. The first idea could be to route the traffic through the generic path and key setup, throw a cache header on it all but besides the dynamic end points. Execution of the initial deployment failed yesterday but I made some changes to the root repo. Even though I stated in the deployment to skip the yarn files, it seemed to continue to install and use it, so we just dropped it all. Sadly this is not going to be the path that we want to take, so I will have to stick with what I had originally planned.

  • 08:35PM

    Damn, another new show that has hooked me in! It feels like a warcraft dnd campaign, with the way they are setting up the world, environment and characters. Already getting ready for season 2, its getting there as well!

  • 10:34PM

    Plan as of right now, start with the astro static build. After the static build is done, we include the HTML comments for the minijinja crate. Once the build is done, we run a shell script that executes a series of sed commands to replace those commented sections aka formatting to Jinja. After the formatting is done, we can then run the minijinja build and have it output to a new folder.

The earnings for Tesla were terrible for the future of the company and its growth! I actually think part of the reason behind the slow down in the growth cycle would be the higher interest rates and the general brand image of Elon. While the fed could lower the rates, as they are already hinting at cutting the rates about three times this year, the brand image for Elon is going to be tough to repair.

Overall there has been no major shifts in the way we hold shares, I will try to poor man cover call them or push the strike price out as far as I can within reason.

If the company shares drop even to the low $100, we might actually switch to doing puts, because the value is there.


I am hoping that AAPL does spike back around to the mid $180s, but we might have to take a L and drop a couple hundred shares to fund our war chest! This will be a bit tough to work out, considering the cost for the food truck and its operations are going be expensive for the first couple months.


The next plan for this weekend will be to setup another instance of n8n and then finally close out the coolify instance , as we will migrate everything into the swarm. Once the swarm migration is complete, we can start to spin up the k8s cluster and begin our stateless adventures!


The bounty system is next in the chopping block for the summer, I want to pool in around $10,000 - $20,000 for the bounty rewards, with the goal of making it easier to solve the problems within this monorepo. I feel like once we get a couple new projects into this pipeline and have full featured functional products, aka FFF, rather than just basic MVPS, this would be the next logical step. As more open source projects are coming to the market, we will have to find a way to reward the users that contribute to our repo.


The message system is still under works! The plan is to extend out the API table and include a new webhook table. Hmm, this part of the journal is a bit of a mess to keep on record.


When building out the bun docker image, we have to take a look at the current eco-system around it, i.e websockets, and make sure that final image is production ready.

Our notes for Bun are inside of the Javascript section, incase you need a reference.

The official bun images are located here at their docker hub and for this test case we should take a look at their distroless.

It is under the tag of docker pull oven/bun:distroless but for the development cycle we might either use 1 or 1.1 as writing this.

The issue ticket of interest is here, which goes into the general structure of what we would want to do for our colyseus docker image.


To get started with adding the API route, lets make sure that the current rust build is fine locally, given the recent changes to the monorepo.

We will head over to the project.json for the rust_api_profile and see that the dev command is run, thus we will execute ./kbve.sh -nx rust_api_profile:run and that should place the API on port 3000. In this situation we want to make a new route, called actions and have it require that we pass the API token and followed by the path.

Under actions, we can create a sub-route called n8n, which will handle our n8n-based actions via the Rust API. Since we already have the tables created, we can have the path look up the ulid for the n8n webhook and then pass the information that is being sent over to it.

We already have an n8n instance up and running, so we can use that instance to help us manage our application.

While we do have an instance of n8n already running, this would be a good time to isolate the instances, with one being in development and the other in production.

version: '3.8'
services:
n8n:
hostname: n8n
image: n8nio/n8n:latest
container_name: n8n
restart: unless-stopped
deploy:
mode: replicated
replicas: 1
labels:
# Base Traefik Labels
- traefik.enable=true
- traefik.constraint-label-stack=n8n
- traefik.docker.network=public
- traefik.http.services.n8n.loadbalancer.server.port=5678
- traefik.http.routers.n8n.rule=Host(`automation.kbve.com`)
# HTTP
- traefik.http.routers.n8n_http.entrypoints=web
- traefik.http.routers.n8n_http.rule=PathPrefix(`/`)
- traefik.http.routers.n8n_http.service=n8n
# HTTPS
- traefik.http.routers.n8n_https.entrypoints=websecure
- traefik.http.routers.n8n_https.rule=PathPrefix(`/`)
- traefik.http.routers.n8n_https.service=n8n
- traefik.http.routers.n8n_https.tls=true
volumes:
-
networks:
- n8n
- rust
- public
networks:
n8n:
name: n8n
driver: overlay
attachable: true
rust:
external: true
public:
external: true

We can have the n8n public facing from the start but eventually we would want to proxy this out as a subfolder? Hmm.