Skip to content

Instantly share code, notes, and snippets.

View grigorkh's full-sized avatar

Grigør grigorkh

View GitHub Profile
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2022-02-28 06:54:43 UTC; 8s ago
TriggeredBy: ● docker.socket
Docs: https://docs.docker.com
Main PID: 2398 (dockerd)
Tasks: 8
Memory: 29.9M
CPU: 375ms
CGroup: /system.slice/docker.service
docker-ce:
Installed: (none)
Candidate: 5:20.10.12~3-0~ubuntu-impish
Version table:
5:20.10.12~3-0~ubuntu-impish 500
500 https://download.docker.com/linux/ubuntu impish/stable amd64 Packages
5:20.10.11~3-0~ubuntu-impish 500
500 https://download.docker.com/linux/ubuntu impish/stable amd64 Packages
5:20.10.10~3-0~ubuntu-impish 500
500 https://download.docker.com/linux/ubuntu impish/stable amd64 Packages
sudo bash -c 'echo "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker-ce.list'
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
@grigorkh
grigorkh / mongoObjectId.js
Last active July 23, 2021 15:18
javascript mongoDB ObjectId generator
var mongoObjectId = function () {
var timestamp = (new Date().getTime() / 1000 | 0).toString(16);
return timestamp + 'xxxxxxxxxxxxxxxx'.replace(/[x]/g, function() {
return (Math.random() * 16 | 0).toString(16);
}).toLowerCase();
};
Aspect or Feature kubernetes/ingress-nginx nginxinc/kubernetes-ingress with NGINX nginxinc/kubernetes-ingress with NGINX Plus
Fundamental
Authors Kubernetes community NGINX Inc and community NGINX Inc and community
NGINX version Custom NGINX build that includes several third-party modules NGINX official mainline build NGINX Plus
Commercial support N/A N/A Included
Implemented in Go/Lua (while Nginx is written in C) Go/Python Go/Python
Load balancing configuration via the Ingress resource
@grigorkh
grigorkh / tzdata.sh
Created August 4, 2020 08:44
Fix: tzdata hangs Docker image build
Step 1/5 : FROM ubuntu:20.04
---> 1e4467b07108
Step 2/5 : ENV TZ=Asia/Dubai
---> Using cache
---> 7f4c85bd0d3e
Step 3/5 : RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
---> Using cache
---> f6f784dfbad5
Step 4/5 : RUN apt update
---> Using cache
@grigorkh
grigorkh / Dockerfile
Created August 4, 2020 08:24
Fix: tzdata hangs Docker image build
FROM ubuntu:20.04
ENV TZ=Asia/Dubai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt update
RUN apt install -y tzdata
@grigorkh
grigorkh / tzdata.sh
Created August 4, 2020 08:23
Fix: tzdata hangs Docker image build
Step 1/3 : FROM ubuntu:20.04
---> 1e4467b07108
Step 2/3 : RUN apt update
---> Using cache
---> 174ce3e1bb84
Step 3/3 : RUN apt install -y tzdata
...
Configuring tzdata
------------------
@grigorkh
grigorkh / Dockerfile
Created August 4, 2020 08:22
Fix: tzdata hangs Docker image build
FROM ubuntu:20.04
RUN apt update
RUN apt install -y tzdata