diff --git a/pom.xml b/pom.xml index 7585010..992f153 100644 --- a/pom.xml +++ b/pom.xml @@ -188,6 +188,22 @@ resources + + copy-docker + validate + + copy-resources + + + ${basedir}/target + + + src/main/docker + true + + + + @@ -201,14 +217,18 @@ uAAL-MW - - uAAL-Ont.PhWorld - uAAL-Ont.Device - uAAL-Ont.CHe - uAAL-Ont.Profile - + + uAAL-Ont.PhWorld + uAAL-Ont.Device + uAAL-Ont.CHe + uAAL-Ont.Profile + - + + diff --git a/src/main/docker/Dokerfile b/src/main/docker/Dockerfile similarity index 65% rename from src/main/docker/Dokerfile rename to src/main/docker/Dockerfile index e641936..1069622 100644 --- a/src/main/docker/Dokerfile +++ b/src/main/docker/Dockerfile @@ -3,7 +3,10 @@ LABEL maintainer="amedrano@lst.tfo.upm.es" #ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64 RUN mkdir /uAAL -COPY ../../../target/assembly/* /uAAL/ +COPY assembly/ /uAAL/ + +#RUN ls -lha /uAAL/ +#RUN chmod +x /uAAL/bin VOLUME ["/uAAL/data"] VOLUME ["/uAAL/etc"] @@ -13,6 +16,6 @@ EXPOSE 8081 9000 #TODO expose uAAL discovering and peering ports #EXPOSE 1099 8101 44444 # Karaf ports -sed -i "21s/out/stdout/" /uAAL/etc/org.ops4j.pax.logging.cfg; +RUN sed -i "21s/out/stdout/" /uAAL/etc/org.ops4j.pax.logging.cfg; -CMD ["/uAAL/bin/karaf"] \ No newline at end of file +CMD ["/uAAL/bin/karaf"]