icalialabs / plis Goto Github PK
View Code? Open in Web Editor NEWAutomated development tasks asked nicely
License: MIT License
Automated development tasks asked nicely
License: MIT License
If Docker is not running on the machine, all you get now is:
Command:
%!(EXTRA string=docker-compose ps -q)Error:
%!(EXTRA *exec.ExitError=exit status 1)%
Where it should explicitly say something like "It looks like Docker is not running on this machine!"
When you have a services with similar name, 'plis' match with the first coincidence.
Example
service:
api_web:
web:
If you want attach the 'web' service, you should run
plis attach web
but, 'plis' match with 'api_web' service
$ plis start web && plis attach web
docker-compose up -d web
back-end-3_postgres_1 is up-to-date
Creating back-end-3_web_1 ... done
No container running for service web
however
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
f13c0b362934 back_end:development "/usr/src/bin/entryp…" 53 seconds ago Up 53 seconds 0.0.0.0:3000->3000/tcp back-end-3_web_1
I have other projects with pretty much the same docker-compose.yml
where this DOES work, so I'm unsure of why it doesn't work in some others...
Somehow the new release changed the displayed output that is used by plis
to parse project data when starting and attaching to containers...
Right now, the converted docker command is printed into the STDOUT.
This prevents us from doing something like:
echo "$(plis run web rails secret)" | docker secret create some_secret_base -
We need to output the converted command to the STDERR instead of the STDOUT.
For an easier/maintainable Linux installation I think it would be awesome to have a snap package for every release.
WHen updating via brew, the previous version is still active...
I like the idea of how npm allows tasks to be defined in the package.json
file.
Currently at IcaliaLabs, when we use plis inside a project, the most executed tasks are these:
plis run postgres restoredb some_database_name path/to/some/database.dump
(Uses a script restoredb
to restore a database from a dump file)plis run web rails db:migrate searchkick:reindex:all another:rake:task
(Runs a bunch of rake tasks in a rails project)plis build service_a service_b service_c
(Re-builds the dockerfiles referenced by the compose project)Maybe we should be able to define these tasks in a file similar to how npm's package.json
does.
IMPORTANT Having a config file must not be mandatory.
Would this file be a json? a YML?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.