Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add action to create deb/rpm packages #4963

Merged
merged 4 commits into from
Jul 20, 2019
Merged

Add action to create deb/rpm packages #4963

merged 4 commits into from
Jul 20, 2019

Conversation

dctrwatson
Copy link
Contributor

Partially addresses #4955

Signed-off-by: John Watson johnw@planetscale.com

Signed-off-by: John Watson <johnw@planetscale.com>
Copy link
Contributor

@dkhenry dkhenry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requesting a few changes, but I will Approve it for now. If you can add in the missing binaries. The other changes might be better served by moving from FPM to native packaging, so we can always do that in a latter PR

/vt/bin/vtctld
/vt/bin/vtgate
/vt/bin/vttablet
/vt/bin/vtworker
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add in /vt/bin/vtbackup

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also /vt/bin/vtctl

VTTOP="$VTROOT/src/vitess.io/vitess"
GOTOP="$VTTOP/go"
GOBIN="$VTROOT/bin"
GOPATH="$VTROOT"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if we should have golang variables in the packagesa. I think in a perfect world you don't need to have any go installed to install vitess

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not for Go itself, but in https://github.com/vitessio/vitess/blob/master/docker/lite/Dockerfile#L38 this comment makes them sound necessary.

# Set up Vitess environment (just enough to run pre-built Go binaries)

--directories "/vt/bin" \
--directories "/vt/src" \
--inputs "${inputs_file}" \
--before-install "/vt/packaging/preinstall.sh" \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For all of these can we move from Vitess specific directories to the standard unix directories.

config=/etc/vitess
bin=$PREFIX/bin
src=$PREFIX/src
lib=$PREFIX/lib/vitess/ 

and have all the web resource go into the lib folder

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Easy enough to do. I was just mimicking the lite docker image.

Signed-off-by: John Watson <johnw@planetscale.com>
Signed-off-by: John Watson <johnw@planetscale.com>
Signed-off-by: John Watson <johnw@planetscale.com>
@sougou
Copy link
Contributor

sougou commented Jul 15, 2019

@dkhenry Is this ready to merge?

@dkhenry dkhenry merged commit 9c2a11e into vitessio:master Jul 20, 2019
systay pushed a commit that referenced this pull request Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants