Compare commits

...

3 Commits

Author SHA1 Message Date
Erki
7717483821 CI and container publishing
All checks were successful
Build and push latest / publish (push) Successful in 1m2s
2024-09-26 09:06:05 +03:00
Erki
9bdd31ac5f Add devcontainer 2024-09-26 09:04:38 +03:00
Erki
8958ac83c5 Add series filtering and displaying 2024-09-26 09:04:26 +03:00
9 changed files with 124 additions and 7 deletions

View File

@ -0,0 +1,29 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/debian
{
"name": "Debian",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/base:bullseye",
"features": {
"ghcr.io/devcontainers/features/go:1": {
"version": "latest"
},
"ghcr.io/devcontainers/features/hugo:1": {
"extended": true,
"version": "latest"
}
}
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Configure tool-specific properties.
// "customizations": {},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}

27
.gitea/workflows/ci.yml Normal file
View File

@ -0,0 +1,27 @@
name: Build and push latest
run-name: Build and push latest
on: [push]
jobs:
publish:
runs-on: ubuntu-latest
if: gitea.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v4
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to registry
uses: docker/login-action@v3
with:
registry: git.skullnet.me
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: "git.skullnet.me/erki/embeddingcpp:latest"
file: Dockerfile

17
Dockerfile Normal file
View File

@ -0,0 +1,17 @@
FROM alpine:3.20 AS build
RUN apk add --update hugo
WORKDIR /opt/hugoapp
COPY . .
RUN hugo
FROM nginx:1.27.1-alpine
WORKDIR /usr/share/nginx/html
COPY --from=build /opt/hugoapp/public .
EXPOSE 80/tcp

View File

@ -3,3 +3,12 @@ languageCode = 'en-us'
title = 'Embedding C++'
theme = 'beautifulhugo'
[taxonomies]
series = 'series'
tag = 'tags'
[author]
name = 'Rusted Skull'
website = 'https://git.skullnet.me'
github = 'skull132'

View File

@ -4,6 +4,6 @@ date: 2023-07-16T11:31:41+03:00
draft: false
---
Buttes.
This is the blog of a random Estonian systems engineer, AKA Rusted Skull or Skull132.
This is a butte.
You can find clustered series down below.

View File

@ -0,0 +1,21 @@
---
title: "Running ROS2 with localhost only."
date: 2024-05-22T21:36:00+03:00
draft: false
summary: "Ever had ROS2 DoS your router accidentally? Want to learn how to stop that from happening? Well, here you are."
author: "Rusted Skull"
series: []
tags: ["Random"]
---
Recently I had the requirement to run ROS2 with a specific automotive stack on a PC that's connected to my home network.
Following the 3rd reinstall due to my evolving need to use a GPU, everything was roughly up and running. I started the stack,
and to my surprise, everything worked.
That is, until I stopped paying attention, forgot what my PC was doing, and noticed that
my phone was having trouble staying on WiFi. The router was seemingly losing its uplink connection, and the ISP saw a similar effect
on their end. Following some cable replacements and router reboots, I was headed towards a full router reset per the advice of the ISP tech.
I didn't get quite that far, however: everything started working after I unplugged my computer from the router. I revive the computer,
and see the ROS2 stack still running there. Welp, couplrit found. Now, what do we do about it?

View File

@ -4,7 +4,8 @@ date: 2023-07-16T13:39:31+03:00
draft: false
summary: "This is safsdfan test."
author: "Rusted Skull"
series: "Tutorial"
series: ["Tutorial"]
tags: ["Generic", "Memes"]
---
welcome to test.

View File

@ -0,0 +1,11 @@
---
title: "Second post"
date: 2024-05-22T21:36:00+03:00
draft: false
summary: "This is the second test. Woopie!"
author: "Rusted Skull"
series: ["Tutorial"]
tags: ["Generic", "Memes"]
---
And here we go.

View File

@ -14,10 +14,12 @@
<hr class="small" />
</div>
<div>
<span class="subtitle">Series</span>
{{ range (.Pages.ByParam "series") }}
{{ . }}
{{ end }}
<span class="subtitle">Series:</span>
<ul>
{{ range $name, $taxonomy := .Site.Taxonomies.series }}
<li><a href="{{ "/series/" | relLangURL }}{{ $name | urlize }}">{{ $name }}</a></li>
{{ end }}
</ul>
<hr class="small" />
</div>
<div>