Our Writing

Idea, Case Study, Tutorial

Monitoring and Upgrading IOPS for EBS

Cloud computing allow us to pay only for what we consume, the question now for us is, how much do we need, we will discussing this in the context of IOPS for EBS in this article. Whenever we create a new EC2 instance, we will need to specify the size of our root EBS, default to 8GB, which comes with…

Continue Reading

Alter Column Type for Mysql without downtime

We did this by using pt-online-schema-change 1. Since we are using RDS with Read Replica, and the tool require log_bin_trust_function_creators = 1, we did a failover to Read Replica, modifying parameter group of Master, reboot Master, then failback to Master and repeat this for Read Replica. If you have SUPER privilege of the DB, skip this step. 2. Prepare a…

Continue Reading

Flutter convert to Base64 image and Display it

Its a known issue for Flutter Camera Plugin will rotate the images 90 / 270 degree when uploading it to server or displaying it with a Image widget, like this: The cause of the issue is due to EXIF meta embeded into the image itself with the orientation parameter, for servers, just make sure that it handle EXIF once the…

Continue Reading

Docker More, SSH Less – Docker Machine to AWS EC2

Let’s explore some alternative for Docker production deployment besides of using AWS ECS and Manual Docker Engine deployment Manual Docker Engine deployment provide us the full details of all the commands to run, but its always better to just run one line of command for ease of deployment, e.g.: docker-machine create -d amazonec2 –amazonec2-access-key UR_AWS_ACCESS_KEY–amazonec2-secret-key UR_AWS_SECRET_KEY –amazonec2-instance-type t2.small –amazonec2-region ap-southeast-1…

Continue Reading

Laravel in Docker on the Cloud – Amazon ECS

We have created our Docker Hub image here and hosted it in a self-provisioned Ubuntu server. What if we want to host it on Amazon ECS (Elastic Container Service) Fargate with the Docker Hub image? Let’s do it: 1. Sign in to AWS Console (if you don’t have an account yet, just sign one up, Farget is billed per minute,…

Continue Reading

Laravel in Docker on the Cloud – Part 2

Continue from Part 1 Now the problem we face now is that we need to stop and re-run the docker image whenever there’s any changes in the Laravel code. To solve this, we can mount the project root into the Docker container’s volume, so it will get the latest code whenever we save the code. To do this, run docker…

Continue Reading

Laravel in Docker on the Cloud – Part 1

I has been asked how to make Laravel run in Docker, and more importantly how to deploy it to a production server, since then I have been exploring for options and Laradocks seems to be a simplified way to go for. So before digging into Laradock, will be doing a vanilla dockerization to get the concept clear first. 1.  Get…

Continue Reading