-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (26 loc) · 1007 Bytes
/
Dockerfile
File metadata and controls
41 lines (26 loc) · 1007 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
FROM public.ecr.aws/ubuntu/ubuntu:22.04
ARG http_proxy
ARG https_proxy
ARG no_proxy
ARG MOD
ENV AWS_PAGER=""
ENV VERBOSE="true"
ENV DEBIAN_FRONTEND=noninteractive
RUN adduser --uid 1000 --gid 100 --shell /bin/bash sagemaker-user
RUN usermod -aG sudo sagemaker-user
RUN mkdir -p /etc/sudoers.d /aws-do-hyperpod
RUN echo "%sudo ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/nopasswd && chmod 0440 /etc/sudoers.d/nopasswd
ADD Container-Root /
RUN rm -f /hyperpod/conf
ADD wd/conf /hyperpod/conf
RUN export http_proxy=$http_proxy; export https_proxy=$https_proxy; export no_proxy=$no_proxy; export MOD=$MOD; /setup.sh; rm -f /setup.sh
RUN mkdir -p /wd /aws-do-hyperpod
RUN chown -R sagemaker-user:users /hyperpod /wd /aws-do-hyperpod
RUN chown sagemaker-user:users /*.sh /*.txt
USER sagemaker-user
RUN /hyperpod/setup/eks/install-kubeps1.sh
RUN /hyperpod/setup/install-bashrc.sh
RUN /hyperpod/setup/eks/install-krew.sh
RUN /hyperpod/setup/eks/install-stern.sh
WORKDIR /aws-do-hyperpod
CMD /startup.sh