Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
Indexer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSDU
OSDU Data Platform
System
Indexer
Commits
684c6304
Commit
684c6304
authored
1 year ago
by
Zhibin Mai
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
https://community.opengroup.org/osdu/platform/system/indexer-service
parents
4cf84301
59d71531
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!572
Implement Redis cache in Azure for two kinds of object caches that are...
Pipeline
#196650
failed
1 year ago
Stage: review
Stage: build
Stage: coverage
Stage: containerize
Stage: scan
Stage: deploy
Stage: integration
Changes
2
Pipelines
5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
devops/gc/deploy/templates/deployment.yaml
+1
-1
1 addition, 1 deletion
devops/gc/deploy/templates/deployment.yaml
provider/indexer-gc/cloudbuild/Dockerfile.cloudbuild
+12
-1
12 additions, 1 deletion
provider/indexer-gc/cloudbuild/Dockerfile.cloudbuild
with
13 additions
and
2 deletions
devops/gc/deploy/templates/deployment.yaml
+
1
−
1
View file @
684c6304
...
...
@@ -49,7 +49,7 @@ spec:
{{
- end
}}
securityContext
:
allowPrivilegeEscalation
:
false
runAs
User
:
0
runAs
NonRoot
:
true
ports
:
-
containerPort
:
8080
resources
:
...
...
This diff is collapsed.
Click to expand it.
provider/indexer-gc/cloudbuild/Dockerfile.cloudbuild
+
12
−
1
View file @
684c6304
FROM azul/zulu-openjdk:8-latest
WORKDIR /app
ARG PROVIDER_NAME
ENV PROVIDER_NAME $PROVIDER_NAME
ARG PORT
ENV PORT $PORT
# Copy the jar to the production image from the builder stage.
COPY provider/indexer-${PROVIDER_NAME}/target/indexer-${PROVIDER_NAME}-*-spring-boot.jar indexer-${PROVIDER_NAME}.jar
# Add a non-root user
RUN groupadd -g 10001 -r nonroot \
&& useradd -g 10001 -r -u 10001 nonroot
# Run as non-root user
USER 10001:10001
# Run the web service on container startup.
CMD java -Djava.security.egd=indexer:/dev/./urandom -Dserver.port=${PORT} -Dlog4j.formatMsgNoLookups=true -jar /app/indexer-${PROVIDER_NAME}.jar
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment