项目作者: bitsofinfo

项目描述 :
Simple alpine docker image for CICD ops with bash, redis, python, curl, jq, jo, and yq. Run bash, python scripts, cURL ops, manipulate JSON and YAML!
高级语言: Dockerfile
项目地址: git://github.com/bitsofinfo/cicd-toolbox.git
创建时间: 2020-03-05T17:35:25Z
项目社区:https://github.com/bitsofinfo/cicd-toolbox

开源协议:

下载


cicd-toolbox

Simple alpine Docker image with bash, redis, curl, jq, jo, python (3), git, ssh and yq. Do cURL ops, manipulate JSON and YAML!

Uses alpine packages for redis, curl, python (3), jq, jo (edge) and bash, manually grabs latest yq release from: https://github.com/mikefarah/yq/

Current versions (as of this branch/tag):

  1. GNU bash, version 5.0.17(1)-release (x86_64-alpine-linux-musl)
  2. jq-master-v20200428-28-g864c859e9d
  3. yq version 3.4.0
  4. jo 1.4
  5. curl 7.69.1 (x86_64-alpine-linux-musl) libcurl/7.69.1 OpenSSL/1.1.1g zlib/1.2.11 nghttp2/1.41.0
  6. OpenSSH_8.3p1, OpenSSL 1.1.1g 21 Apr 2020
  7. Python 3.8.6
  8. redis-cli 5.0.9
  9. git version 2.26.2

Additional install Python libraries:

  1. Jinja2-2.11.2
  2. pyyaml-5.3.1
  3. redis-3.5.3
  4. jsonpath_ng-1.5.2
  5. requests-2.24.0
  6. ruamel.yaml-0.16.12

Docker: https://hub.docker.com/repository/docker/bitsofinfo/cicd-toolbox

Build:

  1. docker build --no-cache . -t cicd-toolbox

Usage:

  1. docker run -it bitsofinfo/cicd-toolbox:latest
  2. docker run bitsofinfo/cicd-toolbox:latest yq -h
  3. docker run bitsofinfo/cicd-toolbox:latest jq -h
  4. docker run bitsofinfo/cicd-toolbox:latest jo -h
  5. docker run bitsofinfo/cicd-toolbox:latest curl -h
  6. docker run bitsofinfo/cicd-toolbox:latest bash -c 'echo "hello world"'
  7. docker run bitsofinfo/cicd-toolbox:latest python --version
  8. docker run bitsofinfo/cicd-toolbox:latest python -c 'print("hello world {}".format("bitsofinfo"))'
  9. docker run bitsofinfo/cicd-toolbox:latest redis-cli -v