(Jul 9) Orange Tsai discovered a path traversal flaw in ruby-sprockets, a Rack-based asset packaging system. A remote attacker can take advantage of this flaw to read arbitrary files outside an application’s root directory via specially crafted requests, when the Sprockets server is
(Jul 5) Update to 0.26.4 (CVE-2018-11235)
(Jul 10) An update for rh-git29-git is now available for Red Hat Software Collections. Red Hat Product Security has rated this update as having a security impact of Important. A Common Vulnerability Scoring System (CVSS) base score,
(Jul 10) An update for ansible is now available for Ansible Engine 2.5. Red Hat Product Security has rated this update as having a security impact of Moderate. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from
How to develop a local environment with Docker – and why you should
Why waste time creating a local development environment (LDE) from scratch when a simple, effective software can do it for you? Docker removes the obstacles to digitally adapt to new technologies. It uses existing technologies to act as an assistant between different operating systems and developers.
One of the main benefits of a solution like Docker is that helps to free applications from system infrastructure, allowing expansion in capacity through collaboration. This guide will show you how to set up Docker and begin using it immediately to build a local environment (LDE).
What Exactly Is Docker?
To understand what Docker is, it is best to first understand what it isn’t.
Many people tend to compare it to traditional virtualization, and in some ways this is true. In traditional virtualization you start with some hardware, example a server. Within this hardware, you run an operating system. Running on top of the operating system is the Hypervisor, which runs multiple virtual machines. Each virtual machine needs to include its own operating software and this can bloat up the file size and the memory required to run it.
Docker uses an alternative process called containerization. In containerization, you also find a server and an operating system, but through use of existing Linux Kernel tools, you create containers directly. The people at Docker did not invent this technology, but they found a way to simplify the creation of containers.
The main advantage of Docker is the ability to use it to write code in a test environment and seamlessly transfer it to a staging or production machine. It doesn’t matter if the machines have a different operating system, as long as they all run Docker.
Another advantage, which is mostly felt in a larger scale production environment it the software’s ability to share and use operating capacity effectively. As the workload increases, additional nodes can be added to increase the cluster memory. It doesn’t matter what operating systems each individual node has, as long as it has Docker installed it will work together with the rest of the cluster.
Steps to Create an LDE
One of the greatest features of Docker is the ability to create a local development environment in less than half an hour. The following example will run on Zend Expressive, but it will also work on PHP based applications.
Step 1 – Install Docker
It might seem obvious, but we thought we’d put this step in here anyway. You can install Docker for Linux, Mac, and Windows. Right from the installation setup, you will realise how simple this solution is. Docker also comes free with Plesk.
Step 2 – Setup Docker
There are two ways to go about setting up your environment, the manual and the automatic methods. In the manual method, we start by creating three containers. We will mimic the most basic PHP applications, which consist of a web server, PHP runtime, and a database server. Label each container to reflect these three components. So as not to keep things too generic, you may opt to label them by the actual name of the software. This method is best for developers who really enjoy coding the most.
For those who just want to get the job done, they should certainly go for the automated method. By using the Docker Compose tool, the containers are created without having to go through the manual work.
Step 3 – Container Configuration
Add the necessary configuration code and relevant elements in each of the three containers. Carry out this step carefully as any errors or omissions here might negatively affect the end result.
Step 4 – Container Booting
The final step is to start using Docker in daemon mode. As long as you carried out the previous step properly, once you enter the command to run Docker, it will automatically build the containers and start operating in the proper mode. Once the containers are created, you can open a web browser or the WordPress site directly and see your creation come to life.
Making Docker Even Easier to Use
Having multiple portals and systems running at the same time can be confusing and stressful for developers. In an effort to keep things simple and mistakes to a minimum, a central solution to create, monitor and run websites is a must.
Enter Plesk, a one-stop solution for developers, designs, and administrators. This online platform offers a ready to code environment which includes support for various languages. Being a hosting platform, it offers an extensive range of tools and toolkits, including site security and backup. What makes Plesk particularly unique is that it provides a free Docker extension with remote node support available for only $5 a month.
Developers can manage Docker containers directly from Plesk’s interface. You get access to the image library and can also upload your own images. When installing containers, you can choose whether to do it on your local system or opt for Plesk’s own remote node register.
There are numerous advantages to using Plesk’s solution, but before you can benefit from them, you need to install and setup the Docker extension. Once you do that, you have access and make use of a wide range of technologies, including MongodDB and Memcached. If you need any node support along the way, Plesk offers a convenient premium support package.
What developers think about setting up a local environment with Docker
The post How to develop a local environment with Docker – and why you should appeared first on Plesk.
