This is an automated email from the ASF dual-hosted git repository.

jochen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-crypto.git


The following commit(s) were added to refs/heads/master by this push:
     new 6e8cebe  Suggesting build with Docker.
6e8cebe is described below

commit 6e8cebe7a856c83f5b8c020860c40f4d627bedea
Author: Jochen Wiedmann <jochen.wiedm...@gmail.com>
AuthorDate: Wed May 18 17:06:13 2022 +0200

    Suggesting build with Docker.
---
 src/docker/Dockerfile | 26 ++++++++++++++++++++++++++
 src/docker/README.md  |  5 +++++
 2 files changed, 31 insertions(+)

diff --git a/src/docker/Dockerfile b/src/docker/Dockerfile
new file mode 100644
index 0000000..e03c836
--- /dev/null
+++ b/src/docker/Dockerfile
@@ -0,0 +1,26 @@
+FROM ubuntu:bionic-20220401
+RUN dpkg --add-architecture i386
+RUN apt update
+RUN apt-get -y install gcc
+RUN apt-get -y install g++
+RUN apt-get -y install make
+RUN apt-get -y install wget curl
+RUN apt-get -y install git
+RUN apt-get -y install openjdk-8-jdk
+RUN apt-get -y -oDebug::pkgAcquire::Worker=1 install openjdk-11-jdk 
+RUN apt-get install -y mingw-w64
+# This package is documented in BUILDING.txt, but doesn't appear to be 
available.
+# RUN apt-get install -y x86_64-w64-mingw32-gcc
+RUN apt-get install -y gcc-mingw-w64-i686
+RUN apt-get install -y libssl-dev:i386 libssl-dev
+RUN apt-get install -y g++-multilib
+RUN mkdir -p /usr/local/build
+WORKDIR /usr/local/build
+RUN wget 
https://dlcdn.apache.org/maven/maven-3/3.8.5/binaries/apache-maven-3.8.5-bin.tar.gz
+RUN tar xzf apache-maven-3.8.5-bin.tar.gz
+RUN ln -s ../build/apache-maven-3.8.5/bin/mvn /usr/local/bin
+RUN git clone https://gitbox.apache.org/repos/asf/commons-crypto.git 
commons-crypto
+WORKDIR /usr/local/build/commons-crypto
+RUN VERSION=1.1.1-SNAPSHOT JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 make
+RUN mvn
+CMD bash
diff --git a/src/docker/README.md b/src/docker/README.md
new file mode 100644
index 0000000..b8d2030
--- /dev/null
+++ b/src/docker/README.md
@@ -0,0 +1,5 @@
+# Building with Docker
+
+```
+  docker image build -t apache/commons-crypto:<VERSION>
+```

Reply via email to