Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[STORY] Customize Environment Stack #5

Open
1 task
jonpugh opened this issue Jun 15, 2015 · 2 comments
Open
1 task

[STORY] Customize Environment Stack #5

jonpugh opened this issue Jun 15, 2015 · 2 comments

Comments

@jonpugh
Copy link
Member

jonpugh commented Jun 15, 2015

As a system administrator
I would like to be able to choose from different stack configurations
So that I can adjust my hosting to handle different scenarios.

Terra writes docker-compose files dynamically when creating environments.

Currently the stack for an environment is hard coded in EnvironmentFactory::getDockerComposeArray()

We should create the ability to create different "stacks" that each app and environment can choose from.

The default stack is Docker. Other stacks could interact with other PaaS tools to create the environment.

Let's create a Stack class that represents the code needed to stand up an environment. We should move the methods like getDockerComposeArray to a DockerStack class.

Once that's done let's add a "stack" property to the EnvironmentFactory class.

@jonpugh jonpugh changed the title [STORY] Create and Choose Stacks [STORY] Customize Environment Stack Jul 11, 2015
@jonpugh jonpugh added this to the NYCCamp 2015 Sprints milestone Jul 11, 2015
@jonpugh
Copy link
Member Author

jonpugh commented Jul 12, 2015

We should take inspiration from Behat.

In behat, you can specify a behat.yml file to choose what classes are loaded when the tests are run.

You can also add your own "FeatureContext" class to the bootstrap.php file in your site's source code, and it will get picked up automatically.

Lets come up with a class that an App can provide to override the EnvironmentFactory similar to how FeatureContext does it for behat tests.

@jonpugh jonpugh mentioned this issue Jul 14, 2015
@jonpugh
Copy link
Member Author

jonpugh commented Jul 14, 2015

This story is in progress for Docker, at the moment. We can now add to the docker-compose file using the app's .terra.yml file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant