Skip to content

Instantly share code, notes, and snippets.

View rubencarneiro's full-sized avatar
:electron:
Focusing

Rúben Carneiro rubencarneiro

:electron:
Focusing
View GitHub Profile
@rubencarneiro
rubencarneiro / .pbuilderrc
Created September 24, 2022 15:51 — forked from matlo/.pbuilderrc
.pbuilderrc and commands to build packages on Ubuntu
source: https://jodal.no/2015/03/08/building-arm-debs-with-pbuilder/
sudo apt install pbuilder qemu-user-static
sudo apt install ubuntu-keyring debian-archive-keyring
wget http://archive.raspbian.org/raspbian/pool/main/r/raspbian-archive-keyring/raspbian-archive-keyring_20120528.2_all.deb
sudo dpkg -i raspbian-archive-keyring_20120528.2_all.deb
sudo OS=ubuntu DIST=xenial ARCH=amd64 pbuilder --create
sudo OS=ubuntu DIST=xenial ARCH=i386 pbuilder --create
sudo OS=raspbian DIST=jessie ARCH=armhf pbuilder --create
# in case of conflict with local nginx:
# make sure in all *.confs (
# also in default and example to avoid error like
# 'nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)'
# )
# set for instance "listen 127.0.0.1:80" instead of "listen *:80"
# docker & network settings
DOCKER_IMAGE_NAME="crs:current" # build of nginx-php - for example
DOCKER_CONTAINERS_NAME="crs1" # our container's name
@rubencarneiro
rubencarneiro / docker-xenial-copy-paste.sh
Last active May 16, 2021 12:48 — forked from BretFisher/docker-xenial-copy-paste.sh
Install Docker PPA on Ubuntu 16.04
# NOT FOR SHELL SCRIPT, but rather just for quick copy paste
# this is a copy-paste version with defaults of the full shell script docker-xenial.sh which is below this one in gist.
apt-get -y install apt-transport-https ca-certificates curl && \
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - && \
add-apt-repository "deb [arch=arm64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" && \
apt-get update -q && \
apt-get install -y -q docker-ce && \
printf '{ "userns-remap" : "default" , "storage-driver" : "overlay2" }' > /etc/docker/daemon.json && \
systemctl restart docker.service
@rubencarneiro
rubencarneiro / docker.md
Created May 12, 2021 22:17 — forked from FreddieOliveira/docker.md
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary