Remove left-overs from Maven.
This commit is contained in:
1 parent
c1e0fd8de8
commit
5ae9ae65f8
5 files changed
+2
-51
No files matched your search
@@ -1,5 +0,0 @@
|
|||||||
# Should match the UID and GID of the project files.
|
|
||||||
# With Docker this is typically your own UID and GID.
|
|
||||||
# With Podman this is probably root's UID and GID..
|
|
||||||
UID=1000
|
|
||||||
GID=1000
|
|
||||||
@@ -27,19 +27,10 @@ replay_pid*
|
|||||||
/.idea
|
/.idea
|
||||||
/*.iml
|
/*.iml
|
||||||
|
|
||||||
# Maven output
|
|
||||||
/dependency-reduced-pom.xml
|
|
||||||
/target
|
|
||||||
/jars
|
|
||||||
/.m2
|
|
||||||
|
|
||||||
# Gradle output
|
# Gradle output
|
||||||
/.gradle
|
/.gradle
|
||||||
/build
|
/build
|
||||||
|
|
||||||
# Env vars
|
|
||||||
.env
|
|
||||||
|
|
||||||
# Test server
|
# Test server
|
||||||
/server
|
/server
|
||||||
/folia
|
/folia
|
||||||
-20
@@ -1,20 +0,0 @@
|
|||||||
FROM maven:3.9.9-eclipse-temurin-22
|
|
||||||
|
|
||||||
# Default to first user on Debian based distros.
|
|
||||||
# Pass in your own UID and GID as environment variables to override.
|
|
||||||
ARG UID=1000
|
|
||||||
ARG GID=1000
|
|
||||||
|
|
||||||
# Create a user with the same UID and GID as the host user if they don't already exist.
|
|
||||||
RUN getent group $GID || groupadd -g $GID app
|
|
||||||
RUN getent passwd $UID || useradd -m -u $UID -g $GID -s /bin/bash -d /app app
|
|
||||||
|
|
||||||
# If an alternate user was created, let it sudo.
|
|
||||||
RUN ( getent passwd app > /dev/null && echo 'app ALL=(ALL:ALL) NOPASSWD: ALL' | tee -a /etc/sudoers > /dev/null ) || true
|
|
||||||
|
|
||||||
# Drop privileges.
|
|
||||||
USER $UID:$GID
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
ENTRYPOINT [ "mvn", "-Dmaven.repo.local=/app/.m2" ]
|
|
||||||
@@ -10,13 +10,9 @@ Please see [our wiki](https://gitlab.com/distant-horizons-team/distant-horizons-
|
|||||||
|
|
||||||
## Building
|
## Building
|
||||||
|
|
||||||
### Dockerized
|
This project uses Gradle.
|
||||||
|
|
||||||
If you have Docker; run `docker compose up` to build the project inside a container. See `.env.example` if you need to adjust the user/group of the build process.
|
`gradlew clean build`
|
||||||
|
|
||||||
### Using Maven directly
|
|
||||||
|
|
||||||
Just run `mvn` in the project directory to compile and package a new JAR.
|
|
||||||
|
|
||||||
## Contribution
|
## Contribution
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
services:
|
|
||||||
maven:
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
|
|
||||||
args:
|
|
||||||
UID: ${UID}
|
|
||||||
GID: ${GID}
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
- ./:/app
|
|
||||||
Reference in new issue
Block a user