We started the MCO movement control order since March 2020. As of today we are at RMCO – Recovery Movement Control Order. And it is expected to be ended at 31st August 2020.
However, there are still new cases reported daily. And this is quite worrying as the Prime Minister will announce the status only by this week.
Some might feel safer to extend the RMCO instead of easing the restriction, especially for the incoming personnel from overseas. It has been a mandatory 14-days self-quarantine at the designated quarantine centre or hotel for those who returned home since 1st August 2020.
For the business, it is still far from being normal due to the social distancing and also some strict Standard Operating Procedures (SOP) being enforced by the government.
Employee are encouraged to be working from home as much as possible to reduce the exposure to the unknown risk.
Looking forward with the announcement of the vaccine that might be available as soon as end of the year. Hopefully things will be getting better as the time pass by.
Let’s say you just want to have Joomla with its Mysql and also redis infrastructure ready.
And don’t want to bother setting it up manually for each services.
Just make a docker-compose.yaml with the following content and then start it up.
then create an .env file with the content for above parameters.
MYSQL_ROOT_PASSWORD=password # set to whatever here
MYSQL_DB=dbname # set approriate database name here
If you have an pre-compiled quickstart file, just extract it into `html` folder.
Then just start the docker with
docker-compose up -d
During install process at http://localhost/installation
just enter the password and db name credential similar to what have been defined in `.env` file.
I come across the zsh terminal after an upgrade of MacOS to Catalina recently. Where it suggest me to use zsh as default terminal instead of bash.
After searching around about zsh, I found there is a useful plugins and very nice themes.
I was always wondering how to get the customised console display for dev environment where I can easily know which branch I am currently in. And possibly few other information such as current time. :P
brew installzsh
brew install zsh
So, I found the following is useful for zsh.
Oh My zsh , which can be easily installed from the following Oh My Zsh repository. https://github.com/ohmyzsh/ohmyzsh/
In development environment you might want to test the integration between your code and some endpoint of the AWS services.
To minimise the cost, you might want to find a cheaper alternative instead of setting up the full set of the production infrastructure (copy) just for the development purpose.
(Well, if the cost is not an issue for you, then may be you not to read the remaining part.8-))
Firstly, there is a mock docker images for most the useful AWS services.
It is from localstack/localstack (github (localstack) https://github.com/localstack/localstack)
For a starter, if you just want to have docker-compose and start everything.
just copy its docker-compose.yaml into a folder.
it should be able to pull and fetch all the necessary image to complete.
Once done, it will be ready to use.
Once done, by default there is a Web UI running at port 8080,
but I’m not sure as nothing else come out, except the following empty page,
asking to get to localstack pro instead.
Then, I dig around and found the following useful package UI for the dashboard.
The Commandeer. (https://getcommandeer.com/)
It give me some UI to access/create my local AWS services such as S3 bucket, SQS, SNS, etc.
and also the some overview about the other infra like docker container list itself.
Now, time to try commit this image.
get the container id while its running.
C:\Users\user>docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
82001296bbdc amazonlinux "bash"26 minutes ago Up 26 minutes festive_bohr
C:\Users\user>docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
82001296bbdc amazonlinux "bash" 26 minutes ago Up 26 minutes festive_bohr
C:\Users\user>docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
amazonlinux-with-php7.3 latest 54f6cc3f5f73 24 seconds ago 531MB
amazonlinux latest 6ef285e58e33 2 months ago 163MB
centos latest 0f3e07c0138f 3 months ago 220MB
C:\Users\user>docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
amazonlinux-with-php7.3 latest 54f6cc3f5f73 24 seconds ago 531MB
amazonlinux latest 6ef285e58e33 2 months ago 163MB
centos latest 0f3e07c0138f 3 months ago 220MB
Ok, now time to push it out.
login to docker from command line.
C:\Users\user>docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
amazonlinux-with-php7.3 latest 54f6cc3f5f73 2 minutes ago 531MB
amazonlinux latest 6ef285e58e33 2 months ago 163MB
centos latest 0f3e07c0138f 3 months ago 220MB
C:\Users\user>docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
amazonlinux-with-php7.3 latest 54f6cc3f5f73 2 minutes ago 531MB
amazonlinux latest 6ef285e58e33 2 months ago 163MB
centos latest 0f3e07c0138f 3 months ago 220MB
create docker tags:
C:\Users\user>docker tag 54f6cc3f5f73 namran/amazonlinux-with-php7.3:0.001
C:\Users\user>docker tag 54f6cc3f5f73 namran/amazonlinux-with-php7.3:0.001
Finally, push it out to repository:
C:\Users\user>docker push namran/amazonlinux-with-php7.3
The push refers to repository [docker.io/namran/amazonlinux-with-php7.3]
d07f916bac18: Pushing [=>] 10.44MB/368.1MB fdf6c4a26006: Mounted from library/amazonlinux
C:\Users\user>docker push namran/amazonlinux-with-php7.3
The push refers to repository [docker.io/namran/amazonlinux-with-php7.3]
d07f916bac18: Pushing [=> ] 10.44MB/368.1MB fdf6c4a26006: Mounted from library/amazonlinux
once done, result will be like this.
then you can check at the docker repository, i.e https://hub.docker.com/u/namran
so, must write first ugly draft and re-edit it again and again. anyway just write it down. no matter how bad it would turn out to be. it just that sometimes, took too many shortcut and published the first ugly draft as final content. haha Well, at this point of time, my office area are stil recovering from the haze. kid’s school session already resumed. hopefully getting better in next few days