-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
87 lines (73 loc) · 2.49 KB
/
Copy pathDockerfile
File metadata and controls
87 lines (73 loc) · 2.49 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
FROM --platform=linux/amd64 fedora:40 AS build
# DEP STUFF - Fedora packages for building Python and cinderx
RUN dnf install -y \
gcc \
gcc-c++ \
make \
ccache \
curl \
cmake \
gdb \
git \
lcov \
bzip2-devel \
libffi-devel \
gdbm-devel \
xz-devel \
ncurses-devel \
readline-devel \
sqlite-devel \
openssl-devel \
tk-devel \
libuuid-devel \
xorg-x11-server-Xvfb \
zlib-devel \
python3 \
python3-pip \
wget \
which \
expat-devel \
&& dnf clean all
# CINDER STUFF - copy and build (rarely changes)
COPY --chmod=0755 cinder/ /cinder/
WORKDIR /cinder
RUN ./configure \
CFLAGS="-Wno-error -Wno-error=strict-prototypes" \
CXXFLAGS="-Wno-error" \
&& make -j$(nproc) CFLAGS="-Wno-error -Wno-error=strict-prototypes"
WORKDIR /cinder/cinderx
RUN ./build.sh --build-root /cinder --python-bin /cinder/python --output-dir /cinder
RUN ls -la /cinder/*.so || echo "Extension files:" && find /cinder -name "_cinderx*.so" -o -name "_static*.so" 2>/dev/null | head -20
ENV PATH="/cinder:${PATH}"
ENV PYTHONPATH="/cinder"
# DEV TOOLS (stable, rarely change)
WORKDIR /root
# helix
RUN curl -LO https://github.com/helix-editor/helix/releases/download/25.01/helix-25.01-x86_64-linux.tar.xz && \
tar xf helix-25.01-x86_64-linux.tar.xz && \
mv helix-25.01-x86_64-linux /opt/helix && \
ln -s /opt/helix/hx /usr/local/bin/hx && \
rm helix-25.01-x86_64-linux.tar.xz
# vs code
RUN curl -Lk 'https://code.visualstudio.com/sha/download?build=stable&os=cli-alpine-x64' --output vscode_cli.tar.gz && \
tar -xf vscode_cli.tar.gz && \
mv code /usr/local/bin/code && \
rm vscode_cli.tar.gz
# zig + poop (commented out for faster iteration)
# RUN curl -LO https://ziglang.org/download/0.15.2/zig-x86_64-linux-0.15.2.tar.xz && \
# tar xf zig-x86_64-linux-0.15.2.tar.xz && \
# mv zig-x86_64-linux-0.15.2 /opt/zig && \
# ln -s /opt/zig/zig /usr/local/bin/zig && \
# rm zig-x86_64-linux-0.15.2.tar.xz
# RUN git clone https://github.com/andrewrk/poop.git && cd poop && zig build
# ENV PATH="/root/poop/zig-out/bin:${PATH}"
# dotfiles
RUN sh -c "$(curl -fsLS get.chezmoi.io)" -- -b /usr/local/bin
ARG DOTFILES_REPO="robertmorelli/dotfiles"
RUN chezmoi init --apply "$DOTFILES_REPO"
# === VOLATILE STUFF BELOW (changes frequently, keep at end) ===
# Benchmarks and scripts
COPY --chmod=0755 static-python-perf/ /root/static-python-perf/
COPY de_typer.py /cinder/Tools/benchmarks/de_typer.py
# ENTRY
CMD ["/bin/bash"]