mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 19:38:41 +03:00
move docker files
This commit is contained in:
parent
0be6db0e28
commit
3f91c9f937
6 changed files with 16 additions and 0 deletions
28
contrib/docker/alpine-arm32v7/Dockerfile
Normal file
28
contrib/docker/alpine-arm32v7/Dockerfile
Normal file
|
@ -0,0 +1,28 @@
|
|||
# install from an image
|
||||
# download first an appropriate tar.gz image into the current directory
|
||||
# from: <https://github.com/alpinelinux/docker-alpine/tree/edge/armv7>
|
||||
FROM scratch
|
||||
|
||||
# Substitute the image name that was downloaded
|
||||
ADD alpine-minirootfs-20240329-armv7.tar.gz /
|
||||
|
||||
# Install tools
|
||||
RUN apk add build-base make cmake
|
||||
RUN apk add git
|
||||
RUN apk add vim
|
||||
|
||||
RUN mkdir -p /home/dev
|
||||
WORKDIR /home/dev
|
||||
|
||||
# Get mimalloc
|
||||
RUN git clone https://github.com/microsoft/mimalloc -b dev2
|
||||
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
|
||||
RUN make test
|
||||
|
||||
CMD ["/bin/sh"]
|
23
contrib/docker/alpine/Dockerfile
Normal file
23
contrib/docker/alpine/Dockerfile
Normal file
|
@ -0,0 +1,23 @@
|
|||
# alpine image
|
||||
FROM alpine
|
||||
|
||||
# Install tools
|
||||
RUN apk add build-base make cmake
|
||||
RUN apk add git
|
||||
RUN apk add vim
|
||||
|
||||
RUN mkdir -p /home/dev
|
||||
WORKDIR /home/dev
|
||||
|
||||
# Get mimalloc
|
||||
RUN git clone https://github.com/microsoft/mimalloc -b dev2
|
||||
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
|
||||
RUN make test
|
||||
|
||||
CMD ["/bin/sh"]
|
23
contrib/docker/manylinux-x64/Dockerfile
Normal file
23
contrib/docker/manylinux-x64/Dockerfile
Normal file
|
@ -0,0 +1,23 @@
|
|||
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 dev2
|
||||
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
|
||||
RUN make test
|
||||
|
||||
CMD ["/bin/sh"]
|
10
contrib/docker/readme.md
Normal file
10
contrib/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
Add a link
Reference in a new issue