Compare commits
No commits in common. "mainline" and "master" have entirely different histories.
5 changed files with 102 additions and 36 deletions
15
Makefile
Normal file
15
Makefile
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
IMAGE_NAME = nginx
|
||||||
|
|
||||||
|
MODULEMDURL=file://nginx.yaml
|
||||||
|
|
||||||
|
default: run
|
||||||
|
|
||||||
|
build:
|
||||||
|
docker build --tag=$(IMAGE_NAME) .
|
||||||
|
|
||||||
|
run: build
|
||||||
|
docker run -d $(IMAGE_NAME)
|
||||||
|
|
||||||
|
test: build
|
||||||
|
cd tests; MODULE=docker MODULEMD=$(MODULEMDURL) URL="docker=$(IMAGE_NAME)" make all
|
||||||
|
cd tests; MODULE=rpm MODULEMD=$(MODULEMDURL) URL="docker=$(IMAGE_NAME)" make all
|
||||||
87
nginx.yaml
87
nginx.yaml
|
|
@ -1,38 +1,53 @@
|
||||||
document: modulemd-packager
|
document: modulemd
|
||||||
version: 3
|
version: 1
|
||||||
data:
|
data:
|
||||||
summary: nginx webserver
|
summary: nginx webserver
|
||||||
description: nginx webserver mainline stream
|
description: an initial version of the nginx webserver module
|
||||||
license:
|
license:
|
||||||
- MIT
|
module: [ MIT ]
|
||||||
configurations:
|
dependencies:
|
||||||
- context: "f38"
|
buildrequires:
|
||||||
platform: f38
|
base-runtime: master
|
||||||
references:
|
requires:
|
||||||
documentation: http://nginx.org/en/docs/
|
base-runtime: master
|
||||||
tracker: https://trac.nginx.org/nginx/
|
references:
|
||||||
profiles:
|
community: https://docs.pagure.org/modularity/
|
||||||
common:
|
documentation: https://github.com/container-images/nginx
|
||||||
rpms:
|
tracker: https://github.com/container-images/nginx
|
||||||
- nginx
|
profiles:
|
||||||
- nginx-all-modules
|
default:
|
||||||
minimal:
|
rpms:
|
||||||
rpms:
|
- nginx
|
||||||
- nginx-core
|
api:
|
||||||
api:
|
rpms:
|
||||||
rpms:
|
- nginx
|
||||||
- nginx
|
components:
|
||||||
- nginx-all-modules
|
rpms:
|
||||||
- nginx-core
|
nginx:
|
||||||
- nginx-filesystem
|
rationale: Provides API for this module.
|
||||||
- nginx-mod-http-image-filter
|
ref: f26
|
||||||
- nginx-mod-http-perl
|
|
||||||
- nginx-mod-http-xslt-filter
|
|
||||||
- nginx-mod-mail
|
|
||||||
- nginx-mod-stream
|
|
||||||
components:
|
|
||||||
rpms:
|
|
||||||
nginx:
|
|
||||||
rationale: nginx package
|
|
||||||
ref: stream-mainline
|
|
||||||
|
|
||||||
|
gperftools:
|
||||||
|
rationale: dependency
|
||||||
|
ref: f26
|
||||||
|
libmnl:
|
||||||
|
rationale: dependency
|
||||||
|
ref: f26
|
||||||
|
libnetfilter_conntrack:
|
||||||
|
rationale: dependency
|
||||||
|
ref: f26
|
||||||
|
libnfnetlink:
|
||||||
|
rationale: dependency
|
||||||
|
ref: f26
|
||||||
|
libunwind:
|
||||||
|
rationale: dependency
|
||||||
|
ref: f26
|
||||||
|
libxkbcommon:
|
||||||
|
rationale: dependency
|
||||||
|
ref: f26
|
||||||
|
mailcap:
|
||||||
|
rationale: dependency
|
||||||
|
ref: f26
|
||||||
|
xkeyboard-config:
|
||||||
|
rationale: dependency
|
||||||
|
ref: f26
|
||||||
|
|
|
||||||
0
sources
Normal file
0
sources
Normal file
7
tests/Makefile
Normal file
7
tests/Makefile
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
MODULE_LINT=/usr/share/moduleframework/tools/modulelint.py
|
||||||
|
CMD=python -m avocado run --filter-by-tags=-WIP $(MODULE_LINT) *.py
|
||||||
|
|
||||||
|
#
|
||||||
|
all:
|
||||||
|
generator
|
||||||
|
$(CMD)
|
||||||
29
tests/config.yaml
Normal file
29
tests/config.yaml
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
document: modularity-testing
|
||||||
|
version: 1
|
||||||
|
name: nginx
|
||||||
|
modulemd-url: http://raw.githubusercontent.com/container-images/nginx/master/nginx.yaml
|
||||||
|
service:
|
||||||
|
port: 80
|
||||||
|
packages:
|
||||||
|
rpms:
|
||||||
|
- nginx
|
||||||
|
testdependecies:
|
||||||
|
rpms:
|
||||||
|
- curl
|
||||||
|
module:
|
||||||
|
docker:
|
||||||
|
start: "docker run --rm -p 80:80 nginx"
|
||||||
|
source: https://github.com/container-images/nginx.git
|
||||||
|
container: docker.io/modularitycontainers/nginx
|
||||||
|
rpm:
|
||||||
|
start: systemctl start nginx
|
||||||
|
stop: systemctl stop nginx
|
||||||
|
status: systemctl status nginx
|
||||||
|
repos:
|
||||||
|
- http://mirror.vutbr.cz/fedora/releases/25/Everything/x86_64/os/
|
||||||
|
test:
|
||||||
|
processrunning:
|
||||||
|
- 'ls /proc/*/exe -alh | grep nginx'
|
||||||
|
testhost:
|
||||||
|
basic:
|
||||||
|
- 'curl localhost | grep "Welcome to nginx!"'
|
||||||
Loading…
Add table
Add a link
Reference in a new issue