Back to the channels
#primate
- blue hi phaleth
- blue primate 0.40 will be out today, god willing :P
- phaleth hi blue
- blue hi
- phaleth ok, anything useful for repopack there?
- blue yes. almost all of it is for repopack. async schemas, collocated route pages, and a few other small things
- blue most of the things will allow us to reduce repetition and code in repopack
- blue btw, I did some speed tests yesterday on primate-web.repopack.app
- blue so in frankfurt the load time is 100ms, london 300ms, but it gets higher to around 1s in washington d.c. and highest is sydney, 3s
- blue we need to start things of regions at some point
- blue start thinking*
- phaleth nice
- phaleth heh, yeah, thinking big
- phaleth freebsd should make things faster, the interwebz will be like "oh, I communicate with a freebsd server, huh, I better go fast"
- blue exactly
- blue no more this linux nonsense
- phaleth freebsd images seem to be quite large
- blue yeah, they pack a lot of stuff inside
- blue superarch is supposed to reduce that
- phaleth yeah, luckily image layers are re-usable
- blue true
- phaleth yo big error
- phaleth blue: I've tried to deploy the repopack site on freebsd https://upaste.de/raw/9ib
- phaleth postgres also looks problematic
- blue phaleth: wow
- phaleth heh
- phaleth gotta try linux containers
- blue heh
- blue anyway, I'm preparing the 0.40 release
- blue it's almost done, then I can update RP
- phaleth ok
- phaleth I'm building podman from source in a VBox VM, it's taking forever
- blue why are you doing that?
- phaleth just to see what I get
- blue k
- phaleth the pkg for podman on freebsd is little bit dated, but not too bad
- blue we'll fix that in superarch
- blue no more dated nonsense, just rollin' all the way to the bank
- blue oh man we really need to move the primate website to repopack finally. doing it manually kills me
- blue this is the first thing I'm gonna do when RP goes beta
- blue I just wanna hit a button, or better, do it automatically on commits
- phaleth it's like 3 commands?
- blue yes but it's 3 commands I have to remember and/or write somewhere
- blue I don't do it that often so it's just opening a new tab in tmux and just hitting the up arrow
- blue probably should put it into a script and be done with it
- blue oh great, it's not in the history anymore :(
- blue I guess it's time to look at the irc logs
- phaleth heh, no
- blue ah, found it
- phaleth curl --silent -X POST \
- phaleth "http://127.0.0.1:8080/v1.0/libpod/local/build?t=localhost/primate-site-runtime&localcontextdir=/opt/podman/primate-site/runtime&nocache=true"
- phaleth sudo podman stop 000000-primate-site-runtime && sudo podman rm 000000-primate-site-runtime
- phaleth sudo podman run --detach --name=000000-primate-site-runtime --runtime=runsc --network=000000-primate-site \
- phaleth --publish=127.0.0.1:24430:6161 --cpus 1 --oom-score-adj -1000 --restart=always localhost/primate-site-runtime
- blue thanks
- phaleth ok, it started building golang from source, when is it gonna build podman
- blue next week
- phaleth prolly never
- blue yeah, I think I messed up something
- phaleth let me check
- blue I ran the commands you provided, now it's 503 service unavailable
- phaleth ok
- blue fyi the script is website.sh, I put it under /tmp/website.sh for reference
- phaleth it's a deno error
- blue deno error?
- blue oh
- blue I did remove something from the primate config
- blue nvm
- blue I'll fix it
- phaleth ok, so primate website is configured to listen on localhost instead of 0.0.0.0
- blue the problem is, our manual deploy doesn't inject HOST=0.0.0.0
- phaleth yeah
- blue repopack does that, maybe I'll just see how it does that and see if I can backport it
- phaleth repopack website has env file
- blue no no
- blue I mean
- blue when repopack deploys stuff, it injects HOST=0.0.0.0
- blue so on repopack, when I deploy the primate web, it just works
- blue I removed that code from primate website too early
- blue I'll put it back, the explicit { http: { host: "0.0.0.0" } }, for now
- blue done, redeploying wiht website.sh
- phaleth no hurry https://primate.run/
- phaleth I deployed old image
- blue https://primate.run/blog/primate-040
- blue here we go
- skillnews 12Primate 0.40: Route pages, store enums, async schemas and events - https://primate.run/blog/primate-040
- blue dreamreal: ^
- bot [Primate Blog] Primate 0.40: Route pages, store enums, async schemas and events - https://primate.run/blog/primate-040
- phaleth looks like I can combine freebsd and linux images in one Containerfile
- blue LOL
- phaleth node gets stuck in infinite loop when container is running from linux image
- phaleth same for bun
- phaleth ok, so the thing is that repopack website only runs on bun
- phaleth the huge error I posted earlier was node specific, not freebsd specific
- blue oh ok, interesting
- blue but yeah, repopack itself runs on bun currently
- phaleth I've redeployed the repopack website to the rust based bun and it seems to work fine
- phaleth the date on the blogpost for primate 0.40 should be today's 12th July