GithubHelp home page GithubHelp logo

jlordiales / jyparser Goto Github PK

View Code? Open in Web Editor NEW
29.0 29.0 8.0 13 KB

Bash wrapper around jq to filter both JSON and YAML, packaged behind a single interface

License: MIT License

Shell 100.00%

jyparser's People

Contributors

bonidier avatar germanattanasio 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

Watchers

 avatar  avatar  avatar

jyparser's Issues

Indentation control

It would be super handy to be able controlling indentations via params or just save source indentations for set command. Any way of customizing would be great

Missing modules

I'd like to run this locally, so I did ./start.sh req, which resulted with:

python modules missing in [yaml, json]

I am not sure what this error mean. Which modules are missing?

Report: env: can't execute 'bash': No such file or directory

I pull the image with:
docker pull jlordiales/jyparser

and then try the example:
cat demo-deployment.yaml | docker run -i --rm jlordiales/jyparser get ".spec.replicas"
It prompt:
env: can't execute 'bash': No such file or directory

What is wrong?

My docker info:

[root@devvm13 tmp]# docker info
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 6
Server Version: 1.13.0
Storage Driver: overlay
 Backing Filesystem: xfs
 Supports d_type: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins: 
 Volume: local
 Network: bridge host macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 03e5862ec0d8d3b3f750e19fca3ee367e13c090e
runc version: 2f7393a47307a16f8cee44a37b262e8b81021e3e
init version: 949e6fa
Security Options:
 seccomp
  Profile: default
Kernel Version: 3.10.0-229.el7.x86_64
Operating System: Red Hat Enterprise Linux Server 7.1 (Maipo)
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 15.67 GiB
Name: devvm13
ID: XPVV:LNYA:SUTQ:OB6R:PBHH:L22V:FTQH:RFBC:4VYI:UOIF:L722:7QP6
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Http Proxy: http://16.85.88.10:8080/
No Proxy: docker-registry
Registry: https://index.docker.io/v1/
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
Experimental: false
Insecure Registries:
 docker-registry:5000
 127.0.0.0/8
Live Restore Enabled: false

The demo-deployment.yaml file:

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: demo
spec:  #DeploymentSpec
  replicas: 1
  template: #PodTemplateSpec
    metadata:
    # the name is not included in the meta data as a unique name is generated from the deployment name
      labels:
        app: demo
    spec: #PodSpec
      containers: #Container array
      - name: demo
        image: docker-registry:5000/eium8.3.0.demo:centos7
        env:
        - name: GET_HOSTS_FROM
          value: env
        command: ["/root/start.sh"]

###Any problem, contact Wang, Bo ([email protected])

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.