-
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
Showing
5 changed files
with
53 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
root = true | ||
|
||
[*] | ||
insert_final_newline = true | ||
indent_style = space | ||
trim_trailing_whitespace = true | ||
end_of_line = lf |
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 @@ | ||
* text=auto eol=lf |
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,13 @@ | ||
name: "Build" | ||
on: | ||
push: | ||
branches: | ||
- master | ||
schedule: | ||
# Random time each week. | ||
- cron: '48 7 * * 1' | ||
|
||
jobs: | ||
build: | ||
uses: silvenga-docker/building/.github/workflows/publish-github.yaml@master | ||
secrets: inherit |
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,30 @@ | ||
FROM ubuntu:noble AS base | ||
|
||
LABEL org.opencontainers.image.authors "Mark Lopez <[email protected]>" | ||
|
||
RUN set -xe \ | ||
&& apt-get update \ | ||
&& apt-get dist-upgrade -y \ | ||
# Common | ||
&& apt-get install -y \ | ||
wget \ | ||
# Redlib | ||
&& wget https://github.com/redlib-org/redlib/releases/latest/download/redlib -O /tmp/redlib \ | ||
&& wget https://github.com/redlib-org/redlib/releases/latest/download/redlib.sha512 -O /tmp/redlib.sha512 \ | ||
&& sed -i -e 's/target\/x86_64-unknown-linux-musl\/release/\/tmp/g' /tmp/redlib.sha512 \ | ||
&& sha512sum --check /tmp/redlib.sha512 \ | ||
&& mv /tmp/redlib /usr/bin/redlib \ | ||
&& chmod +x /usr/bin/redlib \ | ||
&& rm /tmp/redlib.sha512 \ | ||
# Cleanup | ||
&& apt-get autoremove -y --purge \ | ||
&& apt-get -q clean -y && rm -rf /var/lib/apt/lists/* && rm -f /var/cache/apt/*.bin | ||
|
||
# Default user in Ubuntu Noble. | ||
USER 1000 | ||
|
||
HEALTHCHECK --interval=1m --timeout=3s CMD wget --spider --q http://localhost:8080/settings || exit 1 | ||
|
||
EXPOSE 8080 | ||
VOLUME [ "/config" ] | ||
ENTRYPOINT ["redlib"] |
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# redlib | ||
Personal Redlib container image, updated from latest, weekly. | ||
|
||
Personal [Redlib](https://github.com/redlib-org/redlib) container image, updated from latest, weekly. |