You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context
Lots of projects are complex and use more than one image. this is where palm could shine, if it supported multiple images
Is your feature request related to a problem? Please describe.
let's say I have a rails app. I've got a rails container, a postgres container, an nginx static file serve etc all in the local.
sometimes I want to run the rails test suite in the rails_app container. sometimes I want to force compile my static files in the static_server container. I need more than one.
Describe the solution you'd like
A well-documented heuristic. palm finds and parses the docker-compose, loading all the images into the context. the default is the first image in the file. setting a different default in the config changes that. Now in the context I can specify an override image name from the context, or leave it blank to use the default.
This also speeds up fails because we can parse the image list before running the docker command and short-circuit if it is not a valid image name.
Describe alternatives you've considered
refactoring projects into a mono image, which is awful.
shelling out and hand writing the compose, which is fine but takes away a LOT of palm magic
Is there an existing feature request for this?
I have searched the existing issues
The text was updated successfully, but these errors were encountered:
@ethanknox-palmetto - I started a branch for this! I've created a new (core) plugin called multi_container with the basic plugin setup and bare-bones up/down commands. This would be an excellent place for you or anyone else in the community to contribute. We'll need to flesh out those commands, and add some others to support common workflows in multi-container applications.
Branch: feature/support-multi-container-projects
How to get started:
Checkout the branch and pull changes
Install palm-cli from source with palm update --local
cd into a project with multiple containers, this will be the host project where you'll test things out.
run palm init --plugin multi_container
confirm that palm --help shows commands called up and down – if you see these, you're ready to go!
Remember, any changes in palm-cli have to be built before you'll see them in the CLI. palm update --local to build your changes. This can be a little slow and frustrating, especially when developing commands. To accelerate development you could palm scaffold command --name your_command to create it in the host project, then move it into the multi_container/commands directory once you're done.
Context
Lots of projects are complex and use more than one image. this is where
palm
could shine, if it supported multiple imagesIs your feature request related to a problem? Please describe.
let's say I have a rails app. I've got a rails container, a postgres container, an nginx static file serve etc all in the local.
sometimes I want to run the rails test suite in the
rails_app
container. sometimes I want to force compile my static files in thestatic_server
container. I need more than one.Describe the solution you'd like
A well-documented heuristic. palm finds and parses the docker-compose, loading all the images into the context. the default is the first image in the file. setting a different default in the config changes that. Now in the context I can specify an override image name from the context, or leave it blank to use the default.
This also speeds up fails because we can parse the image list before running the docker command and short-circuit if it is not a valid image name.
Describe alternatives you've considered
Is there an existing feature request for this?
The text was updated successfully, but these errors were encountered: