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…

Elasticsearch Curator

Why? You can use curator to manipulate elastic search indices. For example shrink or delete old ones. Install After installing elasticsearch in debian based: Maker sure to add source to list (or you may have an old version installed instead): Add to /etc/apt/sources.list.d/:  deb [arch=amd64] https://packages.elastic.co/curator/5/debian stable main Then run: 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/

ElasticBeanstalk logs to Elasticsearch

Install filebeat on RPM Based: sudo rpm –import https://packages.elastic.co/GPG-KEY-elasticsearch create /etc/yum.repos.d/elastic.repo [elastic-6.x] name=Elastic repository for 6.x packages baseurl=https://artifacts.elastic.co/packages/6.x/yum gpgcheck=1 gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch enabled=1 autorefresh=1 type=rpm-md sudo yum install filebeat on deb based: wget -qO – https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add – sudo apt-get install apt-transport-https echo “deb https://artifacts.elastic.co/packages/6.x/apt stable main” | sudo tee Read more…

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…

Getting started with Ansible

To Install on MacOS Add pip: $ sudo easy_install pip Install ansible: $ sudo pip install ansible Ping (EC2 Instance) sudo mkdir /etc/ansible cd /etc/ansible sudo vi hosts hosts (list of your hosts): ec2-52-15-xxx-yyy.us-east-2.compute.amazonaws.com use ssh-agent? $ ssh-agent bash $ ssh-add ~/aws_key.pem Ping To connect you will need to add Read more…