forked from minio/minio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.aarnet
More file actions
45 lines (37 loc) · 1.31 KB
/
Dockerfile.aarnet
File metadata and controls
45 lines (37 loc) · 1.31 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
FROM golang:1.13-alpine as build
RUN apk add --no-cache build-base git perl bash curl
ADD . /app
WORKDIR /app
RUN make
FROM aplregistry.aarnet.edu.au/cloudservices/apl-rhel7
LABEL maintainer="Michael Usher <michael.usher@aarnet.edu.au>"
LABEL maintainer="Michael D'Silva <md@aarnet.edu.au>"
COPY aarnet/docker/yum.repos.d/* /etc/yum.repos.d/
RUN rpm --rebuilddb &&\
yum -y remove ed mailx wget libselinux-python sysstat lm_sensors-libs crontabs vim-minimal yum-utils &&\
yum -y update &&\
yum -y install jq xrootd-client-4.9.1 python2-xrootd-4.9.1 xrootd-libs-4.9.1 --enablerepo=xrootd &&\
chmod 4755 /usr/bin/xrdcp &&\
yum clean all &&\
rm -rf /var/cache/yum &&\
echo "* soft nofile 300000" >> /etc/security/limits.conf
COPY aarnet/docker/scripts /scripts
COPY --from=build /app/minio /scripts/minio
COPY --from=build /app/minio-healthcheck /scripts/minio-healthcheck
# Minio Client
ADD https://dl.min.io/client/mc/release/linux-amd64/mc /usr/bin/mc
RUN chmod +x /usr/bin/mc
EXPOSE 9000
CMD /scripts/docker-entrypoint.sh
ENV MINIO_BROWSER="off" \
MINIO_OPTS="" \
EOS="" \
EOSUSER="minio" \
EOSUID=48 \
EOSGID=48 \
EOSSTAGE="/stage" \
HOOKSURL="" \
SCRIPTS="/scripts" \
EOSLOGLEVEL=2 \
EOSSLEEP=100 \
EOSREADMETHOD="webdav"