In the last couple of months, I started to dig deep into web security. I wanted to figure out, how the “dark side” works and how a hacker will act when he decided to penetrate my web application. So I downloaded a Kali Linux System, installed it on a virtual machine and started “hacking”…
To add or update an EAV attribute in Magento, it is necessary to add setup scripts to your code base. If you don’t handle your custom attributes in setup scripts, you are not able to install your project from scratch, which could cause a lot of problems. For example, it makes it harder to run unit- and integration tests.
So lets assume that we are working in a team with 4 developers and everybody has a different task. Each task needs a custom attribute in a different entity_type.
I want to share my thoughts and summarize an overview of how the 4 developers could implement their setup scripts. Also, I want to show the advantages and disadvantages of each method.
When you are working with docker on your local machine, you often have to map your local ports to different container and end up in a port-mapping-mess like this:
- localhost:80 -> Local apache for native stuff
- localhost:8080 -> Docker container with apache for testing
- localhost:8100 -> Some sort of dockered WebApp
- localhost:59924 -> “Yea, well … don’t know, lets check docker process-list …”
To simplify this mess, we created a little proxy-script (+ environment setup) that will make your life much easier: https://github.com/netz98/docker-router-proxy
The router proxy will add the ability to dispatch your request based on the container name. To archive this, it adds a special TLD which will be used to determine that we want to call an docker container.
In our case (default) this will be .dock, but you can choose a different one if you like.
After configuring the environment (as described within the project description on GitHub) you can simply call your container like this:
this will be proxied to
I’m using this script now for several days and it’s absolutely worth the time for setting up the environment. It’s very easy now to navigate through your services and projects just using your browser history.
I’m very interested what you think about this approach and if you might have found other solutions for this?
So, please leave a comment!