Coder Social home page Coder Social logo

jhipster-oh-my-zsh-plugin's Introduction

jhipster-oh-my-zsh-plugin's People

Contributors

atomfrede avatar avdev4j avatar danielfran avatar danielpetisme avatar deepu105 avatar gmarziou avatar hdurix avatar jdubois avatar jhipster-bot avatar pascalgrimaud avatar ruddell avatar sudharakap avatar unixorn avatar vivekmore avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jhipster-oh-my-zsh-plugin's Issues

This plugin needs to be updated to support `docker compose` instead of `docker-compose`

If you use the latest code from JHipster's repo, commands like jhkeycloak don't work.

ERROR: The Compose file './src/main/docker/keycloak.yml' is invalid because:
'name' does not match any of the regexes: '^x-'

You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/

Workaround:

cd ~/.oh-my-zsh/custom/plugins/jhipster

Modify jhipster.plugin.zsh to replace docker-compose with docker compose. Then, open a new terminal.

Propose a "smart" docker suggestions

Currently all the docker aliases are basically a shortcut to run the full docker command
jhmysqlup -> docker-compose -f src/main/docker/mysql.yml up -d

All the aliases have the same patten
docker-compose -f src/main/docker/<COMPONENT>.yml <COMMAND>

The aim would be to create a oh-my-zsh function fo support auto-suggestions about docker components and commands.

The suggestion relies on 2 steps, first the components are basically the YAML file name present in the src/main/docker directory:
basename $(ls src/main/docker/*.yml) | cut -d '.' -f 1)

Regarding the command, letss keep it simple, a switch on up, down and logs commands is good enough to start.

I'm a total noob about oh-my-zsh auto-suggestions scripts. I'll try to propose something but if someone is familiar is comfortable with this kind of script, help is welcome.

shortcut docker app.yml

Is there a reason why docker-compose -f src/main/docker/app.yml up -d does not have any shortcut?

If not, I can create a PR with jhappup, jhappdown, jhappstop and jhapplogs added.
And maybe another one with jhdock (package docker) and jhappup combined: jhdockup?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.