Skip to content

Commit

Permalink
chore: unify binary directory (#828)
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Ma <majinjing3@gmail.com>
  • Loading branch information
jim3ma authored and gaius-qi committed Jun 28, 2023
1 parent 4a99bdf commit 6bad029
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build/images/cdn/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 0 additions & 1 deletion hack/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down
2 changes: 1 addition & 1 deletion hack/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down
2 changes: 1 addition & 1 deletion hack/start-cdn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ set -o pipefail

nginx

/opt/dragonfly/df-cdn/cdn "$@"
/opt/dragonfly/bin/cdn "$@"

0 comments on commit 6bad029

Please # to comment.