mirror of
https://github.com/microsoft/mimalloc.git
synced 2024-12-26 12:41:10 +08:00
add alpine docker files
This commit is contained in:
parent
d5ac4f7b95
commit
836ee0a94c
2
.gitignore
vendored
2
.gitignore
vendored
@ -7,3 +7,5 @@ ide/vs20??/VTune*
|
|||||||
out/
|
out/
|
||||||
docs/
|
docs/
|
||||||
*.zip
|
*.zip
|
||||||
|
*.tar
|
||||||
|
*.gz
|
||||||
|
28
docker/alpine-arm32v7/Dockerfile
Normal file
28
docker/alpine-arm32v7/Dockerfile
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
# install from an image
|
||||||
|
# download first an appropiate 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 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
|
||||||
|
RUN make test
|
||||||
|
|
||||||
|
CMD ["/bin/sh"]
|
23
docker/alpine/Dockerfile
Normal file
23
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 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
|
||||||
|
RUN make test
|
||||||
|
|
||||||
|
CMD ["/bin/sh"]
|
@ -18,5 +18,6 @@ RUN mkdir -p mimalloc/out/debug
|
|||||||
WORKDIR /home/dev/mimalloc/out/debug
|
WORKDIR /home/dev/mimalloc/out/debug
|
||||||
RUN cmake ../.. -DMI_DEBUG_FULL=ON
|
RUN cmake ../.. -DMI_DEBUG_FULL=ON
|
||||||
RUN make -j
|
RUN make -j
|
||||||
|
RUN make test
|
||||||
|
|
||||||
CMD ["/bin/sh"]
|
CMD ["/bin/sh"]
|
Loading…
x
Reference in New Issue
Block a user