master
io42630 1 year ago
parent e9676ebaf5
commit a2b4094e79

@ -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"]

@ -0,0 +1,8 @@
# BurnsMail
## Goals
* connect to mailbox
* connect to ollama
* check mail
* move to burn folder

@ -0,0 +1,12 @@
#!/bin/bash
mvn clean install &&
docker build -t io42630/burns-mail:0.1 . &&
docker compose up --force-recreate &

@ -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

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.olexyn</groupId>
<artifactId>zeeroot</artifactId>
<version>spring-boot-jdk17-0.1</version>
</parent>
<artifactId>burns-mail</artifactId>
<version>0.1</version>
<name>burns-mail</name>
<description>burns-mail</description>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.olexyn</groupId>
<artifactId>zeebom</artifactId>
<version>1.1.1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-mail</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<!-- for some godforsaken reason this is required. -->
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
</dependency>
</dependencies>
</project>

@ -0,0 +1,7 @@
#!/bin/bash
docker push io42630/burns-mail:0.1

@ -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);
}
}

@ -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() {
}
}
Loading…
Cancel
Save