Skip to content

Instantly share code, notes, and snippets.

Avatar
📕
Follow me on twtxt.net/user/prologic

James Mills prologic

📕
Follow me on twtxt.net/user/prologic
View GitHub Profile
@prologic
prologic / figure.xml
Created Aug 11, 2020
XML vs. YAML 🤷‍♂️ Why does everyone hate on XML?! 🤣
View figure.xml
<figure>
<a href="pics/earth2150/lc-combat-ucs.jpg">
<img src="pics/earth2150/lc-combat-ucs.jpg" />
</a>
<figcaption>
<abbr title="Lunar Corporation">LC</abbr>hovertanks battle mechs guarding a
<abbr title="United Civilized States">UCS</abbr>base. A large mech is shooting rockets at a hovertank, while its shields protect it from an electro cannon attack. Two repairers fix a visibly damaged nuclear power plant.</figcaption>
</figure>
@prologic
prologic / CHANGELOG.md
Last active Apr 9, 2020
NetData v1.21.0 ChangeLog
View CHANGELOG.md

v1.21.0 (2020-04-06)

Bug Fixes

  • Fix Coverity Defect CID-349684 (#8586)
  • Fix Coverity defects (#8579)
  • Fix compiler warnings in the claiming code (#8567)
  • Fix Debian 8 (jessie) support (#8590)
@prologic
prologic / test.sh
Created Apr 9, 2020
Minimal working Container Sandboxing on uLinux with POSIX Shell scripts
View test.sh
# ./congine /bin/sh
# hostname
container
# id
uid=0(root) gid=0(root) groups=0(root),0(root),65534,65534,65534,65534,65534,65534
# ps aux
PID USER TIME COMMAND
1 root 0:00 /bin/sh
4 root 0:00 ps aux
# Container Terminated
View log
Loading /etc/os-release ...
You should have EPEL enabled to install all the prerequisites.
Check: http://www.tecmint.com/how-to-enable-epel-repository-for-rhel-centos-6-5/
Running in non-interactive mode
> CentOS Version: 8 ...
> Checking for epel ...
Running in non-interactive mode, assuming yes (y)
> Would have promptedfor epel not found, shall I install it? ...
yum -y install epel-release
CentOS-8 - AppStream [=== ] --- B/s | 0 B --:-- ETA CentOS-8 - AppStream100% [====================] 1.4 kB/s | 681 B 00:00 ETA CentOS-8 - AppStream 17% [===- ] 242 kB/s | 1.2 MB 00:22 ETA CentOS-8 - AppStream 35% [======= ] 461 kB/s | 2.3 MB 00:09 ETA CentOS-8 - AppStream 45% [========= ] 565 kB/s | 3.0 MB 00:06 ETA CentOS-8 - AppStream 56% [=========== ] 687 kB/s | 3.7 MB 00:04 ETA CentOS-8 - AppStream 70% [============== ] 825 kB/s | 4.6 MB 00:02 ETA CentOS-8 - AppStream 85% [================= ] 979 kB/s | 5.6 MB
@prologic
prologic / build.log
Created Jan 17, 2020
$ docker build --no-cache --build-arg DISTRO=opensuse --build-arg DISTRO_VERSION=15.1 -t netdata/netdata:opensuse_15.1 .
View build.log
Sending build context to Docker daemon 53.8MB
Step 1/30 : ARG ARCH=amd64
Step 2/30 : ARG DISTRO=debian
Step 3/30 : ARG DISTRO_VERSION=buster
Step 4/30 : ARG VERSION=0.1
Step 5/30 : FROM netdata/builder:${DISTRO}_${DISTRO_VERSION} AS build
---> 9522f44e840a
Step 6/30 : ARG ARCH
---> Running in eac382bbfa22
@prologic
prologic / build.log
Created Jan 17, 2020
$ docker build --no-cache -t netdata/builder:opensuse_15.1 -f package-builders/Dockerfile.opensuse15.1 .
View build.log
Sending build context to Docker daemon 451.6kB
Step 1/7 : FROM opensuse:15.1
---> fef5ad254f63
Step 2/7 : ARG VERSION=0.1
---> Running in 20856432fd0d
Removing intermediate container 20856432fd0d
---> 4bf1adda8a2d
Step 3/7 : ENV VERSION=$VERSION
---> Running in 2b4872e0be02
@prologic
prologic / test.log
Created Jan 16, 2020
$ dki -t --rm netdata/netdata:fedora_30 | tee test.log
View test.log
Waiting for netdata on localhost:19999 ... OK
"v1.19.0-317-ga637ae4a"
@prologic
prologic / build.log
Created Jan 16, 2020
$ time docker build --build-arg DISTRO=fedora --build-arg DISTRO_VERSION=30 -t netdata/netdata:fedora_30 . | tee build.log
View build.log
Sending build context to Docker daemon 53.77MB
Step 1/30 : ARG ARCH=amd64
Step 2/30 : ARG DISTRO=debian
Step 3/30 : ARG DISTRO_VERSION=buster
Step 4/30 : ARG VERSION=0
Step 5/30 : FROM netdata/builder:${DISTRO}_${DISTRO_VERSION} AS build
---> 4a3fb33bb433
Step 6/30 : ARG ARCH
---> Using cache
@prologic
prologic / build.log
Created Jan 16, 2020
docker build -f package-builders/Dockerfile.fedora30 -t netdata/builder:fedora_30 .
View build.log
prologic@Jamess-iMac
Thu Jan 16 12:23:53
~/NetData/helper-images
(fedora-builder-images) 0
$ docker build -f package-builders/Dockerfile.fedora30 -t netdata/builder:fedora_30 .
Sending build context to Docker daemon 326.7kB
Step 1/8 : FROM fedora:30
30: Pulling from library/fedora
b0fe058ffda2: Pull complete
Digest: sha256:a31809d5e9d991a291605e932077aaf5f2beff64dee85b34d911228196af406e
@prologic
prologic / build.log
Created Jan 16, 2020
docker build -f package-builders/Dockerfile.ubuntu1804 -t netdata/builder:ubuntu_1804
View build.log
prologic@Jamess-iMac
Thu Jan 16 12:10:38
~/NetData/helper-images
(ubuntu-builder-images) 0
$ docker build -f package-builders/Dockerfile.ubuntu1804 -t netdata/builder:ubuntu_1804 .
Sending build context to Docker daemon 304.1kB
Step 1/12 : FROM ubuntu:18.04
18.04: Pulling from library/ubuntu
2746a4a261c9: Pull complete
4c1d20cdee96: Pull complete
You can’t perform that action at this time.