Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign uplinux tarball is not namespaced #935
Comments
This comment has been minimized.
This comment has been minimized.
|
Yeah, historical reasons for that. Originally, the "bunch of files" was just one, the |
This comment has been minimized.
This comment has been minimized.
|
Other historical reason: we didn't want any versioning in the contained files because we just want to unpack them into the same place always and use the same run script, etc. That would get more annoying when unpacking to a versioned directory. @matthiasr opinion? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
For other services, we have deploy scripts do something like this: ETCD_FOLDER=$(echo "$ETCD_TARBALL" | sed -e 's/.tar.gz//')
[ -x "$ETCD_FOLDER" ] || tar xf "$ETCD_TARBALL"
rm -f etcd && ln -s "$ETCD_FOLDER" etcdThen "etcd" is always a symlink to the currently-installed version, which has the advantage of telling us at a glance which version is running, and lets us keep old versions around for rollback. I think this is really common (we certainly didn't invent it). So far, prometheus is the only service I've deployed that doesn't make unix-style tarball folders like this. |
This comment has been minimized.
This comment has been minimized.
|
Ok, sounds good to me then. But then we should do this for all our projects for consistency, including those that have only one binary file. @robey wanna give it a try? |
This comment has been minimized.
This comment has been minimized.
|
This should go into the next minor release then, it is a breaking change. |
This comment has been minimized.
This comment has been minimized.
|
PS: with proper packages everything will be ok :) |
robey
referenced this issue
Jul 28, 2015
Merged
create a unix-style tarball with a nested folder #938
This comment has been minimized.
This comment has been minimized.
|
Unless your build is more complicated than it looks, I think that will do it. |
This comment has been minimized.
This comment has been minimized.
|
Yep, should be super straightforward. |
juliusv
closed this
in
#938
Jul 28, 2015
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
robey commentedJul 27, 2015
If you
tar xvfthe distribution tarball, at least as of 0.15.1, it will dump a bunch of files in the current folder, not a distribution folder. Normally, a distribution tarball should contain all the files inside a folder with the same name (soprometheus-0.15.1.linux-amd64.tar.gzwould unpack into a new folder calledprometheus-0.15.1.linux-amd64.