- Terraform
- Ansible
- Jenkins
- Kubernetes
- Docker
- Immutable Infrastructure
- Button Click Deployment
- Reverse Proxy Hosting with SSL Certificate (self signed & Let's Encrypt Automtation)
M1 docker preview and keycloak 'image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8)' Issue
# specify build platform
docker build . -t <user>/<image-name> --platform linux/x86_64
Reason: ssh-rsa based on sha-1 is deprecated in latest ubuntu version
- Downgrade to Ubuntu 18
- Troubleshoot by adding key accepted type (https://bbs.archlinux.org/viewtopic.php?id=270005)
# get auth log from ssh daemon and figure out why
grep sshd /var/log/auth.log
https://bbs.archlinux.org/viewtopic.php?id=270005
- Python Download of Pip seems to not play well (ansible is install on user locally and jenkins unable to access)
- Install and setup via apt-get is workable (with other python modules)
openssl req -x509 -nodes -days 365 \
-subj "/C=US/ST=Oregon/L=Portland/O=TechNode, LLC/CN=weichunnn.tech" \
-newkey rsa:2048 -keyout /etc/nginx/private/nginx-selfsigned.key \
-out /etc/nginx/certs/nginx-selfsigned.crt;
---
- name: provision web server
hosts: tag_group_web
tasks:
- name: install docker
apt:
update_cache: yes
name: docker.io
become: yes
- name: start docker
shell: |
systemctl start docker
systemctl enable docker
become: yes
- name: run image
shell: docker run --name hello-world -d -p 80:80 -p 443:443 weichunnn/nginx-static
become: yes