Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Zied SELLAMI
priority-inbox
Commits
1623df66
Commit
1623df66
authored
Jan 29, 2019
by
Zied SELLAMI
Browse files
Add dockerfile
parent
d707db41
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
70 additions
and
3 deletions
+70
-3
Dockerfile
Dockerfile
+20
-0
priorityInbox/CONFIG
priorityInbox/CONFIG
+3
-3
priorityInbox/CONFIG_Docker
priorityInbox/CONFIG_Docker
+6
-0
priorityInbox/test.json
priorityInbox/test.json
+41
-0
No files found.
Dockerfile
0 → 100644
View file @
1623df66
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
priorityInbox/CONFIG
View file @
1623df66
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
priorityInbox/CONFIG_Docker
0 → 100644
View file @
1623df66
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
priorityInbox/test.json
0 → 100644
View file @
1623df66
{
"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"
:
"
\n
Dear,
\n\n
this a test of the priority inbox
\n
regards, first_name last_name of to1
\n
Director 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment