Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
build-script
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huangxi
build-script
Commits
74d4388e
Commit
74d4388e
authored
Feb 08, 2022
by
liaozan
🏀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adjust placeholder
parent
7a75540b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
Dockerfile
Dockerfile
+4
-4
k8s-deploy-template.yaml
k8s-deploy-template.yaml
+11
-11
No files found.
Dockerfile
View file @
74d4388e
FROM
eclipse-temurin:11-jre-alpine as builder
FROM
eclipse-temurin:11-jre-alpine as builder
COPY
{JAR_FILE}
{APP_NAME}.jar
COPY
${JAR_FILE} $
{APP_NAME}.jar
RUN
java
-Djarmode
=
layertools
-jar
{
APP_NAME
}
.jar extract
RUN
java
-Djarmode
=
layertools
-jar
$
{
APP_NAME
}
.jar extract
FROM
eclipse-temurin:11-jre-alpine
FROM
eclipse-temurin:11-jre-alpine
COPY
--from=builder dependencies/ ./
COPY
--from=builder dependencies/ ./
...
@@ -8,7 +8,7 @@ COPY --from=builder snapshot-dependencies/ ./
...
@@ -8,7 +8,7 @@ COPY --from=builder snapshot-dependencies/ ./
COPY
--from=builder spring-boot-loader/ ./
COPY
--from=builder spring-boot-loader/ ./
COPY
--from=builder application/ ./
COPY
--from=builder application/ ./
RUN
mkdir
-p
/data/logs/
{
APP_NAME
}
RUN
mkdir
-p
/data/logs/
$
{
APP_NAME
}
RUN
ln
-sf
/usr/share/zoneinfo/Asia/Shanghai /etc/localtime
&&
echo
'Asia/Shanghai'
>
/etc/timezone
RUN
ln
-sf
/usr/share/zoneinfo/Asia/Shanghai /etc/localtime
&&
echo
'Asia/Shanghai'
>
/etc/timezone
ENTRYPOINT
java org.springframework.boot.loader.JarLauncher --spring.profiles.active={PROFILE}
ENTRYPOINT
java org.springframework.boot.loader.JarLauncher --spring.profiles.active=${PROFILE}
\ No newline at end of file
k8s-deploy-template.yaml
View file @
74d4388e
apiVersion
:
apps/v1
apiVersion
:
apps/v1
kind
:
Deployment
kind
:
Deployment
metadata
:
metadata
:
name
:
{
APP_NAME
}
name
:
$
{APP_NAME}
namespace
:
{
NAMESPACE
}
namespace
:
$
{NAMESPACE}
labels
:
labels
:
app
:
{
APP_NAME
}
app
:
$
{APP_NAME}
spec
:
spec
:
replicas
:
{
REPLICAS
}
replicas
:
$
{REPLICAS}
selector
:
selector
:
matchLabels
:
matchLabels
:
app
:
{
APP_NAME
}
app
:
$
{APP_NAME}
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
app
:
{
APP_NAME
}
app
:
$
{APP_NAME}
annotations
:
annotations
:
armsPilotAutoEnable
:
"
on"
armsPilotAutoEnable
:
"
on"
armsPilotCreateAppName
:
"
{APP_NAME}"
armsPilotCreateAppName
:
"
$
{APP_NAME}"
spec
:
spec
:
containers
:
containers
:
-
name
:
{
APP_NAME
}
-
name
:
$
{APP_NAME}
image
:
{
IMAGE
}
image
:
$
{IMAGE}
imagePullPolicy
:
"
Always"
imagePullPolicy
:
"
Always"
ports
:
ports
:
-
containerPort
:
{
PORT
}
-
containerPort
:
$
{PORT}
livenessProbe
:
livenessProbe
:
httpGet
:
httpGet
:
scheme
:
HTTP
scheme
:
HTTP
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment