Browse Source

added Dockerfile, fixed css ids

drop_old_mail
Stephan Richter 2 years ago
parent
commit
db057c16a4
  1. 21
      Dockerfile
  2. 2
      pom.xml
  3. 3
      static/templates/css.st
  4. 2
      static/templates/register.st

21
Dockerfile

@ -0,0 +1,21 @@ @@ -0,0 +1,21 @@
FROM alpine:3.15
MAINTAINER Stephan Richter <s.richter@srsoftware.de>
RUN apk add --no-cache --update bash git maven openjdk17
# get the sources
RUN git clone https://git.srsoftware.de/StephanRichter/Widerhall.git
WORKDIR Widerhall
# compile
RUN mvn --no-transfer-progress clean test compile assembly:single
RUN ln -s target/*.jar widerhall.jar
# configure
RUN mkdir /data
RUN echo '{"locations":{"database":"/data/widerhall.sqlite3","configuration":"/data/widerhall.config.json","archive":"/data/archive","base":"/Widerhall"}}' > config/config.json
# get JQUERY
RUN wget https://code.jquery.com/jquery-3.6.0.min.js -O static/jquery-3.6.0.min.js
CMD java -jar widerhall.jar

2
pom.xml

@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
<groupId>org.example</groupId>
<artifactId>Widerhall</artifactId>
<version>0.2.7</version>
<version>0.2.8</version>
<build>
<plugins>
<plugin>

3
static/templates/css.st

@ -3,7 +3,8 @@ label { @@ -3,7 +3,8 @@ label {
margin: 5px 0;
}
#login form {
#login form,
#register form{
width: 450px;
margin: 0 auto;
}

2
static/templates/register.st

@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
<script src="js"></script>
<link rel="stylesheet" href="css" />
</head>
<body>
<body id="register">
«navigation()»
«userinfo()»
<h1>Widerhall user registration</h1>

Loading…
Cancel
Save