From cb0f3609da97ee7b22ad1a03424d028d8cbb9a8d Mon Sep 17 00:00:00 2001 From: Chevdor Date: Tue, 28 Feb 2023 15:05:27 +0100 Subject: [PATCH 1/2] Remove Dockerfile --- Dockerfile | 34 ---------------------------------- README.md | 2 +- 2 files changed, 1 insertion(+), 35 deletions(-) delete mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 267504d..0000000 --- a/Dockerfile +++ /dev/null @@ -1,34 +0,0 @@ -ARG REGISTRY_PATH=docker.io/paritytech - -FROM docker.io/library/ubuntu:latest - -ARG VCS_REF=master -ARG BUILD_DATE="" -ARG UID=1000 -ARG GID=1000 -ARG VERSION=0.0.1 - -LABEL summary="Releng scripts" \ - name="${REGISTRY_PATH}/gnupg" \ - maintainer="devops-team@parity.io" \ - version="${VERSION}" \ - description="Releng scripts" \ - io.parity.image.vendor="Parity Technologies" \ - io.parity.image.source="https://github.com/paritytech/scripts/blob/${VCS_REF}/dockerfiles/releng-scripts/Dockerfile" \ - io.parity.image.documentation="https://github.com/paritytech/scripts/blob/${VCS_REF}/dockerfiles/releng-scripts/README.md" \ - io.parity.image.revision="${VCS_REF}" \ - io.parity.image.created="${BUILD_DATE}" - -RUN apt-get update && apt-get install -yq --no-install-recommends bash - -WORKDIR /scripts - -COPY . . - -RUN set -x \ - && groupadd -g $GID nonroot \ - && useradd -u $UID -g $GID -s /bin/bash -m nonroot - -USER nonroot:nonroot - -ENTRYPOINT [ "./rs" ] diff --git a/README.md b/README.md index 4a8d284..91ff13c 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ See the [Tools wiki page](https://github.com/paritytech/releng-scripts/wiki/Tool ## Docker -Once the automation is in place, the image will be available as `paritytech/releng-scripts` and usable as: +The image is available as `paritytech/releng-scripts` and usable as: ```bash # Show the help From cec69db6f24e88abd5276f5b0e9d1d08657f2c27 Mon Sep 17 00:00:00 2001 From: Chevdor Date: Tue, 28 Feb 2023 15:28:54 +0100 Subject: [PATCH 2/2] Remove docker related scripts --- justfile | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/justfile b/justfile index 1f8aecf..b9b1051 100644 --- a/justfile +++ b/justfile @@ -19,17 +19,11 @@ linters *args: rs *args: ./rs "$@" -# Build the Docker image -build_docker_image owner=default_owner: - docker build -t $docker_image_name -t {{owner}}/$docker_image_name . - docker images | grep "releng" run *args: docker run --rm -it rs "$@" -# Push the docker image -publish_docker_image owner=default_owner: (build_docker_image owner) - docker push {{owner}}/$docker_image_name - -# Publish everything -publish: publish_docker_image +# Generate the readme as .md +md: + #!/usr/bin/env bash + asciidoctor -b docbook -a leveloffset=+1 -o - README_src.adoc | pandoc --markdown-headings=atx --wrap=preserve -t markdown_strict -f docbook - > README.md