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
D
docker-base-image
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
Metrics
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
tools
docker-base-image
Commits
90b78b0e
Commit
90b78b0e
authored
Nov 27, 2019
by
liwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
@dev git init
parents
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
57 additions
and
0 deletions
+57
-0
Dockerfile
Dockerfile
+19
-0
build-image.sh
build-image.sh
+18
-0
env.sh
env.sh
+6
-0
push-image.sh
push-image.sh
+14
-0
skywalking-agent-6.0.0-GA.zip
skywalking-agent-6.0.0-GA.zip
+0
-0
No files found.
Dockerfile
0 → 100644
View file @
90b78b0e
FROM
openjdk:8-jdk-alpine
ENV
SKYWALKING_VERSION 6.0.0-GA
RUN
echo
"http://mirrors.aliyun.com/alpine/v3.8/main"
>
/etc/apk/repositories
\
&&
echo
"http://mirrors.aliyun.com/alpine/v3.8/community"
>>
/etc/apk/repositories
\
&&
apk update upgrade
\
&&
apk add
--no-cache
procps curl bash tzdata busybox-extras vim bind-tools
\
&&
ln
-sf
/usr/share/zoneinfo/Asia/Shanghai /etc/localtime
\
&&
echo
"Asia/Shanghai"
>
/etc/timezone
#deployUserHome and appRootDir
WORKDIR
/app
COPY
skywalking-agent-${SKYWALKING_VERSION}.zip skywalking-agent-${SKYWALKING_VERSION}.zip
RUN
unzip skywalking-agent-
${
SKYWALKING_VERSION
}
.zip
\
&&
rm
-rf
skywalking-agent-
${
SKYWALKING_VERSION
}
.zip
\ No newline at end of file
build-image.sh
0 → 100755
View file @
90b78b0e
#!/usr/bin/env bash
docker ps
>
/dev/null 2>&1
if
[
"
$?
"
-ne
0
]
;
then
echo
"Docker is not running correctly!"
z
exit
1
fi
.
env.sh
existImageId
=
`
docker images |grep
"
$IMAGE_NAME
"
|grep
"
$VERSION
"
|awk
'{print $3}'
`
if
[
-n
"
$existImageId
"
]
;
then
echo
"Removing exist image:
$existImageId
"
docker rmi
"
$existImageId
"
fi
docker build
--no-cache
-t
ajlx/
"
$IMAGE_NAME
"
:
"
$VERSION
"
.
\ No newline at end of file
env.sh
0 → 100755
View file @
90b78b0e
#!/usr/bin/env bash
VERSION
=
"1.0.0-SNAPSHOT"
IMAGE_NAME
=
"edu-100-app-base"
\ No newline at end of file
push-image.sh
0 → 100755
View file @
90b78b0e
#!/usr/bin/env bash
docker ps
>
/dev/null 2>&1
if
[
"
$?
"
-ne
0
]
;
then
echo
"Docker is not running correctly!"
exit
1
fi
.
env.sh
echo
'igj@J3f#s7Sfb4'
|docker login
--username
aijiao
--password-stdin
docker push ajlx/
"
$IMAGE_NAME
"
:
"
$VERSION
"
\ No newline at end of file
skywalking-agent-6.0.0-GA.zip
0 → 100644
View file @
90b78b0e
File added
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