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/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
|
||||
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ spec:
|
|||
- |
|
||||
cp /etc/dragonfly/nginx.conf /etc/nginx/nginx.conf
|
||||
nginx
|
||||
exec /opt/dragonfly/df-cdn/cdn
|
||||
exec /opt/dragonfly/bin/cdn
|
||||
image: dragonflyoss/cdn
|
||||
imagePullPolicy: "Always"
|
||||
ports:
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ spec:
|
|||
- |
|
||||
cp /etc/dragonfly/nginx.conf /etc/nginx/nginx.conf
|
||||
nginx
|
||||
exec /opt/dragonfly/df-cdn/cdn
|
||||
exec /opt/dragonfly/bin/cdn
|
||||
image: dragonflyoss/cdn
|
||||
imagePullPolicy: "Always"
|
||||
ports:
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ set -o errexit
|
|||
set -o pipefail
|
||||
|
||||
export INSTALL_HOME=/opt/dragonfly
|
||||
export INSTALL_CDN_PATH=df-cdn
|
||||
export INSTALL_BIN_PATH=bin
|
||||
export GO_SOURCE_EXCLUDES=( \
|
||||
"test" \
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ install() {
|
|||
}
|
||||
|
||||
install-cdn() {
|
||||
local installCdnDir="${INSTALL_HOME}/${INSTALL_CDN_PATH}"
|
||||
local installCdnDir="${INSTALL_HOME}/${INSTALL_BIN_PATH}"
|
||||
echo "install: ${installCdnDir}"
|
||||
createDir "${installCdnDir}"
|
||||
|
||||
|
|
|
|||
|
|
@ -6,4 +6,4 @@ set -o pipefail
|
|||
|
||||
nginx
|
||||
|
||||
/opt/dragonfly/df-cdn/cdn "$@"
|
||||
/opt/dragonfly/bin/cdn "$@"
|
||||
|
|
|
|||
Loading…
Reference in New Issue