-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile.pkg
More file actions
46 lines (38 loc) · 1.84 KB
/
Copy pathContainerfile.pkg
File metadata and controls
46 lines (38 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# --------------------------------------------------------------------------
# THIS FILE IS AUTOGENERATED - DO NOT EDIT MANUALLY
#
# Source: Containerfile.pkg.j2
# --------------------------------------------------------------------------
ARG BASE_VERSION=15.1
FROM ghcr.io/daemonless/base:${BASE_VERSION}
ARG FREEBSD_ARCH=amd64
ARG PKG_NAME="seaweedfs"
ARG PACKAGES="${PKG_NAME}"
ARG HEALTHCHECK_ENDPOINT="http://localhost:9333/cluster/healthz"
ENV HEALTHCHECK_URL="${HEALTHCHECK_ENDPOINT}"
LABEL org.opencontainers.image.title="SeaweedFS" \
org.opencontainers.image.description="SeaweedFS is a fast distributed storage system for blobs, objects, files, and a data lake, scaling to billions of files. It provides an S3 API, POSIX FUSE mount, WebDAV, and a Filer with cross-cluster active-active replication." \
org.opencontainers.image.source="https://github.com/daemonless/seaweedfs" \
org.opencontainers.image.url="https://seaweedfs.com/" \
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.vendor="daemonless" \
org.opencontainers.image.authors="daemonless" \
io.daemonless.category="Network" \
io.daemonless.port="8333" \
io.daemonless.arch="${FREEBSD_ARCH}" \
io.daemonless.pkg-source="pkg" \
io.daemonless.packages="${PACKAGES}" \
io.daemonless.pkg-name="${PKG_NAME}" \
io.daemonless.healthcheck-url="${HEALTHCHECK_ENDPOINT}"
# Install seaweedfs from FreeBSD pkg (provides /usr/local/bin/weed)
RUN pkg update && \
pkg install -y ${PACKAGES} && \
mkdir -p /app && \
pkg query '%v' ${PKG_NAME} > /app/version && \
pkg clean -ay && \
rm -rf /var/cache/pkg/* /var/db/pkg/repos/*
# Copy root filesystem
COPY root/ /
RUN chmod +x /etc/services.d/seaweedfs/run /etc/cont-init.d/20-seaweedfs /healthz
EXPOSE 8333 9333 8888 8080
VOLUME ["/config", "/data"]