3 Commits

Author SHA1 Message Date
90f0bc6159 Merge branch 'main' into docker-test 2024-07-08 23:57:45 +02:00
4d9f508fd3 Merge branch '22-integrate-api-and-frontend' into docker-test 2024-07-08 23:12:21 +02:00
d98062923f yeet 2024-07-08 21:20:08 +02:00
4 changed files with 10 additions and 0 deletions

3
Dockerfile Normal file
View File

@@ -0,0 +1,3 @@
FROM tomcat:latest
COPY ./target/DataDash-0.0.1-SNAPSHOT.war /usr/local/tomcat/webapps

View File

@@ -16,6 +16,7 @@
<description>A ProductHunt like site to find datasets and APIs</description>
<properties>
<java.version>22</java.version>
<java.version>21</java.version>
</properties>
<dependencies>
<dependency>

4
run Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
./mvnw clean package
docker build -t sample-tomcat .
docker container run -d --name sample-tomcat -p 8080:8080 sample-tomcat:latest

2
stop Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/bash
docker rm -f sample-tomcat