commit a6624d4b472adfac2afba1789ce234be1b176661 Author: Adam Samalik Date: Thu Feb 23 11:48:00 2023 +0000 update modulemd etc diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..75809f3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +# A workflow with docker is still uncertain. +# Keep watching below file and other module's situation. +# https://github.com/container-images/container-image-template/blob/master/Dockerfile.template +FROM registry.fedoraproject.org/f26-modular/boltron + +WORKDIR /build +COPY . . + +ENV LC_CTYPE C.UTF-8 + +RUN dnf -y update +RUN dnf -y --nodocs install \ + ruby \ + && dnf -y clean all + +CMD /bin/bash diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..cd54e7a --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +DOCKER_IMAGE=ruby + +default: test + +build-docker: + docker build -t $(DOCKER_IMAGE) . + +test-nspawn: + MODULE=nspawn $(MAKE) -C tests test + +test-docker: build-docker + MODULE=docker URL=docker=$(DOCKER_IMAGE) $(MAKE) -C tests test + +test: test-nspawn test-docker diff --git a/README.md b/README.md new file mode 100644 index 0000000..ca416cb --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +# modules/ruby + +## Current status + +This module is not available yet. + +See this Bugzilla ticket to check the status. + +https://bugzilla.redhat.com/show_bug.cgi?id=1490285 diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..9f1d298 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,7 @@ +--- !Policy +product_versions: + - rhel-8 +decision_context: osci_compose_gate_modules +subject_type: redhat-module +rules: + - !PassingTestCaseRule {test_case_name: baseos-ci.redhat-module.tier1.functional} diff --git a/ruby.yaml b/ruby.yaml new file mode 100644 index 0000000..65d43ee --- /dev/null +++ b/ruby.yaml @@ -0,0 +1,89 @@ +--- +document: modulemd +version: 2 +data: + stream: 2.5 + summary: An interpreter of object-oriented scripting language + description: >- + Ruby is the interpreted scripting language for quick and easy object-oriented + programming. It has many features to process text files and to do system management + tasks (as in Perl). It is simple, straight-forward, and extensible. + license: + module: + - MIT + dependencies: + - buildrequires: + platform: [el8] + requires: + platform: [el8] + references: + community: http://ruby-lang.org/ + documentation: https://www.ruby-lang.org/en/documentation/ + tracker: https://bugs.ruby-lang.org/ + profiles: + common: + rpms: + - ruby + api: + rpms: + - ruby + - ruby-devel + - ruby-irb + - ruby-libs + - rubygem-abrt + - rubygem-bigdecimal + - rubygem-bson + - rubygem-bundler + - rubygem-did_you_mean + - rubygem-io-console + - rubygem-json + - rubygem-minitest + - rubygem-mongo + - rubygem-mysql2 + - rubygem-net-telnet + - rubygem-openssl + - rubygem-pg + - rubygem-power_assert + - rubygem-psych + - rubygem-rake + - rubygem-rdoc + - rubygem-test-unit + - rubygem-xmlrpc + - rubygems + - rubygems-devel + buildopts: + rpms: + macros: | + %_without_rubypick 1 + components: + rpms: + ruby: + rationale: An interpreter of object-oriented scripting language + ref: stream-ruby-2.5-rhel-8.8.0 + buildorder: 101 + multilib: [x86_64] + rubygem-abrt: + rationale: ABRT support for Ruby + ref: stream-ruby-2.5-rhel-8.8.0 + buildorder: 102 + rubygem-bson: + rationale: Ruby Implementation of the BSON specification + ref: stream-ruby-2.5-rhel-8.8.0 + buildorder: 102 + rubygem-bundler: + rationale: Library and utilities to manage a Ruby application's gem dependencies + ref: stream-ruby-2.5-rhel-8.8.0 + buildorder: 102 + rubygem-mongo: + rationale: Ruby driver for MongoDB + ref: stream-ruby-2.5-rhel-8.8.0 + buildorder: 103 + rubygem-mysql2: + rationale: A simple, fast Mysql library for Ruby, binding to libmysql + ref: stream-ruby-2.5-rhel-8.8.0 + buildorder: 102 + rubygem-pg: + rationale: A Ruby interface to the PostgreSQL RDBMS + ref: stream-ruby-2.5-rhel-8.8.0 + buildorder: 102 +... diff --git a/sources b/sources new file mode 100644 index 0000000..e69de29 diff --git a/tests/Makefile b/tests/Makefile new file mode 100644 index 0000000..6683583 --- /dev/null +++ b/tests/Makefile @@ -0,0 +1,6 @@ +# Installation +# https://meta-test-family.readthedocs.io/en/latest/installation.html#installing-mtf +test: + mtf-env-set + mtf-generator + mtf -l *.py diff --git a/tests/config.yaml b/tests/config.yaml new file mode 100644 index 0000000..491e3bf --- /dev/null +++ b/tests/config.yaml @@ -0,0 +1,15 @@ +document: modularity-testing +version: 1 +name: ruby +modulemd-url: https://src.fedoraproject.org/cgit/modules/ruby.git/plain/ruby.yaml +packages: + rpms: + - ruby +module: + rpm: + url: http://ftp.fi.muni.cz/pub/linux/fedora/linux/releases/26/Everything/x86_64/os/ + docker: + url: docker.io/centos/ruby-23-centos7 +test: + version: + - 'ruby -v'