mirror of
				https://github.com/TheAnachronism/docspell.git
				synced 2025-10-31 09:30:12 +00:00 
			
		
		
		
	Remove the "tools" docker image
This commit is contained in:
		| @@ -39,13 +39,6 @@ if [[ $version == *SNAPSHOT* ]]; then | ||||
|     echo ">>>> Building nightly images for $version <<<<<" | ||||
|     url_base="https://github.com/eikek/docspell/releases/download/nightly" | ||||
|  | ||||
|     echo "============ Building Tools ============" | ||||
|     docker buildx build \ | ||||
|            --platform="$platforms" $push \ | ||||
|            --build-arg tools_url="$url_base/docspell-tools-$version.zip" \ | ||||
|            --tag docspell/tools:nightly \ | ||||
|            -f tools.dockerfile . | ||||
|  | ||||
|     echo "============ Building Restserver ============" | ||||
|     docker buildx build \ | ||||
|            --platform="$platforms" $push \ | ||||
| @@ -61,14 +54,6 @@ if [[ $version == *SNAPSHOT* ]]; then | ||||
|            -f joex.dockerfile . | ||||
| else | ||||
|     echo ">>>> Building release images for $version <<<<<" | ||||
|     echo "============ Building Tools ============" | ||||
|     docker buildx build \ | ||||
|            --platform="$platforms" $push \ | ||||
|            --build-arg version=$version \ | ||||
|            --tag docspell/tools:v$version \ | ||||
|            --tag docspell/tools:latest \ | ||||
|            -f tools.dockerfile . | ||||
|  | ||||
|     echo "============ Building Restserver ============" | ||||
|     docker buildx build \ | ||||
|            --platform="$platforms" $push \ | ||||
|   | ||||
| @@ -1,35 +0,0 @@ | ||||
| FROM alpine:latest | ||||
|  | ||||
| # Builds an image where all scripts in tools/ are in PATH. There are | ||||
| # no assumptions what script to run, so there are no CMD or | ||||
| # ENTRYPOINTS defined. | ||||
| # | ||||
| # The scripts are named is in tools/ only prefixed by `ds-` | ||||
| # | ||||
| # Run the export-files script, for example: | ||||
| # | ||||
| #   docker run -e DS_USER=demo -e DS_PASS=test docspell/tools:dev ds-export-files "http://localhost" . | ||||
| # | ||||
| # The build requires to either specify a version build argument or a | ||||
| # tools_url build argument. If a tools_url argument is given, then | ||||
| # this url is used to download the tools zip file. Otherwise the | ||||
| # version argument is used to download from github. | ||||
|  | ||||
| LABEL maintainer="eikek0 <eike@docspell.org>" | ||||
|  | ||||
| ARG version= | ||||
| ARG tools_url= | ||||
|  | ||||
| RUN apk add --no-cache curl bash inotify-tools jq sqlite | ||||
|  | ||||
| WORKDIR /opt | ||||
| RUN wget ${tools_url:-https://github.com/eikek/docspell/releases/download/v$version/docspell-tools-$version.zip} && \ | ||||
|   unzip docspell-tools-*.zip && \ | ||||
|   rm docspell-tools-*.zip | ||||
|  | ||||
| RUN bash -c 'while read f; do \ | ||||
|     target="ds-$(basename "$f" ".sh")"; \ | ||||
|     echo "Installing $f -> $target"; \ | ||||
|     cp "$f" "/usr/local/bin/$target"; \ | ||||
|     chmod 755 "/usr/local/bin/$target"; \ | ||||
|   done < <(find /opt/docspell-tools-* -name "*.sh" -mindepth 2 -not -path "*webextension*")' | ||||
		Reference in New Issue
	
	Block a user