14 Commits
Author SHA1 Message Date
曾志威 e5f25db74f init
continuous-integration/drone Build is passing
2026-04-10 16:29:04 +08:00
曾志威 1335faa7f1 init
continuous-integration/drone Build is passing
2026-04-10 16:03:27 +08:00
曾志威 2a15396ad8 init
continuous-integration/drone Build is passing
2026-04-10 15:39:32 +08:00
曾志威 59a082619b init
continuous-integration/drone Build is passing
2026-04-10 15:32:44 +08:00
曾志威 8f127fa775 init
continuous-integration/drone Build is passing
2026-04-10 15:25:30 +08:00
曾志威 b79e5e1910 init
continuous-integration/drone Build is passing
2026-04-10 15:20:00 +08:00
曾志威 7e7a097586 init
continuous-integration/drone Build was killed
2026-04-10 15:18:15 +08:00
曾志威 e856b32d7e init
continuous-integration/drone Build is failing
2026-04-10 15:10:42 +08:00
曾志威 4c17f087cb init
continuous-integration/drone Build was killed
2026-04-10 14:53:50 +08:00
曾志威 5979fddadd init
continuous-integration/drone Build was killed
2026-04-10 14:46:29 +08:00
曾志威 d0a3985c4b init
continuous-integration/drone Build is passing
2026-02-13 02:09:31 +08:00
曾志威 807dc55dba init
continuous-integration/drone Build is passing
2026-02-13 02:06:48 +08:00
曾志威 56b9fae266 init 2026-02-13 02:06:24 +08:00
曾志威 c3c4511cf1 init
continuous-integration/drone Build is failing
2026-02-13 02:01:31 +08:00
5 changed files with 116 additions and 7 deletions
+1 -1
View File
@@ -15,4 +15,4 @@ steps:
registry: https://registry.cn-hangzhou.aliyuncs.com
repo: registry.cn-hangzhou.aliyuncs.com/loghub/wms-system-service
tags:
- gradle8
- gradle6
+6
View File
@@ -0,0 +1,6 @@
[Credentials]
language=EN
endpoint=oss-cn-hangzhou.aliyuncs.com
AccessKeyID=LTAIiOKICUiT4Mxf
AccessKeySecret=Y2srJsSPJiRNx41fomps0zmWHvCges
region = cn-hangzhou # 增加此行,配置Region
+19 -6
View File
@@ -1,10 +1,23 @@
FROM gradle:8-alpine
FROM gradle:6.9-jdk8
RUN set -eux; \
apk add nodejs npm
sed -i 's|http://archive.ubuntu.com/ubuntu|https://mirrors.aliyun.com/ubuntu|g' /etc/apt/sources.list; \
sed -i 's|http://security.ubuntu.com/ubuntu|https://mirrors.aliyun.com/ubuntu|g' /etc/apt/sources.list; \
apt-get update; \
apt-get install -y --no-install-recommends \
nodejs \
npm; \
command -v node; \
command -v npm; \
npm config set registry https://registry.npmmirror.com; \
npm install -g coffeescript@2.7.0 stylus@0.54.8; \
stylus --version; \
coffee --version; \
rm -rf /var/lib/apt/lists/*
RUN set -eux; \
npm install -g coffee-script stylus
ADD ossutil /usr/local/bin/ossutil
RUN chmod +x /usr/local/bin/ossutil
ADD .ossutilconfig /root/.ossutilconfig
ADD init.gradle /root/.gradle/
ADD config.json /root/.docker/
ADD init.gradle /root/.gradle/
ADD config.json /root/.docker/
+90
View File
@@ -0,0 +1,90 @@
FROM eclipse-temurin:8-jdk-alpine
CMD ["gradle"]
ENV GRADLE_HOME=/opt/gradle
RUN set -o errexit -o nounset \
&& echo "Adding gradle user and group" \
&& addgroup --system --gid 1000 gradle \
&& adduser --system --ingroup gradle --uid 1000 --shell /bin/ash gradle \
&& mkdir /home/gradle/.gradle \
&& chown -R gradle:gradle /home/gradle \
&& chmod -R o+rwx /home/gradle \
\
&& echo "Symlinking root Gradle cache to gradle Gradle cache" \
&& ln -s /home/gradle/.gradle /root/.gradle
VOLUME /home/gradle/.gradle
WORKDIR /home/gradle
RUN set -o errexit -o nounset \
&& echo "Switching apk mirror to aliyun" \
&& sed -i 's|https\?://dl-cdn.alpinelinux.org/alpine|https://mirrors.aliyun.com/alpine|g' /etc/apk/repositories \
&& apk update \
\
&& apk add --no-cache \
curl \
make \
breezy \
py3-tzlocal \
git \
git-lfs \
mercurial \
subversion \
\
&& echo "Testing common utilities" \
&& which awk \
&& which curl \
&& which cut \
&& which grep \
&& which gunzip \
&& which sha256sum \
&& which sed \
&& which tar \
&& which tr \
&& which unzip \
&& which wget \
\
&& echo "Testing VCSes" \
&& which git \
&& which git-lfs \
&& which hg \
&& which svn
ENV GRADLE_VERSION=6.9.4
ARG GRADLE_DOWNLOAD_SHA256=3e240228538de9f18772a574e99a0ba959e83d6ef351014381acd9631781389a
RUN set -o errexit -o nounset \
&& echo "Downloading Gradle" \
&& wget --no-verbose --output-document=gradle.zip "https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip" \
\
&& echo "Checking Gradle download hash" \
&& echo "${GRADLE_DOWNLOAD_SHA256} *gradle.zip" | sha256sum -c - \
\
&& echo "Installing Gradle" \
&& unzip gradle.zip \
&& rm gradle.zip \
&& mv "gradle-${GRADLE_VERSION}" "${GRADLE_HOME}/" \
&& ln -s "${GRADLE_HOME}/bin/gradle" /usr/bin/gradle
USER gradle
RUN set -o errexit -o nounset \
&& echo "Testing Gradle installation" \
&& gradle --version
USER root
RUN set -eux; \
apk add nodejs npm
RUN set -eux; \
npm install -g coffee-script stylus
ADD ossutil /usr/local/bin/ossutil
RUN chmod +x /usr/local/bin/ossutil
ADD .ossutilconfig /root/.ossutilconfig
ADD init.gradle /root/.gradle/
ADD config.json /root/.docker/
BIN
View File
Binary file not shown.