Commit 90b78b0e authored by liwu's avatar liwu

@dev git init

parents
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
#!/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
#!/usr/bin/env bash
VERSION="1.0.0-SNAPSHOT"
IMAGE_NAME="edu-100-app-base"
\ No newline at end of file
#!/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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment