diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b73b4cb --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM eclipse-temurin:17-alpine +COPY target/burns-mail-0.1.jar burns-mail-0.1.jar +ENTRYPOINT ["java", "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005","-jar","/burns-mail-0.1.jar"] \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..528f6d1 --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +# BurnsMail + +## Goals + +* connect to mailbox +* connect to ollama +* check mail +* move to burn folder \ No newline at end of file diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..c7618cd --- /dev/null +++ b/build.sh @@ -0,0 +1,12 @@ +#!/bin/bash + + +mvn clean install && + +docker build -t io42630/burns-mail:0.1 . && + +docker compose up --force-recreate & + + + + diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..f3f5a16 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,19 @@ +version: '3' +services: + + # See .env for vars. + burns-mail: + container_name: burns-mail + image: io42630/burns-mail:0.1 + environment: + - spring.mail.host=${SPRING_EMAIL_HOST} + - spring.mail.port=${SPRING_EMAIL_PORT} + - spring.mail.username=${SPRING_EMAIL_USERNAME} + - spring.mail.password=${SPRING_EMAIL_PASSWORD} + - spring.mail.properties.mail.smtp.auth=true + - spring.mail.properties.mail.smtp.starttls.enable=true + + + + + diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..360426f --- /dev/null +++ b/pom.xml @@ -0,0 +1,40 @@ + + + 4.0.0 + + com.olexyn + zeeroot + spring-boot-jdk17-0.1 + + burns-mail + 0.1 + burns-mail + burns-mail + + + + com.olexyn + zeebom + 1.1.1 + pom + import + + + + + + org.springframework.boot + spring-boot-starter-mail + + + org.springframework.boot + spring-boot-starter-test + test + + + + org.aspectj + aspectjweaver + + + diff --git a/push.sh b/push.sh new file mode 100644 index 0000000..11ceb27 --- /dev/null +++ b/push.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +docker push io42630/burns-mail:0.1 + + + + diff --git a/src/main/java/com/olexyn/burnsmail/BurnsMailApplication.java b/src/main/java/com/olexyn/burnsmail/BurnsMailApplication.java new file mode 100644 index 0000000..e7142bf --- /dev/null +++ b/src/main/java/com/olexyn/burnsmail/BurnsMailApplication.java @@ -0,0 +1,16 @@ +package com.olexyn.burnsmail; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.context.annotation.EnableAspectJAutoProxy; + +@SpringBootApplication + +@EnableAspectJAutoProxy(proxyTargetClass = true) +public class BurnsMailApplication { + + public static void main(String[] args) { + SpringApplication.run(BurnsMailApplication.class, args); + } + +} diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/src/main/resources/application.properties @@ -0,0 +1 @@ + diff --git a/src/test/java/com/olexyn/burnsmail/BurnsMailApplicationTests.java b/src/test/java/com/olexyn/burnsmail/BurnsMailApplicationTests.java new file mode 100644 index 0000000..4881bcd --- /dev/null +++ b/src/test/java/com/olexyn/burnsmail/BurnsMailApplicationTests.java @@ -0,0 +1,13 @@ +package com.olexyn.burnsmail; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class BurnsMailApplicationTests { + + @Test + void contextLoads() { + } + +}