In this post I choose to work with GKE For change,
The Idea with this project which is Simple WordPress application connected to external database (MYSQL) you can change the database IP from the main.tf file.
The Git Repo HERE
Regards
Osama
For the people who think differently Welcome aboard
In this post I choose to work with GKE For change,
The Idea with this project which is Simple WordPress application connected to external database (MYSQL) you can change the database IP from the main.tf file.
The Git Repo HERE
Regards
Osama
In this post , I will share one of the ways showing how to know what is the size of the image plus the layer of the image
To do that follow the steps
export showLayers='{{ range .RootFS.Layers }}{{ println . }}{{end}}'
export showSize='{{ .Size }}'
docker inspect -f "$showSize" <Container-name:tag>
docker inspect -f "$showLayers" <Container-name>
Regards
Osama
In this Post I will discuss how to Use S3 Bucket in Docker containers, Let’s Start
Configuration and Installation
pip install --upgrade --user awscli
aws configure
sudo cp -r ~/.aws /root
sudo yum install s3fs-fuse -y
Configure Bucket
sudo mkdir /mnt/application-website
export BUCKET=<S3_BUCKET_NAME>
sudo s3fs $BUCKET /mnt/application-website -o allow_other -o default_acl=public-read -o use_cache=/tmp/s3fs
ll /mnt/application-website
cp -r ~/application-website/web/* /mnt/application-website
ll /mnt/application-website
aws s3 ls s3://$BUCKET
Run container using volume s3
docker run -d --name web1 -p 80:80 --mount type=bind,source=/mnt/application-app,target=/usr/local/apache2/htdocs,readonly httpd:2.4
You can check the application <Server-Public-IP:80>
Regards
Osama
Quick post to show you how to save and load image using save/load command
Docker image save <IMAGE> > <FILE>.tar
Docker image save <IMAGE> -o <FILE>.tar
Docker image save <IMAGE> -output <FILE>.tar
to Load these Image again
Docker image load < <FILE>.tar
Docker image load -I <FILE>.tar
Docker image load –input <FILE>.tar
Enjoy Automation
Osama
This is another DevOps Project, the idea of this project like the following:-
sample django web application on with the following specs:–
The complete Project uploaded to my GitHub HERE.
Thank you
Enjoy the automation
Osama
Problem Description
We have two separate applications that we would like to integrate together. One is a WYSIWYG application for generating static websites. The other is an admin application for managing an online shopping site. We would like to be able to use the features of the Website Builder to design pages in the Webshop. In addition, we would also like to be able to manage product details (name, price, images, etc.) while updating Webshop pages in the Website Builder.
Website Builder Details
The Website Builder is a single page app written in React. It is mostly served by a monolithic backend with a few services for select features. The app follows a component-driven architecture using Redux for application state management. Each static page in a user’s website is composed of components. Each component is responsible for rendering the view within its container and for supplying the callbacks for displaying its settings panel. The settings panel is unique per component but may share various individual controls for certain
settings (eg: background color, fonts).
When the user is ready to publish their site, the publication service will generate static assets for each page. The Webshop is one component in the Website Builder. When a Webshop is included on a page, a JavaScript snippet is included in the generated HTML.
Webshop Details
The Webshop has 2 parts: the admin portion is a single page app written in KnockoutJS. It is in the process of being rewritten in React. The second portion is the public-facing shop front, also a Knockout application written in KnockoutJS. The admin application lists products, orders, and other management details. The Webshop backend is quite similar to the Website Builder – monolithic aside from a few minor services for certain features.
The documentation is HERE
Cheers
Osama
In this post i created Terraform/terragrunt to bulid fully infrastructure enviroment, i uploaded the code to my GitHub, You can find the code HERE
Enjoy the automation
Osama
This is post to share complete setup of Azure infrastructure , that contains multiple VMS and subnets.
Code is uploaded to GitHub Here.
Enjoy the Auttomation
Osama
The following project having these requriment:-
Another Things to add to this project which is the follwong :-
The Link for the Project HERE
Enjoy the automation
Osama
Imagine you are having multiple instances and you want to change something, if you will do this manually it will take time from you why not to automte the process ?
I upladed one of the projects to automate the process, this will allow to automate the simplest things for example new employee joined and you need to add his SSH key to your instances (You can even choose which VM you want to him/her to acces) , just add the key in the roles and configure the pipeline on your rep and the code will run Automtically.
I uploaded the project on my github HERE.
Ragards
Enjoy the power of automation.
Osama