sarabwt
sarabwt
RRailway
Created by sarabwt on 11/4/2023 in #✋|help
Java maven build fails
fuck me.... I was in the middle of writing that locally 1.18 and 1.10 both don't work (fail for that COPY .nixpacks/*), but do work if I run build in my subdirectory with package.json. I thought it had something to do with Java at first, but I have then seen that I have .dockerignore in my root 🤦‍♂️
*
!target/*-runner
!target/*-runner.jar
!target/lib/*
!target/quarkus-app/*
*
!target/*-runner
!target/*-runner.jar
!target/lib/*
!target/quarkus-app/*
Sorry for this time waste and thanks for the help!
18 replies
RRailway
Created by sarabwt on 11/4/2023 in #✋|help
Java maven build fails
Note that I have overriden the build and start command in the console. But the output was the same even before that. The build fails because that .nixpacks copy fails and the checksum cannot be calculated.
18 replies
RRailway
Created by sarabwt on 11/4/2023 in #✋|help
Java maven build fails
{
"providers": [],
"buildImage": "ghcr.io/railwayapp/nixpacks:ubuntu-1697500996",
"variables": {
"NIXPACKS_METADATA": "java"
},
"phases": {
"build": {
"dependsOn": [
"install",
"setup"
],
"cmds": [
"mvn -DoutputFile=target/mvn-dependency-list.log -B -DskipTests clean dependency:list install"
],
"cacheDirectories": [
".m2/repository"
]
},
"setup": {
"nixPkgs": [
"jdk17",
"maven"
],
"nixOverlays": [],
"nixpkgsArchive": "5148520bfab61f99fd25fb9ff7bfbb50dad3c9db"
}
},
"start": {
"cmd": "java $JAVA_OPTS -jar target/*jar"
}
}
{
"providers": [],
"buildImage": "ghcr.io/railwayapp/nixpacks:ubuntu-1697500996",
"variables": {
"NIXPACKS_METADATA": "java"
},
"phases": {
"build": {
"dependsOn": [
"install",
"setup"
],
"cmds": [
"mvn -DoutputFile=target/mvn-dependency-list.log -B -DskipTests clean dependency:list install"
],
"cacheDirectories": [
".m2/repository"
]
},
"setup": {
"nixPkgs": [
"jdk17",
"maven"
],
"nixOverlays": [],
"nixpkgsArchive": "5148520bfab61f99fd25fb9ff7bfbb50dad3c9db"
}
},
"start": {
"cmd": "java $JAVA_OPTS -jar target/*jar"
}
}
18 replies
RRailway
Created by sarabwt on 11/4/2023 in #✋|help
Java maven build fails
tnx
18 replies
RRailway
Created by sarabwt on 11/4/2023 in #✋|help
Java maven build fails
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS"
},
"deploy": {
"numReplicas": 1,
"sleepApplication": false,
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 10
}
}
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS"
},
"deploy": {
"numReplicas": 1,
"sleepApplication": false,
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 10
}
}
This is the one that is suggested in the console, but I don't have any config in the repo. Also no variables. I'm trying to deploy a clean maven project.
18 replies
RRailway
Created by sarabwt on 11/4/2023 in #✋|help
Java maven build fails
nope
18 replies
RRailway
Created by sarabwt on 11/4/2023 in #✋|help
Java maven build fails
no
18 replies
RRailway
Created by sarabwt on 11/4/2023 in #✋|help
Java maven build fails
18 replies