forked from microsoft/hdfs-mount
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (29 loc) · 950 Bytes
/
Dockerfile
File metadata and controls
40 lines (29 loc) · 950 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
34
35
36
37
38
39
40
# Copyright (c) Hopsworks AB. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for details.
FROM oraclelinux:8
ARG userid=1000
ARG groupid=1000
ARG user=hopsfs
# Install required packages (including gcc, hostname, tar, gzip, and git)
RUN yum -y update && \
yum install -y wget git make gcc hostname tar gzip && \
yum clean all
RUN cd /tmp; \
wget https://go.dev/dl/go1.26.1.linux-amd64.tar.gz
RUN cd /tmp; \
ls -al; \
rm -rf /usr/local/go; \
tar -C /usr/local -xzf go1.26.1.linux-amd64.tar.gz
RUN groupadd hopsfs --gid ${groupid}; \
useradd -ms /bin/bash hopsfs --uid ${userid} --gid ${groupid};
RUN mkdir /src; \
chmod 777 /src
ENV PATH=$PATH:/usr/local/go/bin
ENV GOPATH=/go
RUN mkdir /go; \
chmod 777 /go
USER hopsfs
RUN echo $PATH && \
echo $GOPATH && \
go install github.com/golang/mock/mockgen@v1.6.0 && \
echo "export PATH=$PATH:/go/bin" >> /home/hopsfs/.bashrc