jlordiales / jyparser Goto Github PK
View Code? Open in Web Editor NEWBash wrapper around jq to filter both JSON and YAML, packaged behind a single interface
License: MIT License
Bash wrapper around jq to filter both JSON and YAML, packaged behind a single interface
License: MIT License
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
e.g: processing of https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/alternative/kubernetes-dashboard.yaml
causes error "yaml.composer.ComposerError: expected a single document in the stream"
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])
This is simple to implement by using the Loaders and Dumpers from here:
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?
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.