Compare commits

..

No commits in common. "1.20" and "master" have entirely different histories.

5 changed files with 103 additions and 44 deletions

15
Makefile Normal file
View 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

View file

@ -1,45 +1,53 @@
document: modulemd-packager document: modulemd
version: 3 version: 1
data: data:
summary: nginx webserver summary: nginx webserver
description: nginx webserver 1.20 stream description: an initial version of the nginx webserver module
license: license:
- MIT module: [ MIT ]
configurations: dependencies:
- context: "8b234a03" buildrequires:
platform: eln base-runtime: master
- context: "5e5ad4a0" requires:
platform: f36 base-runtime: master
- context: "9e842022" references:
platform: f37 community: https://docs.pagure.org/modularity/
- context: "f38" documentation: https://github.com/container-images/nginx
platform: f38 tracker: https://github.com/container-images/nginx
- context: "f39" profiles:
platform: f39 default:
references: rpms:
documentation: http://nginx.org/en/docs/ - nginx
tracker: https://trac.nginx.org/nginx/ api:
profiles: rpms:
common: - nginx
rpms: components:
- nginx rpms:
- nginx-all-modules nginx:
minimal: rationale: Provides API for this module.
rpms: ref: f26
- nginx-core
api: gperftools:
rpms: rationale: dependency
- nginx ref: f26
- nginx-all-modules libmnl:
- nginx-core rationale: dependency
- nginx-filesystem ref: f26
- nginx-mod-http-image-filter libnetfilter_conntrack:
- nginx-mod-http-perl rationale: dependency
- nginx-mod-http-xslt-filter ref: f26
- nginx-mod-mail libnfnetlink:
- nginx-mod-stream rationale: dependency
components: ref: f26
rpms: libunwind:
nginx: rationale: dependency
rationale: nginx package ref: f26
ref: stream-1.20 libxkbcommon:
rationale: dependency
ref: f26
mailcap:
rationale: dependency
ref: f26
xkeyboard-config:
rationale: dependency
ref: f26

0
sources Normal file
View file

7
tests/Makefile Normal file
View 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
View 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!"'