EasyCorp / easy-deploy-bundle

The easiest way to deploy your Symfony applications
https://easycorp.io/EasyDeploy
MIT License
473 stars 103 forks source link

HELP NEEDED from Docker experts #12

Open javiereguiluz opened 7 years ago

javiereguiluz commented 7 years ago

The problem

We need to create integration tests for this bundle. Somehow we must test that deploys/rollbacks are working as expected. I'm already testing all this using physical servers, but we need another solution based on fake servers created with Docker.

The solution

I know that the purpose of Docker containers is to run just one command/service, but I want to "abuse" Docker to create a small server with these features: Linux distribution (Alpine?), SSH server, Apache, Composer and PHP 7.1.

The idea is to create two of these fake servers so we can deploy applications on them via SSH and local IP addresses. And all this should run on Travis CI so we can automate everything.

Is there any Docker expert willing to do this for us? Thanks!

p365labs commented 7 years ago

Interesting, you should use two docker container for this and one more for the Travis machine that organise it, I've already managed this with ruflin/Elastica, @javiereguiluz can I help ?

javiereguiluz commented 7 years ago

@p365labs thanks for offering help. Since I'm not skilled at this, I'm shamelessly asking for someone to solve this problem for me. In other words, I need someone to tell me: "copy this file here, execute this command, and everything will work, both in your local machine and on Travis" 😄

p365labs commented 7 years ago

@javiereguiluz ok for me it's not a problem, but what about if I try to set up a working (docker) environment and the open a PR ?

javiereguiluz commented 7 years ago

@p365labs that would be much appreciated! 🙇 And if you make it work on Travis ... it would be "easy" to make it work locally too. Thanks!

p365labs commented 7 years ago

@javiereguiluz ok I will try to do it in the next days and then submitting a PR

p365labs commented 7 years ago

@javiereguiluz you said u are already testing using physical servers, can you share with me that configuration ? I need to understand what r u doing in order to port it in a docker container. don't know if we can talk about this here or in a chat (gitter ?), let me know

ferrastas commented 7 years ago

Hey @javiereguiluz, I've a POC image of a Docker to do that, could you share with us the integration tests that you are using?