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

Use better assemble script #17

Closed
jarifibrahim opened this issue Nov 28, 2018 · 8 comments
Closed

Use better assemble script #17

jarifibrahim opened this issue Nov 28, 2018 · 8 comments
Assignees

Comments

@jarifibrahim
Copy link

The assemble script used currently supports very limited features. We should improve the assemble script and build something similar to https://github.com/amsokol/openshift-golang-template/blob/master/S2I/.s2i/bin/assemble

@jcajka
Copy link
Contributor

jcajka commented Nov 28, 2018

What feature are you missing/wanting?

@jcajka jcajka self-assigned this Nov 28, 2018
@jarifibrahim
Copy link
Author

For starters

@jcajka
Copy link
Contributor

jcajka commented Nov 28, 2018

@jarifibrahim I'm generally against pulling in dependencies(yet more tools) via go get/wget/... in to the base image as it is not reproducible and most importantly are incompatible with distro infras/guidelines/philosophy, so it is no go. I think that you would be better of with your own layered image for this or you will need to package those tools for distributions that you are interested in(and we will pull them in via yum or dnf). AFAIK dep is dead and has been replaced with Go modules(which we should support as it is part of the base toolset from go1.11). I want to look in to the modules support, but I haven't go time for that yet.

What is not clear? In generally(in addition to what is written in the README) those are needed as there is/were no canonical repo layout for Go package(in same way as for C/C++ project). And many are using complex build scripts.

I will investigate.

Closing this as you have opened issues that are actually actionable and concrete.

@jcajka jcajka closed this as completed Nov 28, 2018
@jarifibrahim
Copy link
Author

I think that you would be better of with your own layered image for this

Do you mean using a different builder image than go-toolset-7-centos7?

@jcajka
Copy link
Contributor

jcajka commented Nov 28, 2018

I think that you would be better of with your own layered image for this

Do you mean using a different builder image than go-toolset-7-centos7?

No, that you will create your own builder image FROM go-toolset-7-centos7 and you will add and override what you will need(install dep, use your own assemble/build script,...). Image from this repo aim on providing only things that could be supported(whatever that means) by the respective distros, i.e. are not randomly pulled from internet.

@jarifibrahim
Copy link
Author

jarifibrahim commented Nov 28, 2018

Image from this repo aim on providing only things that could be supported(whatever that means) by the respective distros, i.e. are not randomly pulled from internet.

This makes sense. Thank you :)

Can you please add the same comment on #19 and close it?

@sbose78
Copy link

sbose78 commented Nov 28, 2018

AFAIK dep is dead and has been replaced with Go modules

dep is still used heavily in a lot of projects, and adding support for it will make this builder image useful.

@jcajka
Copy link
Contributor

jcajka commented Dec 4, 2018

@sbose78 I'm not saying that it is not useful or that it is not used but projects, but they should be moving in direction of modules(and their best practices) and provide feedback in upstream. I will definitively investigate it(for Fedora image as we do carry it there).

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

3 participants