Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
RPServer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
Josh Ji
RPServer
Commits
313aef67
Commit
313aef67
authored
Jan 13, 2023
by
Josh Ji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: change harbor server, new Dockerfile
parent
6b31565e
Pipeline
#3303
failed with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
.drone.yml
.drone.yml
+5
-5
Dockerfile
Dockerfile
+7
-2
No files found.
.drone.yml
View file @
313aef67
...
...
@@ -7,16 +7,16 @@ steps:
image
:
docker:20.10.0-dind
environment
:
REGISTRY_USERNAME
:
from_secret
:
harbor_account_in_t
wisc_ntust
from_secret
:
harbor_account_in_t
anzu
REGISTRY_PASSWORD
:
from_secret
:
harbor_secret_in_t
wisc_ntust
from_secret
:
harbor_secret_in_t
anzu
volumes
:
-
name
:
docker_socket
path
:
/var/run/docker.sock
commands
:
-
docker build --no-cache -t 192.168.
0.100:30004
/dev/rpserver:${DRONE_COMMIT_SHA:0:8} -f ./Dockerfile .
-
docker login 192.168.
0.100:30004
--username $${REGISTRY_USERNAME} --password $${REGISTRY_PASSWORD}
-
docker push 192.168.
0.100:30004
/dev/rpserver:${DRONE_COMMIT_SHA:0:8}
-
docker build --no-cache -t 192.168.
17.110
/dev/rpserver:${DRONE_COMMIT_SHA:0:8} -f ./Dockerfile .
-
docker login 192.168.
17.110
--username $${REGISTRY_USERNAME} --password $${REGISTRY_PASSWORD}
-
docker push 192.168.
17.110
/dev/rpserver:${DRONE_COMMIT_SHA:0:8}
volumes
:
-
name
:
docker_socket
...
...
Dockerfile
View file @
313aef67
FROM
openjdk:11
COPY
target/*.jar app.jar
FROM
maven AS build
COPY
. /tmp
WORKDIR
/tmp
RUN
mvn clean package
-DskipTests
FROM
openjdk:11-jre-slim
COPY
--from=build /tmp/target/*.jar app.jar
EXPOSE
8080
ENTRYPOINT
java -jar app.jar
\ No newline at end of file
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