Simplify ADML-HTTP image UX
authorEduardo Ramos Testillano (ert) <eduardo.ramos.testillano@gmail.com>
Sun, 25 Jul 2021 14:28:49 +0000 (16:28 +0200)
committerEduardo Ramos Testillano (ert) <eduardo.ramos.testillano@gmail.com>
Sun, 25 Jul 2021 14:28:49 +0000 (16:28 +0200)
CMakeLists.txt
docker-images/anna-adml-http/Dockerfile
docker-images/anna-adml-http/starter.sh
tools/build-anna-adml-http

index 293ef7f..9647c33 100644 (file)
@@ -12,7 +12,7 @@ enable_language(C CXX)
 # Project version
 set(VERSION_MAJOR 1)
 set(VERSION_MINOR 0)
-set(VERSION_PATCH 1)
+set(VERSION_PATCH 2)
 
 # Dynamic libraries not linked to build tree:
 set(CMAKE_SKIP_RPATH TRUE)
index c155c3e..382ab57 100644 (file)
@@ -19,6 +19,12 @@ EXPOSE 8074
 WORKDIR /opt/adml
 
 #ENV TZ=Europe/Madrid
+ENV LD_LIBRARY_PATH=/opt/adml/dynlibs
+
+# Simplify docker image UX:
+RUN rm args.* operation.sh start.sh stop.sh
+RUN mv *.md utils
 
 ENTRYPOINT ["sh", "/var/starter.sh"]
 CMD []
+
index cd4c629..63fcb29 100644 (file)
@@ -1,8 +1,7 @@
 #!/bin/sh
 
 # Start ADML agent:
-cd /opt/adml
-./start.sh $@
+./ADML $@ &
 
 # Execute nginx server:
 exec $(which nginx) -c /etc/nginx/nginx.conf -g "daemon off;"
index a7e7e4d..7d72295 100755 (executable)
@@ -31,9 +31,10 @@ rm -rf ${AD}
 echo ${AD} | ${REPO_DIR}/example/diameter/launcher/deploy-adml-http.sh ${VARIANT} || exit 1
 
 # Add interesting stuff:
-cp -r ${REPO_DIR}/example/diameter/launcher/resources/rest_api/helpers/diameterJsonHelper ${AD}
-cp ${REPO_DIR}/example/diameter/pcapDecoder/tsharkDecoder.sh ${AD}
-cp ${REPO_DIR}/example/diameter/launcher/resources/scripts/decode.sh ${AD}
+mkdir ${AD}/utils
+cp -r ${REPO_DIR}/example/diameter/launcher/resources/rest_api/helpers/diameterJsonHelper ${AD}/utils
+cp ${REPO_DIR}/example/diameter/pcapDecoder/tsharkDecoder.sh ${AD}/utils
+cp ${REPO_DIR}/example/diameter/launcher/resources/scripts/decode.sh ${AD}/utils
 
 echo
 echo "Generate docker image ..."