Start up a lambda-like docker container:
docker run -i -t -v /tmp:/var/task lambci/lambda:build /bin/bash
Install some dependencies inside the container:
yum install gperf freetype-devel libxml2-devel git libtool -y
easy_install pip
### Keybase proof | |
I hereby claim: | |
* I am dnavarrom on github. | |
* I am navd (https://keybase.io/navd) on keybase. | |
* I have a public key ASAIuPNs0XU1HSHFRo9VZ1BHFppD3GP25sJKmBZ0bzhDrwo | |
To claim this, I am signing this object: |
# Stop all containers | |
docker stop `docker ps -qa` | |
# Remove all containers | |
docker rm `docker ps -qa` | |
# Remove all images | |
docker rmi -f `docker images -qa ` | |
# Remove all volumes |
#docker setup | |
echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" | sudo tee /etc/apt/sources.list.d/docker.list | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo apt update | |
sudo apt install docker-ce docker-ce-cli containerd.io pigz | |
#execution permission | |
sudo usermod -aG docker $USER | |
#docker compose |
\curl -L https://get.rvm.io | bash -s stable --ruby | |
source /home/diego/.rvm/scripts/rvm | |
rvm install current && rvm use current |
#no trunc, append new logs, for this boot | |
journalctl -u service-name.service -b --no-pager -f -l | |
# Instala el driver correcto para la impresora Brother HL-1202 (o cualquiera de la serie HL-1200) | |
# * Ademas repara el problema de impresion en pagina en blanco | |
# * Install arm drivers that fix blank pages on HL-1202 (or HL-1200 series) | |
# * Tested on orangepi zero - using Armbian_20.02.1_Orangepizero_bionic_current_5.4.20.7z and CUPS 2.2.7 | |
# | |
#!/usr/bin/env bash | |
pushd /tmp | |
wget http://download.brother.com/welcome/dlf103361/brgenprintml2pdrv-4.0.0-1.armhf.deb | |
sudo dpkg -i brgenprintml2pdrv-*.armhf.deb |
#!/usr/bin/env bash | |
# https://docs.docker.com/install/linux/docker-ce/ubuntu/ | |
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" | |
sudo apt-get update | |
sudo apt-get install docker-ce | |
# https://docs.docker.com/compose/install/ |
#download image | |
git clone https://github.com/cachethq/Docker.git cachet-docker | |
cd cachet-docker | |
#run Database | |
docker run --name postgres -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres -d postgres:9.5 | |
#run cachet | |
docker run -d --name cachet --link postgres -e DB_DRIVER=pgsql -e DB_HOST=postgres -e DB_DATABASE=postgres -e DB_USERNAME=postgres -e DB_PASSWORD=postgres -d cachethq/docker:latest |