forked from harness/harness
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.simple
More file actions
35 lines (28 loc) · 939 Bytes
/
Dockerfile.simple
File metadata and controls
35 lines (28 loc) · 939 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM hub.zentao.net/ci/debian AS debian-amd64
ENV OS_ARCH=amd64
FROM debian-${TARGETARCH}${TARGETVARIANT}
# setup app dir and its content
WORKDIR /app
VOLUME /data
ENV XDG_CACHE_HOME /data
ENV GITFOX_STORAGE_DIR /data
ENV GITFOX_GIT_ROOT /data
# ENV GITFOX_CI_PLUGINS_ZIP_URL=https://pkg.zentao.net/gitfox/20241024/plugins.zip
ENV GITFOX_CI_PLUGINS_ZIP_URL=/app/plugins.zip
ENV GITFOX_GIT_DEFAULTBRANCH=master
ENV GITFOX_DEBUG=true
ENV GITFOX_TRACE=true
ENV GITFOX_GIT_TRACE=true
ENV GITFOX_WEBHOOK_ALLOW_LOOPBACK=true
ENV GITFOX_WEBHOOK_ALLOW_PRIVATE_NETWORK=true
ENV GITFOX_METRIC_ENABLED=false
ENV GITFOX_TOKEN_COOKIE_NAME=token
ENV GITFOX_DOCKER_HOST unix:///var/run/docker.sock
ENV GITFOX_DOCKER_API_VERSION 1.40
ENV GITFOX_SSH_ENABLE=true
ENV GITFOX_SSH_HOST_KEYS_DIR=/data/ssh
ADD bin/gitfox_linux_${OS_ARCH} /app/gitfox
ADD hack/ci-plugin/plugins.zip /app/plugins.zip
EXPOSE 3000
EXPOSE 3022
CMD [ "/app/gitfox", "server" ]