dockerisation
This commit is contained in:
20
kiszolgalo/Dockerfile
Normal file
20
kiszolgalo/Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
# Stage 1: Cache Gradle dependencies
|
||||||
|
FROM gradle:9.1.0-jdk21 AS build
|
||||||
|
RUN mkdir -p /home/gradle/cache_home
|
||||||
|
ENV GRADLE_USER_HOME=/home/gradle/cache_home
|
||||||
|
COPY build.gradle.* gradle.properties /home/gradle/app/
|
||||||
|
COPY gradle /home/gradle/app/gradle
|
||||||
|
WORKDIR /home/gradle/app
|
||||||
|
RUN gradle dependencies --no-daemon
|
||||||
|
|
||||||
|
COPY --chown=gradle:gradle . /home/gradle/src
|
||||||
|
WORKDIR /home/gradle/src
|
||||||
|
# and boot JAR by default.
|
||||||
|
RUN gradle buildFatJar --no-daemon
|
||||||
|
|
||||||
|
# Stage 2: Create the Runtime Image
|
||||||
|
FROM amazoncorretto:21 AS runtime
|
||||||
|
EXPOSE 8080
|
||||||
|
RUN mkdir /app
|
||||||
|
COPY --from=build /home/gradle/src/build/libs/*.jar /app/ktor-docker-sample.jar
|
||||||
|
ENTRYPOINT ["java","-jar","/app/ktor-docker-sample.jar"]
|
||||||
6
kiszolgalo/docker-compose.yml
Normal file
6
kiszolgalo/docker-compose.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
services:
|
||||||
|
backup-scheduler:
|
||||||
|
image: kotlin:latest
|
||||||
|
container_name: "bs"
|
||||||
|
ports:
|
||||||
|
- "8080:80"
|
||||||
@@ -12,7 +12,7 @@ import kotlin.random.Random
|
|||||||
|
|
||||||
//átlagos JAVA alapú fejlesztő
|
//átlagos JAVA alapú fejlesztő
|
||||||
|
|
||||||
val httpPort: Int = System.getenv("HTTP_PORT")?.toInt() ?: 8080
|
val httpPort: Int = System.getenv("HTTP_PORT")?.toInt() ?: 80
|
||||||
val resourcesPath: String = System.getenv("RESOURCES") ?: "src/main/resources/"
|
val resourcesPath: String = System.getenv("RESOURCES") ?: "src/main/resources/"
|
||||||
|
|
||||||
|
|
||||||
@@ -30,6 +30,7 @@ object ConversationHandler {
|
|||||||
return num
|
return num
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun listAllConversations(): String
|
fun listAllConversations(): String
|
||||||
{
|
{
|
||||||
val stringBuilder = StringBuilder()
|
val stringBuilder = StringBuilder()
|
||||||
@@ -39,6 +40,8 @@ object ConversationHandler {
|
|||||||
stringBuilder.append(conversation.list())
|
stringBuilder.append(conversation.list())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
println(stringBuilder.toString())
|
||||||
|
|
||||||
return stringBuilder.toString()
|
return stringBuilder.toString()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,64 +8,60 @@
|
|||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<div class="main-flexbox">
|
||||||
|
|
||||||
<div class="main-flexbox">
|
<header class="navbar">
|
||||||
|
<a href="https://sc0tt.org/" style="float: left" target="_blank">Sc0tt főoldal</a>
|
||||||
|
<a href="/" style="float: left">Lets ask some shit bayBEE</a>
|
||||||
|
|
||||||
<header class="navbar">
|
<img src="resources/logo.png" alt=logo" style="float: right;">
|
||||||
<a href="https://sc0tt.org/" style="float: left" target="_blank">Sc0tt főoldal</a>
|
|
||||||
<a href="/resources/about.html" style="float: left">About</a>
|
|
||||||
|
|
||||||
<img src="resources/logo.png" alt=logo" style="float: right;">
|
<a href="javascript:void(0);"
|
||||||
|
class="icon"
|
||||||
|
onclick="toggleMenu()">
|
||||||
|
☰
|
||||||
|
</a>
|
||||||
|
</header>
|
||||||
|
|
||||||
<a href="javascript:void(0);"
|
<div class="about-content">
|
||||||
class="icon"
|
<h1>We're on a mission</h1>
|
||||||
onclick="toggleMenu()">
|
|
||||||
☰
|
|
||||||
</a>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<div class="about-content">
|
<h2>To give slow, unreliable information sometimes. If we feel like it.</h2>
|
||||||
<h1>We're on a mission</h1>
|
|
||||||
|
|
||||||
<h2>To give slow, unreliable information sometimes. If we feel like it.</h2>
|
<p>
|
||||||
|
Our revolutionary technology enables us to create a cost-effective GS (Genuine Stupidity) companion for you to rely on. Our model is using 21 years of
|
||||||
|
training data, specialized in internet culture, STEM and being miserable. It is using less energy, and less water than almost all AI models on the market
|
||||||
|
in 2026. Uses a lot more whiskey-coke tho.
|
||||||
|
|
||||||
<p>
|
</p>
|
||||||
Our revolutionary technology enables us to create a cost-effective GS (Genuine Stupidity) companion for you to rely on. Our model is using 21 years of
|
|
||||||
training data, specialized in internet culture, STEM and being miserable. It is using less energy, and less water than almost all AI models on the market
|
|
||||||
in 2026. Uses a lot more whiskey-coke tho.
|
|
||||||
|
|
||||||
</p>
|
<br>
|
||||||
|
|
||||||
<br>
|
<h2>
|
||||||
|
Straight to the point
|
||||||
|
</h2>
|
||||||
|
|
||||||
<h2>
|
<p>
|
||||||
Straight to the point
|
Unlike most modern AI models, our GS model is not going to sugar-coat every response. Of course class matters, which is why with our patent pending
|
||||||
</h2>
|
algorithm every response is dripping with authenticity, while managing to stay extremely polite.
|
||||||
|
</p>
|
||||||
|
|
||||||
<p>
|
<br>
|
||||||
Unlike most modern AI models, our GS model is not going to sugar-coat every response. Of course class matters, which is why with our patent pending
|
|
||||||
algorithm every response is dripping with authenticity, while managing to stay extremely polite.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<br>
|
<h2>
|
||||||
|
Privacy first and foremost
|
||||||
|
</h2>
|
||||||
|
|
||||||
<h2>
|
<p>
|
||||||
Privacy first and foremost
|
Powered by an incredibly abstract, high level language, our backend is built from the ground up with privacy in mind. Our developer, after trying
|
||||||
</h2>
|
to use more than 1 Gradle dependency in the backend realized, that not storing user data in a database is a good thing, actually. Very marketable.
|
||||||
|
</p>
|
||||||
|
|
||||||
<p>
|
<br>
|
||||||
Powered by an incredibly abstract, high level language, our backend is built from the ground up with privacy in mind. Our developer, after trying
|
|
||||||
to use more than 1 Gradle dependency in the backend realized, that not storing user data in a database is a good thing, actually. Very marketable.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<br>
|
<h2 style="font-style: italic;">,,You make soup in a big bowl. You serve it in a smaller bowl. And then you convey it, using a spoon, to your mouth. But what is the spoon? Simply a smaller bowl still"</h2>
|
||||||
|
<h3>-user 'autophage' on tumblr</h3>
|
||||||
<h2 style="font-style: italic;">,,You make soup in a big bowl. You serve it in a smaller bowl. And then you convey it, using a spoon, to your mouth. But what is the spoon? Simply a smaller bowl still"</h2>
|
</div>
|
||||||
<h3>-user 'autophage' on tumblr</h3>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
})
|
})
|
||||||
.then(data => {
|
.then(data => {
|
||||||
|
|
||||||
document.getElementById("messages").innerHTML = data + '<footer> <div class="textbox"><input class="text_input" name="valami" type="text" id="promptText" placeholder="answ"><button class="send_button" onclick="send_data()">send</button></div></footer>';
|
document.getElementById("messages").innerHTML = data + '<footer> <div class="textbox"><input class="text_input" name="valami" type="text" id="promptText" placeholder="answ"><button class="send_button" onclick="send_data()">send</button><button class="send_button" onclick="open_message(' + answid + ')">reload</button></div></footer>';
|
||||||
|
|
||||||
console.log(data.body)
|
console.log(data.body)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -21,10 +21,10 @@ body {
|
|||||||
display: flex;
|
display: flex;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;*/
|
||||||
justify-content: center;*/
|
justify-content: center;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
height: 93vh;
|
height: 80vh;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
flex-grow: 8
|
flex-grow: 8
|
||||||
|
|
||||||
@@ -153,8 +153,6 @@ footer {
|
|||||||
padding: 10px;
|
padding: 10px;
|
||||||
background: #212121;
|
background: #212121;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
|
||||||
background: green;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar a {
|
.navbar a {
|
||||||
|
|||||||
Reference in New Issue
Block a user