mirror of
https://github.com/corda/corda.git
synced 2025-01-30 16:14:39 +00:00
add dockerfile for windows cross-compilation
This commit is contained in:
parent
08826580c5
commit
1a0153a99e
@ -1,10 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
if test $# -eq 0; then
|
|
||||||
echo "Usage: $0 <command_to_run_in_docker>"
|
|
||||||
echo "Ex: $0 make test"
|
|
||||||
echo "Ex: $0 ./test/ci.sh"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
docker run --rm -i -t -v $(cd $(dirname "$0") && pwd):/var/avian -u $(id -u "${USER}") joshuawarner32/avian-build "${@}"
|
|
35
docker/build.sh
Executable file
35
docker/build.sh
Executable file
@ -0,0 +1,35 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if test $# -eq 0; then
|
||||||
|
echo "Usage: $0 [--container <container_name>] -- <command_to_run_in_docker>"
|
||||||
|
echo "Ex: $0 make test"
|
||||||
|
echo "Ex: $0 ./test/ci.sh"
|
||||||
|
echo "Ex: $0 --container joshuawarner32/avian-build-windows -- make platform=windows"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
while test $# > 1 ; do
|
||||||
|
key="$1"
|
||||||
|
case $key in
|
||||||
|
-c|--container)
|
||||||
|
shift
|
||||||
|
CONTAINER="$1"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
--)
|
||||||
|
shift
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
if test -z $CONTAINER; then
|
||||||
|
CONTAINER=joshuawarner32/avian-build
|
||||||
|
fi
|
||||||
|
|
||||||
|
DIR=$(cd $(dirname "$0") && cd .. && pwd)
|
||||||
|
|
||||||
|
docker run --rm -i -t -v "${DIR}":/var/avian -u $(id -u "${USER}") "${CONTAINER}" "${@}"
|
23
docker/windows/Dockerfile
Normal file
23
docker/windows/Dockerfile
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
FROM joshuawarner32/avian-build
|
||||||
|
MAINTAINER Joshua Warner, joshuawarner32@gmail.com
|
||||||
|
|
||||||
|
# Install cross-compile toolchain and emulator for testing
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install -y \
|
||||||
|
mingw-w64 \
|
||||||
|
wget \
|
||||||
|
unzip \
|
||||||
|
--no-install-recommends && \
|
||||||
|
apt-get clean all
|
||||||
|
|
||||||
|
# Download win32 and win64 adjacent to avian
|
||||||
|
RUN cd .. && \
|
||||||
|
wget https://github.com/ReadyTalk/win32/archive/master.zip -O win32.zip && \
|
||||||
|
unzip win32.zip && \
|
||||||
|
rm win32.zip && \
|
||||||
|
mv win32-* win32 && \
|
||||||
|
wget https://github.com/ReadyTalk/win64/archive/master.zip -O win64.zip && \
|
||||||
|
unzip win64.zip && \
|
||||||
|
rm win64.zip && \
|
||||||
|
mv win64-* win64
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user