We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e8c5b3 commit ad88f9aCopy full SHA for ad88f9a
packaging/centos-7/Dockerfile
@@ -0,0 +1,12 @@
1
+FROM centos:latest
2
+
3
4
+MAINTAINER Oleg Strizhechenko version: 0.1
5
6
+RUN yum -y install epel-release && yum -y update
7
+RUN yum -y install ruby-devel gcc make rpm-build rubygems python-pip
8
+RUN gem install --no-ri --no-rdoc fpm
9
+ADD netutils.sh /root/netutils.sh
10
+RUN pip install setuptools
11
12
+CMD ["/bin/bash"]
packaging/centos-7/netutils.sh
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+IFS=: read _ _ distro _ release _ < /etc/system-release-cpe
+if [ "$distro" != "centos" ]; then
+ echo "Script written to run in CentOS, not $distro"
+fi
+fpm -s python -t rpm -d PyYAML --python-disable-dependency pyyaml --rpm-dist "el$release" netutils-linux
0 commit comments