-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
src/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM maven:3-jdk-6 | ||
# build arguments | ||
ARG ANT=./src/apache-ant-1.8.4 | ||
ARG LUCENE=./src/lucene-solr | ||
# move source code into container | ||
ADD $ANT /code/ant | ||
ADD $LUCENE /code/lucene | ||
# setup build environment | ||
ENV JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-amd64 | ||
ENV ANT_HOME=/code/ant | ||
ENV PATH=$PATH:$ANT_HOME/bin | ||
ENV CLASSPATH=/code/class | ||
# initial source code build | ||
WORKDIR /code/lucene | ||
ADD build.sh /bin | ||
RUN build.sh | ||
CMD bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/sh | ||
TARGETS=${1-jar-core jar-demo} | ||
set -xe | ||
|
||
# java build (compile) | ||
rm -rf build index | ||
ant $TARGETS | ||
|
||
# java build (install) | ||
mkdir -p $CLASSPATH && rm -rf $CLASSPATH/* | ||
cp build/*.jar $CLASSPATH | ||
(cd $CLASSPATH && find -name '*.jar' -exec jar -xf {} \;) |