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

Dockerfile to Enable Mono Based Choco Builds #1153

Merged
merged 1 commit into from
Apr 26, 2017

Conversation

Linuturk
Copy link
Contributor

@Linuturk Linuturk commented Jan 31, 2017

This PR provides a Dockerfile and choco_wrapper script to enable easy Linux based choco.exe usage.

The Dockerfile copies the entire source tree into the container and then builds choco.exe using the build.sh script.

The choco_wrapper is copied into /usr/local/bin/choco and allows for easier execution of choco.exe using mono.

I suggest linking the repository to Docker Hub and releasing various versions of the Docker image using their build process.

Copy link
Member

@ferventcoder ferventcoder left a comment

Choose a reason for hiding this comment

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

This looks good, can you make the following changes:

  • Is it okay if we put these files in a subfolder or do they need to be at root? I'm not a big fan of having them in the root. Also, that folder should be docker/linux/Dockerfile to allow for a Windows Dockerfile to be added as well.
  • Can you squash all commits down to one?
  • When you squash the commits - add (maint) to the commit and fix up your message to use a short summary followed by a commit body that explains what this is for more deeply.

@ferventcoder
Copy link
Member

Added more to that second bit.

@Linuturk
Copy link
Contributor Author

Thanks for reviewing.

  • Let me play with the build arguments for the docker image and see if the sub folder is possible. I'm not an expert in Windows docker images so I can't speak to the need for separate windows / linux sub folders. It might make more sense to name the files Dockerfile.linux and add a Dockerfile.windows when/if that's contributed.
  • Sure, I'll merge the commits, no problem.
  • I think I understand what you mean here. I'll push up the changes to this PR and you can tell me yes or no.

Adds a dockerfile for the mono choco build.
Adds the wrapper Bash script for easier choco commands in the container.
Stores assets in a docker subfolder.
Adds documentation on how to build the image yourself.
@Linuturk
Copy link
Contributor Author

Hopefully that satisfies your change requests.

@ferventcoder
Copy link
Member

That looks great!

@Linuturk
Copy link
Contributor Author

See this is still marked as needing changes. Anything else I can do?

@ferventcoder ferventcoder merged commit d56b4fd into chocolatey:master Apr 26, 2017
@ferventcoder
Copy link
Member

No sir. All good to go. Merged in. Thanks!

@Linuturk
Copy link
Contributor Author

👍 Now we've got the right stuff in place for an official Docker Hub build! Excited for that next step.

@petemounce
Copy link

petemounce commented Feb 20, 2018

Linking bazelbuild/bazel#4559 for a +1. #1020 is a likely fix, since it would allow us to use supported mono containers which (presumably!) have up-to-date SSL certs within.

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