-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
033feb1
commit c96dbbc
Showing
5 changed files
with
73 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
FROM docker.io/library/ubuntu:oracular-20241009 AS base | ||
|
||
RUN apt update \ | ||
&& apt full-upgrade -y | ||
|
||
RUN apt install -y \ | ||
tzdata \ | ||
openjdk-21-jre | ||
|
||
FROM base AS download | ||
|
||
RUN apt install -y \ | ||
curl \ | ||
unzip | ||
|
||
WORKDIR /opt | ||
|
||
ARG DOCSPELL_VERSION=0.42.0 | ||
RUN curl -sLfo restserver.zip "https://github.com/eikek/docspell/releases/download/v${DOCSPELL_VERSION}/docspell-restserver-${DOCSPELL_VERSION}.zip" && \ | ||
unzip restserver.zip && \ | ||
rm restserver.zip && \ | ||
mv docspell-restserver-* docspell-restserver && \ | ||
rm docspell-restserver/conf/docspell-restserver.conf && \ | ||
echo "$DOCSPELL_VERSION" > docspell-restserver/version | ||
|
||
FROM base | ||
|
||
COPY --from=download /opt/docspell-restserver /opt/docspell-restserver | ||
|
||
ENTRYPOINT ["/opt/docspell-restserver/bin/docspell-restserver"] | ||
EXPOSE 7880 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
name="${1?no name}" | ||
|
||
repo="ghcr.io/docspell/$name" | ||
image_name="${repo}:latest" | ||
docker build --cache-from type=gha --cache-to type=gha,mode=max -t "$image_name" -f "Dockerfile.$name" . | ||
docker push "$image_name" | ||
full_version="$(docker run --rm --entrypoint cat "$image_name" "/opt/docspell-$name/version")" | ||
full_version_name="${repo}:v${full_version}" | ||
docker tag "$image_name" "$full_version_name" | ||
docker push "$full_version_name" | ||
minor_version="$(cut -d'.' -f1 <<< "$full_version").$(cut -d'.' -f2 <<< "$full_version")" | ||
minor_version_name="${repo}:v${minor_version}" | ||
docker tag "$image_name" "$minor_version_name" | ||
docker push "$minor_version_name" | ||
|
File renamed without changes.