summaryrefslogtreecommitdiffstats
path: root/packaging/docker
diff options
context:
space:
mode:
authorKonstantinos Natsakis <5933427+knatsakis@users.noreply.github.com>2020-04-15 10:43:51 +0300
committerGitHub <noreply@github.com>2020-04-15 10:43:51 +0300
commitbd0bae3d1a90be9422cf04110300f1715dfec8cc (patch)
tree3325c2d81416c4fc967557187d3e222543749fd5 /packaging/docker
parentfacbc4075d47d199538c2e809c2486eab0dcb996 (diff)
Remove useless scripts (#8704)
Diffstat (limited to 'packaging/docker')
-rw-r--r--packaging/docker/README.md36
-rwxr-xr-xpackaging/docker/build-test.sh74
2 files changed, 0 insertions, 110 deletions
diff --git a/packaging/docker/README.md b/packaging/docker/README.md
index 15d1e7dca0..aabf412074 100644
--- a/packaging/docker/README.md
+++ b/packaging/docker/README.md
@@ -247,42 +247,6 @@ Caddyfile.
At Netdata, we provide multiple ways of testing your Docker images using your own repositories.
You may either use the command line tools available or take advantage of our Travis CI infrastructure.
-### Using tools manually from the command line
-
-The script `packaging/docker/build-test.sh` can be used to create an image and upload it to a repository of your
-choosing.
-
-```bash
-Usage: packaging/docker/build-test.sh -r <REPOSITORY> -v <VERSION> -u <DOCKER_USERNAME> -p <DOCKER_PWD> [-s]
- -s skip build, just push the image
-Builds an amd64 image and pushes it to the docker hub repository REPOSITORY
-```
-
-This is especially useful when testing a Pull Request for Kubernetes, since you can set `image` to an immutable
-repository and tag, set the `imagePullPolicy` to `Always` and just keep uploading new images.
-
-Example:
-
-We get a local copy of the Helm chart at <https://github.com/netdata/helmchart>. We modify `values.yaml` to have the
-following:
-
-```yaml
-image:
- repository: cakrit/netdata-prs
- tag: PR5576
- pullPolicy: Always
-```
-
-We check out PR5576 and run the following:
-
-```bash
-./packaging/docker/build-test.sh -r cakrit/netdata-prs -v PR5576 -u cakrit -p 'XXX'
-```
-
-Then we can run `helm install [path to our helmchart clone]`.
-
-If we make changes to the code, we execute the same `build-test.sh` command, followed by `helm upgrade [name] [path to our helmchart clone]`
-
### Inside Netdata organization, using Travis CI
To enable Travis CI integration on your own repositories (Docker and Github), you need to be part of the Netdata
diff --git a/packaging/docker/build-test.sh b/packaging/docker/build-test.sh
deleted file mode 100755
index 3c55e17360..0000000000
--- a/packaging/docker/build-test.sh
+++ /dev/null
@@ -1,74 +0,0 @@
-#!/bin/bash
-# Docker build wrapper, for testing manually the docker build process
-# TODO: This script should consume build.sh after setting up required parameters
-#
-# Copyright: SPDX-License-Identifier: GPL-3.0-or-later
-#
-# Author : Chris Akritidis (chris@netdata.cloud)
-# Author : Pavlos Emm. Katsoulakis (paul@netdata.cloud)
-
-printhelp() {
- echo "Usage: packaging/docker/build-test.sh -r <REPOSITORY> -v <VERSION> -u <DOCKER_USERNAME> -p <DOCKER_PWD> [-s]
- -s skip build, just push the image
-Builds an amd64 image and pushes it to the docker hub repository REPOSITORY"
-}
-
-set -e
-
-if [ ! -f .gitignore ]; then
- echo "Run as ./packaging/docker/$(basename "$0") from top level directory of git repository"
- exit 1
-fi
-
-DOBUILD=1
-while getopts :r:v:u:p:s option
-do
- case "$option" in
- r)
- REPOSITORY=$OPTARG
- ;;
- v)
- VERSION=$OPTARG
- ;;
- u)
- DOCKER_USERNAME=$OPTARG
- ;;
- p)
- DOCKER_PWD=$OPTARG
- ;;
- s)
- DOBUILD=0
- ;;
- *)
- printhelp
- exit 1
- ;;
- esac
-done
-
-if [ -n "${REPOSITORY}" ]; then
- if [ $DOBUILD -eq 1 ] ; then
- echo "Building ${VERSION:-latest} of ${REPOSITORY} container"
- docker run --rm --privileged multiarch/qemu-user-static:register --reset
-
- # Build images using multi-arch Dockerfile.
- eval docker build --build-arg ARCH="amd64" --tag "${REPOSITORY}:${VERSION:-latest}" --file packaging/docker/Dockerfile ./
-
- # Create temporary docker CLI config with experimental features enabled (manifests v2 need it)
- mkdir -p /tmp/docker
- #echo '{"experimental":"enabled"}' > /tmp/docker/config.json
- fi
-
- if [ -n "${DOCKER_USERNAME}" ] && [ -n "${DOCKER_PWD}" ] ; then
- # Login to docker hub to allow futher operations
- echo "Logging into docker"
- echo "$DOCKER_PWD" | docker --config /tmp/docker login -u "$DOCKER_USERNAME" --password-stdin
-
- echo "Pushing ${REPOSITORY}:${VERSION}"
- docker --config /tmp/docker push "${REPOSITORY}:${VERSION}"
- fi
-else
- echo "Missing parameter. REPOSITORY=${REPOSITORY}"
- printhelp
- exit 1
-fi