[NO ISSUE] Make asterix-docker work again
Change-Id: I6fef4413e43e683238b46dc735c075ec02ac9e92
Reviewed-on: https://asterix-gerrit.ics.uci.edu/3529
Contrib: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Sonar-Qube: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Michael Blow <mblow@apache.org>
diff --git a/asterixdb/asterix-docker/docker/Dockerfile b/asterixdb/asterix-docker/docker/Dockerfile
index 58c2c1a..8fa3ab4 100644
--- a/asterixdb/asterix-docker/docker/Dockerfile
+++ b/asterixdb/asterix-docker/docker/Dockerfile
@@ -22,12 +22,12 @@
RUN echo 'LANG="en_US.UTF-8"' > /etc/sysconfig/i18n ;echo 'ZONE="America/Los_Angeles"' > /etc/sysconfig/clock ;cp -a /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
RUN echo "include_only=.us" >> /etc/yum/pluginconf.d/fastestmirror.conf
RUN yum -y update
-RUN yum install -y unzip java-1.8.0-openjdk openssh-server openssh-clients python-setuptools wget curl
+RUN yum install -y unzip java-11-openjdk-headless python-setuptools wget curl
RUN easy_install supervisor
RUN mkdir /asterixdb
COPY asterix-server*.zip .
RUN unzip asterix-server*.zip -d /asterixdb/
-COPY asterix-configuration.xml /asterixdb/bin/asterix-configuration.xml
+RUN mv /asterixdb/apache*/* /asterixdb/
COPY supervisord.conf /etc/supervisord.conf
COPY twu.adm /asterixdb/twu.adm
COPY twm.adm /asterixdb/twm.adm
@@ -35,7 +35,7 @@
COPY fbm.adm /asterixdb/fbm.adm
WORKDIR /asterixdb/bin
-ENV JAVA_HOME /usr/lib/jvm/jre-1.8.0
+ENV JAVA_HOME /usr/lib/jvm/jre
ENV JAVA_OPTS -Xmx1536m
EXPOSE 19001 19002 8888 19003 50031
diff --git a/asterixdb/asterix-docker/docker/supervisord.conf b/asterixdb/asterix-docker/docker/supervisord.conf
index b6ce1e0..20f1797 100644
--- a/asterixdb/asterix-docker/docker/supervisord.conf
+++ b/asterixdb/asterix-docker/docker/supervisord.conf
@@ -18,22 +18,22 @@
[supervisord]
nodaemon=true
-[program:asterixcc]
-command=/asterixdb/bin/asterixcc -address localhost -client-listen-address localhost
-stdout_logfile=/dev/stdout
-stdout_logfile_maxbytes=0
-stderr_logfile=/dev/stderr
-stderr_logfile_maxbytes=0
-
[program:asterixnc1]
-command=/asterixdb/bin/asterixnc -node-id nc1 -cluster-address localhost -iodevices /asterixdb/nc1 -address localhost -data-listen-address localhost -result-listen-address localhost
+command=/asterixdb/bin/asterixncservice -logdir - -config-file "/asterixdb/opt/local/conf/blue.conf"
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:asterixnc2]
-command=/asterixdb/bin/asterixnc -node-id nc2 -cluster-address localhost -iodevices /asterixdb/nc2 -address localhost -data-listen-address localhost -result-listen-address localhost
+command=/asterixdb/bin/asterixncservice -logdir -
+stdout_logfile=/dev/stdout
+stdout_logfile_maxbytes=0
+stderr_logfile=/dev/stderr
+stderr_logfile_maxbytes=0
+
+[program:asterixcc]
+command=/asterixdb/bin/asterixcc -config-file "/asterixdb/opt/local/conf/cc.conf"
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr