-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (26 loc) · 854 Bytes
/
Dockerfile
File metadata and controls
33 lines (26 loc) · 854 Bytes
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
FROM ubuntu:16.04
MAINTAINER Bartek Kryza <bkryza@gmail.com>
# Build arguments
ARG RELEASE=devel
ARG VERSION="20.02.4"
# Get the image up to date and install utility tools
RUN apt-get -y update && \
apt-get -y upgrade && \
apt-get -y install bash-completion ca-certificates curl && \
apt-get clean
WORKDIR /tmp
# Install oneclient package
RUN case ${RELEASE} in \
production) \
curl -O http://get.onedata.org/oneclient.sh; \
;; \
*) \
curl -O http://packages.devel.onedata.org/oneclient.sh; \
;; \
esac && \
sh oneclient.sh && \
apt clean -y
RUN mkdir -p /run/docker/plugins /mnt/state /mnt/volumes /go/bin
COPY docker-volume-onedata /go/bin/docker-volume-onedata
RUN chmod 0775 /go/bin/docker-volume-onedata
CMD ["/go/bin/docker-volume-onedata"]