Skip to content

Instantly share code, notes, and snippets.

@davidalger
Last active May 18, 2020 16:08
Show Gist options
  • Save davidalger/cdc56efb1bbb1140d2315a355379bafc to your computer and use it in GitHub Desktop.
Save davidalger/cdc56efb1bbb1140d2315a355379bafc to your computer and use it in GitHub Desktop.
PHP 7.4 build script to create RPM repository based on IUS/Fedora spec files

How to Use This

  1. Spin up a CentOS 7 server on Digital Ocean with 2G memory using Test Ocean stack. It may also be run from within a centos:7 Docker container.

    terraform apply -var droplet_image=centos-7-x64 -var droplet_size=2gb -var droplet_count=1
    
  2. SSH into the server (dropping into root via sudo -i) then run the following to execute the script.

    curl -s https://raw.githubusercontent.com/davidalger/docker-images-php/master/scripts/php74-build.sh?t=$(date +%s) | bash
    

Docker Images

Images built using the RPMs resulting from this script are available here: https://hub.docker.com/r/davidalger/php/tags?page=1&name=7.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment