Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
fix: don't run as root (#400)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubhava authored Aug 14, 2024
1 parent b0dd236 commit 8f6d8b7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions aws-sagemaker-hosted-scorer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jib {
}
container {
jvmFlags = defaultJibContainerJvmFlags.split(" ").each { it.trim() }.toList()
user = 1001
ports = ['8080']
volumes = [
// mojo pipeline and license file will live here
Expand Down
1 change: 1 addition & 0 deletions gcp-cloud-run/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jib {
}
container {
jvmFlags = defaultJibContainerJvmFlags.split(" ").each { it.trim() }.toList()
user = 1001
ports = ['8080']
environment = [
// The expected path to the DAI license file.
Expand Down
1 change: 1 addition & 0 deletions gcp-vertex-ai-mojo-scorer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ jib {
}
container {
jvmFlags = defaultJibContainerJvmFlags.split(" ").each { it.trim() }.toList()
user = 1001
ports = ['8080']
environment = [
// The expected path to the DAI license file.
Expand Down
1 change: 1 addition & 0 deletions local-rest-scorer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ jib {
}
container {
jvmFlags = defaultJibContainerJvmFlags.split(" ").each { it.trim() }.toList()
user = 1001
ports = ['8080']
volumes = [
// For storing the mojo2 file with the model to be used for scoring.
Expand Down

0 comments on commit 8f6d8b7

Please sign in to comment.