From c7af93d069dc4aae4feb32a249fc922f9c096402 Mon Sep 17 00:00:00 2001 From: manalejandro Date: Mon, 16 Jul 2018 23:40:08 +0200 Subject: [PATCH] Dockerfile --- Dockerfile | 15 +++++++++++++++ README.md | 5 +++++ 2 files changed, 20 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..439a11f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM debian:stable-slim +RUN apt-get update +RUN apt-get -y upgrade +RUN mkdir /upload /usr/share/man/man1 /usr/share/man/man8 +RUN apt-get -y install --no-install-recommends apt apt-transport-https apt-utils readline-common curl gnupg software-properties-common dirmngr openjdk-8-jdk procps +RUN echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" > /etc/apt/sources.list.d/elastic-6.x.list +RUN apt-key adv --recv-keys D27D666CD88E42B4 +RUN apt-get update +RUN apt-get -y install --no-install-recommends maven tesseract-ocr tesseract-ocr-spa elasticsearch git +RUN sed -i "s/#cluster.name: my-application/cluster.name: elasticsearch/" /etc/elasticsearch/elasticsearch.yml +RUN git clone https://gitlab.com/manalejandro/arjion +RUN mvn clean install -f /arjion/pom.xml +RUN echo "/etc/init.d/elasticsearch start && mvn spring-boot:run -f /arjion/pom.xml" > entrypoint.sh +EXPOSE 8080 +ENTRYPOINT ["bash", "entrypoint.sh"] diff --git a/README.md b/README.md index f81d382..08cffec 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,11 @@ ### Proof of Concept with [SpringBoot 2.1.0](https://start.spring.io/), [ElasticSearch](https://www.elastic.co/) and [Apache Tika](https://tika.apache.org/) +## Docker image + + $ docker build -t debian:arjion --rm https://gitlab.com/manalejandro/arjion/raw/master/Dockerfile + $ docker run -t debian:arjion + ## License MIT \ No newline at end of file