Kubernetes in seconds: MicroK8s

Create a kubernetes cluster all-in-one virtual machine for kubernetes learning/experimentation. Note: There is a little video on https://microk8s.io/ if that is more of your cup of tea. Ingredients Virtual Machine (e.g. AWS EC2 instance)  Ubuntu 18.04 LTS (or any linux distribution with snap support) Create cluster using microk8s Like Magic: You Read more…

Docker Private Registry

Host your a bare bones Docker Repository on Ubuntu (16.04) with SSL and user authentication. Install docker Follow instructions on https://docs.docker.com/install/linux/docker-ce/ubuntu/ Make sure to add current user to the docker group.  Assuming this you are using this server just to host the docker private registry, create everything under the user’s Read more…

MS SQL Server on docker

Run MSSQL Express (for Development) docker run –name mssql \ -e ‘ACCEPT_EULA=Y’ -e ‘SA_PASSWORD=atleast8’ -e ‘MSSQL_PID=Express’ \ -p 1433:1433 -d microsoft/mssql-server-linux:latest Run “client” docker exec -it mssql /opt/mssql-tools/bin/sqlcmd \ -S localhost -U sa’ (*) you will be prompted to enter the password (e.g. “atleast8“) References https://hub.docker.com/r/microsoft/mssql-server-linux/ https://hub.docker.com/r/microsoft/mssql-tools/

LetsEncrypt on Docker container

Install docker 🙂 Create folder Create a subfolder called “letsencrypt” to store your keys. Run certbot on Docker docker run -v ${pwd}/letsencrypt:/etc/letsencrypt -it certbot/certbot certonly –manual –preferred-challenges dns Important: On MacOS make sure to use ${PWD} instead of ${pwd} Saving debug log to /var/log/letsencrypt/letsencrypt.log Plugins selected: Authenticator manual, Installer None Read more…

Redis for development

Docker Install docker: https://store.docker.com/search?type=edition&offering=community Run Server docker run –name redis -v /tmp/redis:/data -d redis redis-server –appendonly yes –name {name}: where {name} is the nick name of the container -v {path}:/data: where {path} will be used by redis to persist data Run Client docker run -it –link redis:redis –rm redis redis-cli Read more…