-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/dockerization' into develop
- Loading branch information
Showing
6 changed files
with
93 additions
and
43 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,15 @@ | ||
.metadata | ||
|
||
**/.settings | ||
**/.gitignore | ||
**/*.RELEASE | ||
**/lib/ | ||
**/classes/ | ||
|
||
## Project specific files: | ||
IntegratedAlarmSystemRoot | ||
|
||
#### For exceptions stop ignoring using '!<file_to_stop_ignoring>'. E.g: | ||
#### !Cdb/extTools/antlr-2.7.7.jar | ||
|
||
Dockerfile |
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,29 @@ | ||
FROM openjdk:8 | ||
|
||
# Install Apache Ant | ||
RUN apt-get update && apt-get -y install ant ant-contrib | ||
|
||
# Install Scala | ||
RUN wget http://scala-lang.org/files/archive/scala-2.12.1.deb && \ | ||
dpkg -i scala-2.12.1.deb && \ | ||
apt-get update && \ | ||
apt-get -y install scala | ||
|
||
# Install Python 3 | ||
RUN apt-get update && apt-get install python3 -y && \ | ||
update-alternatives --install /usr/bin/python python /usr/bin/python3 1 | ||
|
||
RUN mkdir -p /usr/src/IntegratedAlarmSystemRoot | ||
WORKDIR /usr/src/ias | ||
COPY . /usr/src/ias | ||
|
||
ENV JRE_HOME $JAVA_HOME/jre | ||
ENV SCALA_HOME /usr/share/scala | ||
ENV IAS_ROOT /usr/src/IntegratedAlarmSystemRoot | ||
|
||
RUN bash -c "source Tools/config/ias-bash-profile.sh && ant build" | ||
|
||
ENV PATH $PATH:/usr/src/ias/Tools/bin | ||
|
||
COPY entrypoint.sh /usr/src/ias | ||
ENTRYPOINT ["./entrypoint.sh"] |
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
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,5 @@ | ||
#!/bin/bash | ||
|
||
source Tools/config/ias-bash-profile.sh | ||
"${@}" | ||
sleep infinity |