commit 8c6a10bda1d334b0ace5c3d992f833ddb3995723 Author: Drew Short Date: Sun Feb 9 23:39:30 2020 -0600 Initial commit diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8818e3f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM debian:buster-slim + +LABEL maintainer="Drew Short " + +RUN apt-get -y update \ + && apt-get -y --no-install-recommends install \ + jq \ + && rm -Rf /var/lib/apt/lists/* + +WORKDIR /root diff --git a/README.md b/README.md new file mode 100644 index 0000000..b629a13 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# jq + +[![Concourse](https://concourse.nulloctet.com/api/v1/teams/docker/pipelines/jq/jobs/build-image/badge)](https://concourse.nulloctet.com/teams/docker/pipelines/jq) + +Docker image build for using jq to work with json files diff --git a/pipeline.yml b/pipeline.yml new file mode 100644 index 0000000..7c8dd3f --- /dev/null +++ b/pipeline.yml @@ -0,0 +1,30 @@ +--- +resources: + - name: git-resource + type: git + icon: git + source: + uri: https://git.nulloctet.com/docker/jq.git + ignore_paths: + - pipeline.yml + - upload_pipeline.sh + - README.md + - name: git-resource-image + type: docker-image + icon: docker + source: + repository: ((nexus_docker_write.host))/sothr/jq + username: ((nexus_docker_write.username)) + password: ((nexus_docker_write.password)) + +jobs: + - name: build-image + plan: + - get: git-resource + trigger: true + - put: git-resource-image + params: + build: git-resource + tag_file: git-resource/tag + tag_as_latest: true + get_params: {skip_download: true} diff --git a/tag b/tag new file mode 100644 index 0000000..afaf360 --- /dev/null +++ b/tag @@ -0,0 +1 @@ +1.0.0 \ No newline at end of file diff --git a/upload_pipeline.sh b/upload_pipeline.sh new file mode 100644 index 0000000..0febea1 --- /dev/null +++ b/upload_pipeline.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +TEAM=docker +PIPELINE=jq + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" +pushd "${DIR}" || true + +fly -t ${TEAM} set-pipeline --pipeline ${PIPELINE} --config pipeline.yml + +popd || true