Skip to content

Commit

Permalink
Added a Dockerfile for a custom Che stack.
Browse files Browse the repository at this point in the history
  • Loading branch information
DougTidwell committed Nov 9, 2018
1 parent 910b834 commit 73d6f98
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 5 deletions.
30 changes: 30 additions & 0 deletions Dockerfile.cmake
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
8 changes: 3 additions & 5 deletions README.md
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.

0 comments on commit 73d6f98

Please sign in to comment.