Skip to content

feat: Introduce resticprofile#1347

Open
charming-byte wants to merge 1 commit intohome-operations:mainfrom
charming-byte:resticprofile
Open

feat: Introduce resticprofile#1347
charming-byte wants to merge 1 commit intohome-operations:mainfrom
charming-byte:resticprofile

Conversation

@charming-byte
Copy link
Copy Markdown

see #1346

Copy link
Copy Markdown
Contributor

@onedr0p onedr0p left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Take a look at how all the other images are crafted and see if you can adjust more things to our standards.

}

variable "VERSION" {
// renovate: datasource=docker depName=docker.io/creativeprojects/resticprofile
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The version should come from github-releases

}

variable "SOURCE" {
default = "https://github.com/creativeprojects/resticprofile/"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
default = "https://github.com/creativeprojects/resticprofile/"
default = "https://github.com/creativeprojects/resticprofile"

Comment on lines +1 to +2
# syntax=docker/dockerfile:1
FROM alpine:latest
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# syntax=docker/dockerfile:1
FROM alpine:latest
# syntax=docker/dockerfile:1
FROM docker.io/library/alpine:3.23

Comment on lines +7 to +8
COPY --from=ghcr.io/creativeprojects/resticprofile:latest /usr/bin/restic /usr/bin/restic
COPY --from=ghcr.io/creativeprojects/resticprofile:latest /usr/bin/rclone /usr/bin/rclone
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should probably be installed with apk

tar xvzf /resticprofile.tar.gz -C /usr/bin resticprofile && \
rm /resticprofile.tar.gz && \
chmod +x /usr/bin/restic /usr/bin/rclone /usr/bin/resticprofile && \
adduser -D -h /resticprofile resticprofile && \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is adding a user really necessary over using nobody:nogroup?

Comment on lines +20 to +22
USER resticprofile
VOLUME /resticprofile
WORKDIR /resticprofile
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
USER resticprofile
VOLUME /resticprofile
WORKDIR /resticprofile
USER nobody:nogroup
WORKDIR /resticprofile
VOLUME ["/resticprofile"]

or if this could be /config, that would work too

WORKDIR /resticprofile

ENTRYPOINT ["resticprofile"]
CMD ["--help"] No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not helpful, I would create a entrypoint.sh with defaults

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants