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 docker support #87

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open

Add docker support #87

wants to merge 23 commits into from

Conversation

maddouri
Copy link

@maddouri maddouri commented Apr 25, 2016

Hello,

This is a followup to #85
I think that it may prove interesting to have a docker build. Most notably, it allows the following:

  1. Controlled and consistent builds across a variety of platforms,
  2. Getting started easily and quickly with Cling. (cf. tools/docker/README.md)

I wasn't sure where exactly to put the files, so I used tools/docker. Feel free to propose another location.

I have already published a standalone version at https://github.com/maddouri/cling-ubuntu-docker
You can test it by running the following:

# get the build from docker hub
docker pull maddouri/cling-ubuntu-docker
# run it (the entry point is cling)
docker run -it maddouri/cling-ubuntu-docker

Axel-Naumann and others added 23 commits December 4, 2014 21:10
use size_t for void pointer cast
Repos hosted in GitHub have the advantage of a rich API.
The variables where this change will be reflected are:
LLVM_GIT_URL, WITH_LLVM_URL
CLANG_GIT_URL, CLANG_GIT_URL
CLING_GIT_URL, CLING_GIT_URL
- prefer new method if the repos are hosted in Github
- fix an IndexError bug in home-grown wget()
CPT disk space usage optimizations.
# get the build from docker hub
docker pull maddouri/cling-ubuntu-docker
# run it ! (the entry point is cling)
docker run -it maddouri/cling-ubuntu-docker
Copy link
Owner

Choose a reason for hiding this comment

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

What does a prebuilt image mean? Do we need this to go in cling's mainline?

Copy link
Author

Choose a reason for hiding this comment

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

Just a Docker Image that someone (in this instance, I) pushed to Docker Hub.

Apart from the files in tools/docker, there is nothing else to merge.

If you decide to merge this PR, you will have the following options:

  1. Let the users build their own images, (on their own machines)
  2. Build your own "official" image, push it to your own Docker Hub repo, and let the users know that they can pull it directly from Docker Hub,
  3. Let the users pull other users' images. (e.g. the ones I've pushed to Docker Hub)

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.

5 participants