Skip to content

Commit

Permalink
adjust args
Browse files Browse the repository at this point in the history
  • Loading branch information
vcptr committed Oct 31, 2019
1 parent 4da588d commit bec564b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
FROM golang:alpine AS builder
RUN apk update && apk add --no-cache git bash wget
WORKDIR /go/src/v2ray.com/core
RUN git clone --progress --depth=1 --branch dockerdev https://github.com/v2fly/v2ray-core.git . && \
bash -x ./release/user-package.sh nosource noconf abpathtgz=/tmp/v2ray.tgz
RUN git clone --progress --depth=1 https://github.com/v2fly/v2ray-core.git . && \
bash ./release/user-package.sh nosource noconf abpathtgz=/tmp/v2ray.tgz
############################
# STEP 2 build a small image
############################
Expand Down
8 changes: 8 additions & 0 deletions release/user-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@ case $arg in
abpathtgz=*)
pkg=${arg##abpathtgz=}
;;
codename=*)
CODENAME=${arg##codename=}
;;
buildname=*)
BUILDNAME=${arg##buildname=}
;;
esac
done

Expand All @@ -146,6 +152,8 @@ if [[ $nosource != 1 ]]; then
fi

export GOOS GOARCH
echo "Build ARGS: GOOS=${GOOS} GOARCH=${GOARCH} CODENAME=${CODENAME} BUILDNAME=${BUILDNAME}"
echo "PKG ARGS: pkg=${pkg}"
build_v2

if [[ $nodat != 1 ]]; then
Expand Down

0 comments on commit bec564b

Please sign in to comment.