forked from suparna-khamaru/rps-ant
-
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
1 parent
4b2d19a
commit c110437
Showing
1 changed file
with
24 additions
and
0 deletions.
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,24 @@ | ||
FROM alpine:3.5 | ||
|
||
#Create Ant Dir | ||
RUN mkdir -p /opt/ant/ | ||
#Download And 1.9.8 | ||
RUN wget http://archive.apache.org/dist/ant/binaries/apache-ant-1.9.8-bin.tar.gz -P /opt/ant | ||
#Unpack Ant | ||
RUN tar -xvzf /opt/ant/apache-ant-1.9.8-bin.tar.gz -C /opt/ant/ | ||
# Remove tar file | ||
RUN rm -f /opt/ant/apache-ant-1.9.8-bin.tar.gz | ||
#Drop Sonarqube lib | ||
RUN wget http://downloads.sonarsource.com/plugins/org/codehaus/sonar-plugins/sonar-ant-task/2.3/sonar-ant-task-2.3.jar -P /opt/ant/apache-ant-1.9.8/lib/ | ||
#Install JDK 1.8 | ||
RUN apk --update add openjdk8 | ||
#Install GIT | ||
RUN apk --update add git | ||
#Install Curl | ||
RUN apk --update add curl | ||
#Setting Ant Home | ||
ENV ANT_HOME=/opt/ant/apache-ant-1.9.8 | ||
#Setting Ant Params | ||
ENV ANT_OPTS="-Xms256M -Xmx512M" | ||
#Updating Path | ||
ENV PATH="${PATH}:${HOME}/bin:${ANT_HOME}/bin" |