forked from DougTidwell/podman-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a Dockerfile for a custom Che stack.
- Loading branch information
1 parent
910b834
commit 73d6f98
Showing
2 changed files
with
33 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Start with an image that we know works with Che | ||
FROM registry.centos.org/che-stacks/centos-stack-base | ||
|
||
MAINTAINER Doug Tidwell <[email protected]> | ||
|
||
# Run yum update for good system hygiene | ||
RUN sudo yum -y update && \ | ||
|
||
# The next few lines fix a security issue | ||
sudo yum -y install kernel-headers && \ | ||
sudo rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org && \ | ||
sudo rpm -Uvh http://elrepo.org/linux/kernel/el7/x86_64/RPMS/elrepo-release-7.0-3.el7.elrepo.noarch.rpm && \ | ||
sudo yum --enablerepo=elrepo-kernel -y install kernel-ml && \ | ||
sudo yum --enablerepo=elrepo-kernel -y swap kernel-headers -- kernel-ml-headers && \ | ||
|
||
# Now install the tools and libraries we'll need | ||
sudo yum -y install centos-release-scl gcc gcc-c++ make libedit-devel python-yaml curl java-1.8.0-openjdk-devel && \ | ||
|
||
# Finally, get the source code for cmake, build it, and create a symlink to it | ||
cd /usr/local/bin && \ | ||
sudo curl -O https://cmake.org/files/v3.8/cmake-3.8.0.tar.gz && \ | ||
sudo tar -xf cmake-3.8.0.tar.gz && \ | ||
sudo rm cmake-3.8.0.tar.gz && \ | ||
cd cmake-3.8.0 && \ | ||
sudo ./bootstrap && \ | ||
sudo make && \ | ||
sudo ln -s /usr/local/bin/cmake-3.8.0/bin/cmake /usr/local/bin/cmake | ||
|
||
# The standard command to keep the container running | ||
CMD tail -f /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
# podman-demo | ||
|
||
This repo is nothing more than a `Dockerfile` that podman can use to build | ||
an image. The point of this demo is to illustrate that podman can create | ||
This repo is turning into a collection of `Dockerfile`s | ||
that `podman` can use to build | ||
an image. The point is to illustrate that podman can create | ||
Docker-compatible images that conform to the Open Container Initiative (OCI) | ||
image format. | ||
|
||
The `Dockerfile` is built with Fedora / `dnf` in mind. If you're using CentOS | ||
or RHEL or some other Linux distro, you'll may have to modify the `Dockerfile` | ||
for your platform. |