Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Start the app and visit signin web page
run: |
sudo apt-get install -y elinks
java -Djava.net.preferIPv4Stack=true -jar target/steve.jar &
java -Djava.net.preferIPv4Stack=true -jar target/steve.war &
sleep 30
elinks -dump -no-references http://localhost:8080/steve/manager/signin
killall java
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ COPY . /code
# Build and run steve, requires a db to be available on port 3306
CMD dockerize -wait tcp://mariadb:3306 -timeout 60s && \
./mvnw clean package -Pdocker -Djdk.tls.client.protocols="TLSv1,TLSv1.1,TLSv1.2" && \
java -XX:MaxRAMPercentage=85 -jar target/steve.jar
java -XX:MaxRAMPercentage=85 -jar target/steve.war

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ SteVe is designed to run standalone, a java servlet container / web server (e.g.

4. Build SteVe:

To compile SteVe simply use Maven. A runnable `jar` file containing the application and configuration will be created in the subdirectory `steve/target`.
To compile SteVe simply use Maven. A runnable `war` file containing the application and configuration will be created in the subdirectory `steve/target`.

```
# ./mvnw package
Expand All @@ -93,7 +93,7 @@ SteVe is designed to run standalone, a java servlet container / web server (e.g.
To start the application run (please do not run SteVe as root):

```
# java -jar target/steve.jar
# java -jar target/steve.war
```

# Docker
Expand Down
4 changes: 2 additions & 2 deletions k8s/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ RUN ./mvnw clean package -Pkubernetes -Djdk.tls.client.protocols="TLSv1,TLSv1.1,
FROM base AS release

# Copy relevant files from the build stage
COPY --from=build /code/target/steve.jar /app/steve.jar
COPY --from=build /code/target/steve.jar /app/steve.war
COPY --from=build /code/target/libs /app/libs

# Expose any necessary ports (example: 8080)
EXPOSE 8080

# Define the entrypoint for the release stage
CMD ["java", "-jar", "/app/steve.jar"]
CMD ["java", "-jar", "/app/steve.war"]
Loading