Commit 1623df66 authored by Zied SELLAMI's avatar Zied SELLAMI
Browse files

Add dockerfile

parent d707db41
FROM maven:3.5.4
## ensure locale is set during build
ENV LANG C.UTF-8
WORKDIR /
RUN git clone https://ci.linagora.com/zsellami/priority-inbox.git
WORKDIR priority-inbox/priorityInbox/
RUN mvn install -Dmaven.test.skip=true
RUN mkdir tmp
WORKDIR /
EXPOSE 9991
CMD java -jar -Xmx4G -Xms4G /priority-inbox/priorityInbox/target/priorityInbox-1.0.jar /priority-inbox/priorityInbox/CONFIG_Docker
SERVICE_URL = http://localhost/rest/
SERVICE_PORT = 9991
TMP_DIRECTORY = /home/zsellami/tmp
NOTIFICATION_CHANNEL = channels/
JOB_POSITION_RULE = jobpositions/
TEXT_CLEANER_RULE = TextCleaner.regex
NOTIFICATION_CHANNEL = /home/zsellami/dev/git/priority-inbox/priorityInbox/channels/
JOB_POSITION_RULE = /home/zsellami/dev/git/priority-inbox/priorityInbox/jobpositions/
TEXT_CLEANER_RULE = /home/zsellami/dev/git/priority-inbox/priorityInbox/TextCleaner.regex
SERVICE_URL = http://0.0.0.0/rest/
SERVICE_PORT = 9991
TMP_DIRECTORY = /priority-inbox/priorityInbox/tmp
NOTIFICATION_CHANNEL = /priority-inbox/priorityInbox/channels/
JOB_POSITION_RULE = /priority-inbox/priorityInbox/jobpositions/
TEXT_CLEANER_RULE = /priority-inbox/priorityInbox/TextCleaner.regex
{
"messageId" : "messageId",
"from" : {
"address" : "from@test.com",
"personal" : "first_name last_name"
},
"to" : [ {
"address" : "to1@test.com",
"personal" : "first_name last_name of to1"
} ],
"cc" : [ {
"address" : "cc1@test.com",
"personal" : null
}, {
"address" : "cc2@test.com",
"personal" : "first_name last_name of cc2"
}, {
"address" : "cc3@test.com",
"personal" : "first_name last_name of cc3"
} ],
"bcc" : [ ],
"Received" : "Mon, 28 Jan 2019 07:56:43 +0000",
"Date" : "Mon, 28 Jan 2019 07:56:43 +0000",
"in-Reply-To" : "messageId_in_reply_to",
"subject" : "IMPORTANT: Testing The Priority Inbox",
"body" : "\nDear, \n\n this a test of the priority inbox\n regards, first_name last_name of to1\nDirector Tester",
"attachments" : [{
"file_size" : "243534",
"content_name" : "presentation.pdf",
"content_type" : "APPLICATION/PDF"
}, {
"file_size": "243534",
"content_name" : "APPLICATION/PDF",
"content_type" : "performance.pdf"
}],
"emailFolder" : "INBOX",
"user" : "first_name last_name of to1",
"alternativeAddress" : [ "t1@test.com", "first_name.last_name@test.com" ],
"X-Spam-Flag" : "NO"
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment