This repository has been archived by the owner on Sep 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
62 lines (45 loc) · 1.82 KB
/
Dockerfile
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && \
apt-get install -y wget openjdk-8-jdk git ccache automake \
lzop bison gperf build-essential zip curl \
zlib1g-dev g++-multilib python3-networkx \
libxml2-utils bzip2 libbz2-dev libbz2-1.0 \
libghc-bzlib-dev squashfs-tools pngcrush \
schedtool dpkg-dev liblz4-tool make optipng maven \
libssl-dev bc bsdmainutils gettext python3-mako \
libelf-dev sbsigntool dosfstools mtools efitools \
python3-pystache git-lfs python-is-python3 flex clang libncurses5 \
fakeroot ncurses-dev xz-utils cryptsetup-bin \
apt-transport-https ca-certificates curl lsb-release \
rsync vim python-six kmod\
software-properties-common cpio python3-pip ninja-build \
cutils cmake pkg-config xorriso mtools libjson-c-dev file
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash && \
apt-get update && \
apt-get -y install git-lfs
RUN pip3 install meson==0.60.0
RUN pip3 install mako==1.1.0
RUN pip3 install dataclasses
RUN pip3 install pycryptodome
RUN pip3 install ply==3.11
RUN apt-get install -y sudo --option=Dpkg::Options::=--force-confdef
ADD ./sudoers /etc/sudoers
WORKDIR /usr/local/
RUN apt update && apt install -y glslang-tools
WORKDIR /
#creating user celadonuser
ENV CUSER celadon
ENV CUSERHOME /home/$CUSER
ENV CGRP celadon
RUN groupadd -g 9999 $CGRP && \
useradd -m -d $CUSERHOME -g $CGRP $CUSER
ADD ./.gitconfig ${CUSERHOME}
RUN chown celadon:celadon $CUSERHOME/.gitconfig
USER $CUSER
WORKDIR /home/$CUSER
#google repo installation steps
RUN mkdir -p ${CUSERHOME}/.bin
ENV PATH ${CUSERHOME}/.bin:${PATH}
RUN curl https://storage.googleapis.com/git-repo-downloads/repo > ${CUSERHOME}/.bin/repo
RUN chmod a+rx ${CUSERHOME}/.bin/repo