1. How to create an RPM for Python 3.9 to use with CentOS 7

    Create a Docker Container:

    For convenience, we'll build the RPM inside a CentOS 7 docker container.

    1. Create the CentOS 7 container:

    docker run -dt --name centos7 centos:7 bash
    

    2. Enter the container:

    docker exec -it centos7 bash
    

    Install and configure CCache:

    Since compiling can take a while and …


  2. Building an RPM for Ruby 2.4.1

    These are my notes on how I used FPM to build an RPM for Ruby 2.4.1.

    1. Install the dependencies that we need to build Ruby:

    yum -y install openssl-devel libffi-devel readline-devel gdbm-devel libyaml-devel \
    tcl-devel tk-devel ruby ruby-devel gcc rpm-build gcc-c++ gmp-devel doxygen make \
    systemtap-sdt-devel graphviz
    

    2. Install …



  3. Generating thousands of files for testing purposes

    Hello internet,

    Recently I was in a situation where I was asked to migrate a server to a different provider.

    I figured this would be trivial so I started with the usual rsync in a screen copy. I checked a few hours later and rsync was frozen.

    Further investigation revealed …


  4. Simple RPM packages with FPM

    Recently I've been working on a project where we had a need to put together some shell scripts in a package to use in CentOS servers.

    We could have easily tarred them up, but then updating a bunch of servers consistently whenever we had an upgrade would be a pain …





Page 1 / 1