-
Notifications
You must be signed in to change notification settings - Fork 1
/
bccutil-prow.Dockerfile
48 lines (38 loc) · 1.74 KB
/
bccutil-prow.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
FROM quay.io/ivanhorvath/ccutil:amazing as builder
COPY ./aura.tar.gz /
# Install Python 3.11 dependencies and build from source without changing the system Python
RUN yum update -y \
&& yum install -y jq curl ruby ruby-devel git \
gcc openssl-devel bzip2-devel libffi-devel zlib-devel make \
&& yum clean all \
&& curl -o /tmp/Python-3.11.0.tgz https://www.python.org/ftp/python/3.11.0/Python-3.11.0.tgz \
&& tar -xzf /tmp/Python-3.11.0.tgz -C /tmp \
&& cd /tmp/Python-3.11.0 \
&& ./configure --enable-optimizations \
&& make altinstall \
&& ln -sf /usr/local/bin/python3.11 /usr/bin/python3.11 \
&& rm -rf /tmp/Python-3.11.0*
# Add Python 3.11 to the path for this container environment without overriding the system Python
ENV PATH="/usr/local/bin:${PATH}"
# Install required Python packages with Python 3.11
RUN python3.11 -m ensurepip \
&& python3.11 -m pip install --no-cache --upgrade pip setuptools wheel \
&& python3.11 -m pip install --no-cache-dir lxml pyyaml requests yamllint pillow --use-deprecated=legacy-resolver \
&& python3.11 -m pip install --no-cache-dir /aura.tar.gz \
&& rm -rf /var/cache/yum /tmp/* /var/tmp/*
# Install Node.js and Netlify CLI
RUN curl -fsSL https://rpm.nodesource.com/setup_16.x | bash - \
&& yum install -y nodejs \
&& yum clean all \
&& rm -rf /var/cache/yum
RUN npm install -g [email protected] --unsafe-perm=true
# Install Asciidoctor and Asciidoctor Diagram
RUN gem install asciidoctor-diagram && \
# Need to stay on asciidoctor 2.0.20
gem install asciidoctor -v 2.0.20 && \
gem uninstall asciidoctor -v '> 2.0.20' && \
yum clean all && \
asciidoctor -v
RUN git config --system --add safe.directory '*'
WORKDIR /ocpd-src
CMD ["/bin/sh"]