Coder Social home page Coder Social logo

hnakamur / nginx-rpm Goto Github PK

View Code? Open in Web Editor NEW
36.0 4.0 20.0 472.8 MB

A Dockerfile to build nginx rpm for CentOS 6 and 7 using fedora copr (no plan to add support EL8, pull requests not welcome, feel free to fork)

Home Page: https://copr.fedoraproject.org/coprs/hnakamur/nginx/

License: MIT License

Shell 96.61% Dockerfile 3.39%

nginx-rpm's Introduction

nginx-rpm

A Dockerfile to build nginx rpm for CentOS 6 and 7 using fedora copr.

This build includes the following modules as dynamic modules:

Warning: Modules may be added or deleted without notice.

Setup

  1. Copy .envrc.example to .envrc.
  2. Go https://copr.fedoraproject.org/api/ and login in and see the values to set.
  3. Then modify .envrc

Usage: How to build rpms

Build docker image

To build the docker image to build the srpm or rpm files, run the following command.

./docker_wrapper.sh build

Build rpms using mock on a docker container

To try building rpm files with mock, run the following command.

source .envrc
./docker_wrapper.sh bash

Then in the docker container, run the fowllowing command to build rpms with mock.

./build.sh mock

If the build finish successfully, run the following command to upload the srpm file to copr.

./build.sh copr

Build srpm and upload it to copr

If you are sure your rpms will be built successfully, skip the above section "Build rpms interactively" and run the following command to run the docker image to build the srpm file and upload it to copr.

source .envrc
./docker_wrapper.sh run

NOTE: Using direnv

I recommend you to use direnv/direnv instead of running source .envrc yourself.

Modify this scripts to build other rpms

  1. Edit imagename in docker_wrapper.sh
  2. See NOTE comments in script/build.sh and edit variables and commands
  3. Put the spec file in the SPECS directory
  4. Put the source files in the SOURCES directory

License

MIT

nginx-rpm's People

Contributors

hnakamur avatar masa23 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nginx-rpm's Issues

Build error with LuaJIT

Even though I have LuaJIT installed, the rpm fails to build for me on CentOS 7.

$ rpm -qa luajit
luajit-2.0.4-3.el7.x86_64

[...]

configuring additional modules
adding module in ./ngx_devel_kit
 + ngx_devel_kit was configured
configuring additional dynamic modules
adding module in ./lua-nginx-module
checking for LuaJIT library in /usr/lib64 and /usr/include/luajit-2.1 (specified by the LUAJIT_LIB and LUAJIT_INC env, with -ldl) ... found
checking for LuaJIT 2.x ... not found
    ./configure: error: unsupported LuaJIT version; ngx_http_lua_module requires LuaJIT 2.x.
error: Bad exit status from /var/tmp/rpm-tmp.MjKdeF (%build)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.