From 4db441f4dfbc9cb096d4161ad24d33c38c111916 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 22 Oct 2014 16:12:29 -0700 Subject: [PATCH] Add initial Fedora Dockerfile --- resources/linux/redhat/Dockerfile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 resources/linux/redhat/Dockerfile diff --git a/resources/linux/redhat/Dockerfile b/resources/linux/redhat/Dockerfile new file mode 100644 index 000000000..c06547d45 --- /dev/null +++ b/resources/linux/redhat/Dockerfile @@ -0,0 +1,27 @@ +# VERSION: 0.1 +# DESCRIPTION: Create a .rpm file for the atom editor + +# Base docker image +FROM fedora:20 + +# Install dependencies +RUN yum install -y \ + make \ + gcc \ + gcc-c++ \ + glibc-devel \ + git-core \ + libgnome-keyring-devel \ + rpmdevtools + +# Install node +RUN curl -sL https://rpm.nodesource.com/setup | bash - +RUN yum install -y nodejs + +# Clone atom +RUN git clone https://github.com/atom/atom /src +WORKDIR /src +RUN git reset -q --hard $JANKY_SHA1 + +# Build the RPM +RUN script/build && script/grunt mkrpm