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

question / idea #15

Open
joeblew99 opened this issue May 4, 2015 · 8 comments
Open

question / idea #15

joeblew99 opened this issue May 4, 2015 · 8 comments

Comments

@joeblew99
Copy link

this looks really nice.

i am thinking of a slightly different applicatin of this.
I think i can use this for packaging my own server deployment package too. Like when you need a stupid c lib on the server or client. i can pack it in, and then install it from a nice single deployed app.

the .sh bash install script can be embedded, but i expect a golang server on the server will need to call it, due to security issues.

does anyone else know a different way of approaching this ? Or maybe your interested in extending this project to do it, or make another project that uses this to do it.

@elazarl
Copy link
Owner

elazarl commented May 4, 2015

I'm sorry, but I don't fully understand your use case.

Can you give an example?

@joeblew99
Copy link
Author

Ok I try.

You are building a go package that relies on lots of c based compiled libs.
You want to do idempotent deployments.

So you embedded everything as part if the release.

When its deployed, it unpacks, using the same bash script you useg on your macbook.


Its acting as an installer essentially.

@elazarl
Copy link
Owner

elazarl commented May 4, 2015

But you can't do that with Go at all!

Go executable for Linux would not run at Mac. You must use some other
language.

On Mon, May 4, 2015 at 9:10 PM, joeblew99 [email protected] wrote:

Ok I try.

You are building a go package that relies on lots of c based compiled libs.
You want to do idempotent deployments.

So you embedded everything as part if the release.

When its deployed, it unpacks, using the same bash script you useg on your

macbook.

Its acting as an installer essentially.


Reply to this email directly or view it on GitHub
#15 (comment)
.

@joeblew99
Copy link
Author

No I think your missing the point.

Its basically packaging the dependencies with the executable, and then installing the dependencies when deployed.

Obviously its is specific.

@elazarl
Copy link
Owner

elazarl commented May 4, 2015

OK, I see. Why do you need assetfs for that? Just copy the dependencies
somewhere and that's it.

On Mon, May 4, 2015 at 9:35 PM, joeblew99 [email protected] wrote:

No I think your missing the point.

Its basically packaging the dependencies with the executable, and then
installing the dependencies when deployed.

Obviously its is specific.


Reply to this email directly or view it on GitHub
#15 (comment)
.

@joeblew99
Copy link
Author

Because when you deplo to 200 servers and its 20 different packages, thats 4000 things that could go wrong.

Its idempotent basically

@elazarl
Copy link
Owner

elazarl commented May 5, 2015

I meant, embed everything in the binary, and have the binary copy it. You
need go-bindata, but don't need assetfs.

On Mon, May 4, 2015 at 9:39 PM, joeblew99 [email protected] wrote:

Because when you deplo to 200 servers and its 20 different packages, thats
4000 things that could go wrong.

Its idempotent basically


Reply to this email directly or view it on GitHub
#15 (comment)
.

@joeblew99
Copy link
Author

Ok thanks. Closing.. :)

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

No branches or pull requests

2 participants