-
Buildkit: https://github.com/moby/buildkit
- Start server with docker
docker run -d --privileged -p 1234:1234 moby/buildkit:latest --addr tcp://0.0.0.0:1234 export BUILDKIT_HOST=tcp://0.0.0.0:1234 sudo docker cp buildkit:/usr/bin/buildctl /usr/bin/buildctl
- buildctl frontends:
- dockerfile
- gateway
- buildctl exporter:
- local
- containerimage
- oci
- build multi platform image:
buildctl build --frontend dockerfile.v0 --frontend-opt platform=linux/${PLATFORM} --frontend-opt filename=./${DOCKERFILE_LOCATION} --exporter image --local dockerfile=. --local context=.
- Start server with docker
-
Raspberry Pi starting process locations:
/etc/rc.local
file which runs as scriptcrontab
for cronjobs- systemd files in
/lib/systemd/system
/etc/init.d/
directory of scripts
-
Get used ports info:
ss -tunapl
(tags: network ports server) -
To make the process run in background do :
CTRL+z
: Interrupt the process and push it in backgroundbg
: Start interrupted processjobs
: to get a list of children jobs running in background
-
Checkout a PR, test PR locally:
git fetch origin pull/{pr id}/head:{new branch}
-
Remove a file from git which was previously committed but don't delete locally:
git rm --cached {file}
-r
for a folder (example in case of vscode settings)
-
Command line console app in rust: https://mattgathu.github.io/writing-cli-app-rust/
-
Rmove a repository from ubuntu (apt-repository):
- Check file
/etc/apt/sources.list
that may contain the repository - Check directory
/etc/apt/sources.list.d/
that may contain a file pointing to the repository
- Check file
-
See windows used ports with "Resource monitor -> Network tab"
-
Delete a git commit:
git reset --hard HEAD~1