chore: unify binary directory (#828)
Signed-off-by: Jim Ma <majinjing3@gmail.com>
This commit is contained in:
parent
4a99bdfe4b
commit
6bad029d81
|
|
@ -17,7 +17,7 @@ FROM nginx:1.19-alpine
|
||||||
|
|
||||||
COPY --from=builder /go/src/d7y.io/dragonfly/v2/hack/start-cdn.sh /root/start.sh
|
COPY --from=builder /go/src/d7y.io/dragonfly/v2/hack/start-cdn.sh /root/start.sh
|
||||||
COPY --from=builder /go/src/d7y.io/dragonfly/v2/hack/cdn-nginx.conf /etc/nginx/nginx.conf
|
COPY --from=builder /go/src/d7y.io/dragonfly/v2/hack/cdn-nginx.conf /etc/nginx/nginx.conf
|
||||||
COPY --from=builder /opt/dragonfly/df-cdn/cdn /opt/dragonfly/df-cdn/cdn
|
COPY --from=builder /opt/dragonfly/bin/cdn /opt/dragonfly/bin/cdn
|
||||||
|
|
||||||
RUN echo "hosts: files dns" > /etc/nsswitch.conf
|
RUN echo "hosts: files dns" > /etc/nsswitch.conf
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@ spec:
|
||||||
- |
|
- |
|
||||||
cp /etc/dragonfly/nginx.conf /etc/nginx/nginx.conf
|
cp /etc/dragonfly/nginx.conf /etc/nginx/nginx.conf
|
||||||
nginx
|
nginx
|
||||||
exec /opt/dragonfly/df-cdn/cdn
|
exec /opt/dragonfly/bin/cdn
|
||||||
image: dragonflyoss/cdn
|
image: dragonflyoss/cdn
|
||||||
imagePullPolicy: "Always"
|
imagePullPolicy: "Always"
|
||||||
ports:
|
ports:
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ spec:
|
||||||
- |
|
- |
|
||||||
cp /etc/dragonfly/nginx.conf /etc/nginx/nginx.conf
|
cp /etc/dragonfly/nginx.conf /etc/nginx/nginx.conf
|
||||||
nginx
|
nginx
|
||||||
exec /opt/dragonfly/df-cdn/cdn
|
exec /opt/dragonfly/bin/cdn
|
||||||
image: dragonflyoss/cdn
|
image: dragonflyoss/cdn
|
||||||
imagePullPolicy: "Always"
|
imagePullPolicy: "Always"
|
||||||
ports:
|
ports:
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@ set -o errexit
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
export INSTALL_HOME=/opt/dragonfly
|
export INSTALL_HOME=/opt/dragonfly
|
||||||
export INSTALL_CDN_PATH=df-cdn
|
|
||||||
export INSTALL_BIN_PATH=bin
|
export INSTALL_BIN_PATH=bin
|
||||||
export GO_SOURCE_EXCLUDES=( \
|
export GO_SOURCE_EXCLUDES=( \
|
||||||
"test" \
|
"test" \
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ install() {
|
||||||
}
|
}
|
||||||
|
|
||||||
install-cdn() {
|
install-cdn() {
|
||||||
local installCdnDir="${INSTALL_HOME}/${INSTALL_CDN_PATH}"
|
local installCdnDir="${INSTALL_HOME}/${INSTALL_BIN_PATH}"
|
||||||
echo "install: ${installCdnDir}"
|
echo "install: ${installCdnDir}"
|
||||||
createDir "${installCdnDir}"
|
createDir "${installCdnDir}"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,4 +6,4 @@ set -o pipefail
|
||||||
|
|
||||||
nginx
|
nginx
|
||||||
|
|
||||||
/opt/dragonfly/df-cdn/cdn "$@"
|
/opt/dragonfly/bin/cdn "$@"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue