-
Notifications
You must be signed in to change notification settings - Fork 113
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
Organize samples #366
Comments
If the samples are going to include source code to build, then I am inclined to go with option 3. I really like the idea of having multiple build strategies highlighted with the same set of source code. Being able to pick and choose build strategies is the "killer feature" IMO. We should probably restrict the number of I also think we should use |
This is an "option 3" example I cooked up today: https://github.com/adambkaplan/shipwright-example-nodejs |
I think we should have both For different types of example and for different tests. |
The existing one have an issue on the go.mod definition, leading to build failures when using the latest golang image. This PR changes the repo to use, which have the fixes in place. This is a fix PR, the end-goal is to tackle issue shipwright-io#366 which should avoid problems like this in the future.
The existing one have an issue on the go.mod definition, leading to build failures when using the latest golang image. This PR changes the repo to use, which have the fixes in place. This is a fix PR, the end-goal is to tackle issue shipwright-io#366 which should avoid problems like this in the future.
Hi @adambkaplan or @qu1queee , I think we can go head moving the samples to our Shipwright org for As we discussed in the meeting, we planed to create some separate repos for different source. Like:
I found I have the permission to create new repo like: If no objection, we will open the new repos for these personal sources and switch in our e2e test. |
@zhangtbj thanks. I think is fine, but I will prefer different names, something like: |
Agree, they are better names. If all agree, we can create the new repos by following these names. BTW, @qu1queee, I cannot delete this repo: https://github.com/shipwright-io/samples-npm-simple Can you help delete it on your side? |
@zhangtbj so I covered most of the work via #635. PR explains what I did, Im looking for help with:
Im looking for feedback in general for the new repos: @adambkaplan fyi ^^ |
Just noticed that I can create some repo. I created sample-java. Will add code to it later. |
Done. Is here: sample-java. @qu1queee |
Remaining item - we need to configure a private repository to facilitate our end to end test suites which clone source from private git repos. |
I would like to pick up this issue to add an e2e test for testing image building from a private repo. |
I've split the private repository work into a separate issue: #689 |
/close Given that we are tracking the private repository work into a separate issue, I think we can call this issue done. |
@adambkaplan: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Samples consist of two pieces:
As of today, we have the CR samples in the samples directory. In, addition, for e2e tests, more CRs are in the test/data directory. That's fine for now.
Our sample code repositories are distributed across the planet. I suggest to bring them into the shipwright-io organization to mitigate that somebody removes the repos.
There are several ways to setup these repos. Putting together some options.
(1) A single samples repository named
samples
with a directory structure containing the sample code(+) A single visible has good visibility
(-) Can become large. A lot of unnecessary files will be cloned for a build run.
(-) Does not work for build strategies that do not yet / can never support the
contextDir
feature. Not sure if we have some.(2) One repository for each strategy named
samples-{strategy}
, may or may not contain sub-directories for different languages, e. g.sample-docker
orsample-buildpacks
(+) Good for somebody who specifically looks how the sources for a specific strategy need to be prepared.
(-) Does not work for build strategies that do not yet / can never support the
contextDir
feature. Not sure if we have some.(3) One repository for each language named
sample-{language}
(e. g.sample-java
). Sample is built in a way supporting multiple strategies (specifically thinking about docker and buildpacks)(+) Good for somebody who specifically looks for how the sources for a specific language can be built and who does not know much about the strategies
(+) Is small which will speed up e2e tests that use the repo.
(-) Can be confusing because it will contain a Dockerfile that is needed for a docker build but unnecessary for buildpacks. And will contain a buildpack.yml to configure certain buildpack details but that file is not relevant for the docker build.
The text was updated successfully, but these errors were encountered: