Two tips to speed up bitbucket pipelines

In the past few days, I was playing around with pipelines to see what can I do with it, and how much can I squeeze it to get as much as I can from the functionality they offer. And I wanted to point out to two main things that you can do to speed up your PHP testing a bit, not much but a bit which counts.

First of all, if you don’t use the built-in composer cache functionality, then you need to do that right away, and enabling it is just a small line of code that you add to the test section like

Nothing else, once you have done that you will use the cache they offer and no need to redownload the packages from the internet and the cache will be invalidated automatically after 7 days (if am not mistaken), but this does not mean you don’t have the ability to delete the cache manually. But keep in your mind that each section should use the caches tag otherwise it won’t be useful, sadly Bitbucket pipeline does not offer a global cache feature.

Secondly, remember to install and use hirak/prestissimo package globally, which will give you a nice speed as we all know.

so your file can have something like:


Filed under: Code, docker, PHP

New Chatbot project for fun

In the past few days, I decided to try something new so I started to play with bots and created this nice little guy here.

The idea of the project is simple, you ask him about the price of any crypto currency and he will reply back, you can even specify the equivalent currency that you want.

Here is a small video about it.

Let me know what do you think.

Am not going to release it for public yet, first I need to build a good infrastructure for it

Filed under: Code, Laravel, Linux, Other, Personal, PHP, Video

Running Laravel Dusk tests on Bitbucket, the easy way

So today I was trying to run and see if I can manage to get Laravel dusk to run on Bitbucket pipelines, and after too many tests, I was able to do so \(^ ^)/.

In this post I’ll explain the minimum requirements you need to do that, to make things simple, I created a docker image based on PHP 7.2 that you can use directly.

Configure your Laravel project:

After installing Laravel and Laravel dusk (you can read all about it on the docs), you can create a new environment file called .env.dusk which contain the following:

Continue reading

Filed under: Code, docker, Laravel, Linux, PHP

A new Episode from Arab Dev talk, this time with two guests

As most of you know, me and my friend Omar Qadan hosts a technical talk were we just talk about any technical topic we find interesting, now this time we got two guests from Gaza Palestine, Mohammad and Waseem, and we interviewed them to know more about the obstacles they are facing in Gaza and how they are able to overcome them, and we also talked about the technical community there and how they are trying to work/operate under the bad conditions there.

To know more, you can head to and listen to the talk.

Filed under: Arabic, Business, Personal

[snippet] Running Traefik with Docker Swarm

The other day, I wanted to try using Traefik in real world scenario where I’ll have a docker instance running and Traefik will do the routing/proxying based on the domain name that I will provide, sadly this was not so easy, so after few hours of searching I found the solution.

You may ask, why it didnt work, it should work with no problem, and I agree so am going to list the problem I faced and the solution I found. To work with swarm, I created three servers and joined them in one swarm network, where I had one manager and two workers, then I used this simple docker-compose.yml file to create the app

Continue reading

Filed under: Code, docker, Linux