mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-06 23:39:31 +03:00
add example docker file for testing on manylinux-x64
This commit is contained in:
parent
b9b321d328
commit
d5ac4f7b95
2 changed files with 32 additions and 0 deletions
22
docker/manylinux-x64/Dockerfile
Normal file
22
docker/manylinux-x64/Dockerfile
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
FROM quay.io/pypa/manylinux2014_x86_64
|
||||||
|
|
||||||
|
# Install tools
|
||||||
|
RUN yum install -y openssl-devel
|
||||||
|
RUN yum install -y gcc gcc-c++ kernel-devel make
|
||||||
|
RUN yum install -y git cmake
|
||||||
|
RUN yum install -y vim
|
||||||
|
|
||||||
|
RUN mkdir -p /home/dev
|
||||||
|
WORKDIR /home/dev
|
||||||
|
|
||||||
|
# Get mimalloc
|
||||||
|
RUN git clone https://github.com/microsoft/mimalloc -b dev-slice
|
||||||
|
RUN mkdir -p mimalloc/out/release
|
||||||
|
RUN mkdir -p mimalloc/out/debug
|
||||||
|
|
||||||
|
# Build mimalloc debug
|
||||||
|
WORKDIR /home/dev/mimalloc/out/debug
|
||||||
|
RUN cmake ../.. -DMI_DEBUG_FULL=ON
|
||||||
|
RUN make -j
|
||||||
|
|
||||||
|
CMD ["/bin/sh"]
|
10
docker/readme.md
Normal file
10
docker/readme.md
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
Various example docker files used for testing.
|
||||||
|
|
||||||
|
Usage:
|
||||||
|
|
||||||
|
```
|
||||||
|
> cd <host>
|
||||||
|
> docker build -t <host>-mimalloc .
|
||||||
|
> docker run -it <host>-mimalloc
|
||||||
|
>> make test
|
||||||
|
```
|
Loading…
Add table
Reference in a new issue