Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Properly build tarball for distribution #81

Merged
merged 1 commit into from
Apr 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions hack/builder/titus-executor-builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ if [[ -n "${BUILD_NUMBER:-}" ]]; then
fi

# Build a tarball
mkdir build/tarball
mkdir -p build/tarball
install -t build/tarball build/bin/linux-amd64/*
install -t build/tarball root/apps/titus-executor/bin/run
tar -czv -C build/tarball -f ${outdir}/titus-executor-${version}.tar.gz .
Expand Down Expand Up @@ -123,7 +123,7 @@ lintian --suppress-tags statically-linked-binary,unstripped-binary-or-object,deb
--no-tag-display-limit "${outdir}/${filename}"

mv "${outdir}"/titus-executor_"${version}"*.deb /dist

cp ${outdir}/titus-executor-${version}.tar.gz /dist
echo "## Updating the symlink: titus-executor_latest.deb -> ${filename}" >&2
ln -sf "$filename" /dist/titus-executor_latest.deb

Expand Down
2 changes: 1 addition & 1 deletion root/apps/titus-executor/bin/run
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ if [ -z "${LIBPROCESS_IP}" ]; then
export LIBPROCESS_IP="${EC2_LOCAL_IPV4}"
fi

exec /apps/titus-executor/bin/titus-executor --s3-uploader=$log_bucket
exec $(dirname $0)/titus-executor --s3-uploader=$log_bucket