All Projects → Pagure → Pagure

Pagure / Pagure

Licence: gpl-2.0
pagure is a light-weight git-centered forge based on pygit2. (MIRROR)

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Pagure

Falcon
A high-performance web server for Ruby, supporting HTTP/1, HTTP/2 and TLS.
Stars: ✭ 2,058 (+1069.32%)
Mutual labels:  server
Psiphon
A multi-functional version of a popular network circumvention tool
Stars: ✭ 169 (-3.98%)
Mutual labels:  server
Mitol
Lightweight NodeJS http server
Stars: ✭ 172 (-2.27%)
Mutual labels:  server
Simplenet
An easy-to-use, event-driven, asynchronous network application framework compiled with Java 11.
Stars: ✭ 164 (-6.82%)
Mutual labels:  server
Mutual Tls Ssl
🔐 Tutorial of setting up Security for your API with one way authentication with TLS/SSL and mutual mutual authentication for a java based web server and a client with both Spring Boot. Different clients are provided such as Apache HttpClient, OkHttp, Spring RestTemplate, Spring WebFlux WebClient Jetty and Netty, the old and the new JDK HttpClient, the old and the new Jersey Client, Google HttpClient, Unirest, Retrofit, Feign, Methanol, vertx, Scala client Finagle, Featherbed, Dispatch Reboot, AsyncHttpClient, Sttp, Akka, Requests Scala, Http4s Blaze, Kotlin client Fuel, http4k, Kohttp and ktor. Also other server examples are available such as jersey with grizzly. Also gRPC examples are included
Stars: ✭ 163 (-7.39%)
Mutual labels:  server
Rayo.js
Micro framework for Node.js
Stars: ✭ 170 (-3.41%)
Mutual labels:  server
Myserver
MyServer is your own localhost web server. you can setup PHP, Apache, Nginx and MySQL servers on your android devices or linux like Ubuntu etc. MyServer is Developed for android terminal like Termux or GNURoot Debian terminal.
Stars: ✭ 160 (-9.09%)
Mutual labels:  server
Sifrr
⚡️ Set of tiny, independent libraries for creating modern and fast webapps with javascript/typescript
Stars: ✭ 174 (-1.14%)
Mutual labels:  server
Socketio
Socket.IO Java Server based on Netty. was created to meet gaming performance requirements. battle tested and in use by Playtech Microservices API Gateway.
Stars: ✭ 166 (-5.68%)
Mutual labels:  server
Flexsearch Server
High-performance FlexSearch Server for Node.js (Cluster)
Stars: ✭ 172 (-2.27%)
Mutual labels:  server
Unity Fastpacedmultiplayer
Features a Networking Framework to be used on top of Unity Networking, in order to implement an Authoritative Server with Lag Compensation, Client-Side Prediction/Server Reconciliation and Entity Interpolation
Stars: ✭ 162 (-7.95%)
Mutual labels:  server
Lear
Linux Engine for Asset Retrieval - speed-profiled C HTTP server
Stars: ✭ 165 (-6.25%)
Mutual labels:  server
Tigase Server
Highly optimized, extremely modular and very flexible XMPP/Jabber server
Stars: ✭ 170 (-3.41%)
Mutual labels:  server
Newbe.claptrap
This is a frameworks with reactive, event sourcing and Actor pattern as basic theories. On top of this, developers can create "distributed", "scale out", and "easy to test" application more simply. Claptrap and it`s Minions is on the way.
Stars: ✭ 163 (-7.39%)
Mutual labels:  server
Graceful Server
Tiny (~5k), KISS, dependency-free Node.JS library to make your API more graceful
Stars: ✭ 173 (-1.7%)
Mutual labels:  server
Turnstile
An authentication framework for Swift.
Stars: ✭ 163 (-7.39%)
Mutual labels:  server
Scala Server Toolkit
Functional programming toolkit for building server applications in Scala.
Stars: ✭ 170 (-3.41%)
Mutual labels:  server
Mysql Sandbox
Quick and painless install of one or more MySQL servers in the same host.
Stars: ✭ 176 (+0%)
Mutual labels:  server
Discord Backup
📦 Complete framework to facilitate server backup using discord.js v12
Stars: ✭ 172 (-2.27%)
Mutual labels:  server
Casbin Server
Casbin as a Service (CaaS)
Stars: ✭ 171 (-2.84%)
Mutual labels:  server

Pagure

:Author: Pierre-Yves Chibon [email protected]

Pagure is a git-centered forge, python based using pygit2.

With pagure you can host your project with its documentation, let your users report issues or request enhancements using the ticketing system and build your community of contributors by allowing them to fork your projects and contribute to it via the now-popular pull-request mechanism.

Homepage: https://pagure.io/pagure

See it at work: https://pagure.io

Playground version: https://stg.pagure.io

If you have any questions or just would like to discuss about pagure, feel free to drop by on IRC in the channel #pagure of the freenode server

About its name

The name Pagure is taken from the French word 'pagure'. Pagure in French is used as the common name for the crustaceans from the Paguroidea <https://en.wikipedia.org/wiki/Hermit_crab>_ superfamily, which is basically the family of the Hermit crabs.

Originating from French it is pronounced with a strong 'g' as you can hear on this recording <https://pagure.io/how-do-you-pronounce-pagure/raw/master/f/pingou.ogg>_.

Get it running

There are several options when it comes to a development environment. They are: Docker Compose, Vagrant, and manual. Choose an option below.

Docker Compose ^^^^^^^^^^^^^^ Docker Compose will provide you with a container which you can develop on. Install it with these instructions <https://docs.docker.com/compose/install/>_.

For more information about docker-compose cli, see: https://docs.docker.com/compose/reference/.

To build and run the containers, use the following command::

$ ./dev/docker-start.sh

Once all the containers have started, you can access pagure on http://localhost:5000. To stop the containers, press Ctrl+C.

Once the containers are up and running, run this command to populate the container with test data and create a new account ::

$ docker-compose -f dev/docker-compose.yml exec web python3 dev-data.py --all

You can then login with any of the created users, by example:

  • username: pingou
  • password: testing123

Vagrant ^^^^^^^

For a more thorough introduction to Vagrant, see https://fedoraproject.org/wiki/Vagrant.

An example Vagrantfile is provided as Vagrantfile.example. To use it, just copy it and install Vagrant. Instructions for Fedora::

$ cp dev/Vagrantfile.example Vagrantfile
$ sudo dnf install ansible libvirt vagrant-libvirt vagrant-sshfs vagrant-hostmanager
$ vagrant up

On Ubuntu, install Vagrant directly from the website <https://www.vagrantup.com/downloads.html>_ then run these commands instead::

$ cp dev/Vagrantfile.example Vagrantfile
$ sudo add-apt-repository ppa:ansible/ansible
$ sudo apt update
$ sudo apt install ansible libvirt0 openssh-server qemu libvirt-bin ebtables dnsmasq libxslt-dev libxml2-dev libvirt-dev zlib1g-dev ruby-dev
$ vagrant plugin install vagrant-libvirt vagrant-sshfs vagrant-hostmanager

If you get this error Block in synced_folders: Internal error. Invalid: sshfs, when you run vagrant up , you need to install vagrant sshfs plugin, which can be done by::

$ vagrant plugin install vagrant--sshfs

and then::

$ vagrant up

The default Vagrantfile forwards ports from the host to the guest, so you can interact with the application as if it were running on your host machine.

.. note:: vagrant-hostmanager will automatically maintain /etc/hosts for you so you can access the development environment from the host using its hostname, which by default is pagure-dev.example.com. You can choose not to use this functionality by simply not installing the vagrant-hostmanager plugin, but if you want Pagure to provide valid URLs in the UI for git repositories, you will need to adjust Pagure's configuration found in ~/pagure.cfg on the guest.

When the vagrant VM is up and running, connect to it with::

$ vagrant ssh

This will log you into the VM as the user vagrant which has a couple of aliases preconfigured::

$ pstart            # Starts pagure, the workers and other tasks
$ pstop             # Stops all those tasks again
$ pstatus           # Shows pagure status

The Vagrant pagure doesn't have its own log file, use journalctl -f to show the pagure output. The verbosity can be configured in the pagure config file with the LOGGING parameter.

Running the unit-tests


To run the unit-tests, there is container available with all the dependencies needed.

First you will need to have podman installed on your workstation. ::

$ sudo dnf install podman

Use the following command to run the tests ::

$ ./dev/run-tests-container.py

This command will build a fedora based container and execute the test suite.

If you wish to execute the test suite on a centos based container run the following command ::

$ ./dev/run-tests-container.py --centos

When the test container image has been built you can skip the building step to save time and run directly the test suite. ::

$ ./dev/run-tests-container.py --skip-build
$ ./dev/run-tests-container.py --centos --skip-build

You can also run a single test case ::

$ ./dev/run-tests-container.py tests/test_pagure_flask_ui_priorities.py

Or a single test ::

$ ./dev/run-tests-container.py tests/test_pagure_flask_ui_priorities.py:PagureFlaskPrioritiestests.test_ticket_with_no_priority

You can also get run-tests-container help ::

$ ./dev/run-tests-container.py --help

Manually ^^^^^^^^

  • Install the needed system libraries::

    sudo dnf install git python3 python3-devel libgit2-devel redis
    libjpeg-devel gcc libffi-devel redhat-rpm-config

    .. note:: Do note the version of libgit2 that you install, for example in libgit2-0.26.8-1 you need to keep in mind the 0.26

    .. note:: On RHEL and derivative (CentOS, Scientific Linux) there is no python3 package. Just python36 or python34 available in EPEL 7 (EPEL 6 only has python34). Choose the one you prefer (3.6 is newer and generally a better choice).

  • Retrieve the sources::

    git clone https://pagure.io/pagure.git cd pagure

  • Install dependencies

    • create the virtual environment (use python3.X explicitly on EPEL)::

      python3 -m venv pagure_env source ./pagure_env/bin/activate

    • Install the correct version of pygit2::

      pip install pygit2==.*

      So in our example::

      pip install pygit2==0.26.*

    • Install the rest of the dependencies::

      pip install -r requirements.txt

  • Create the folder that will receive the projects, forks, docs, requests and tickets' git repo::

    mkdir -p lcl/{repos,remotes,attachments,releases}

  • Copy and edit the alembic.ini file (especially the script_location key)::

    cp files/alembic.ini . vim alembic.ini

  • Set the script_location to alembic, ie: the folder where the revisions are stored, relative to the location of the alembic.ini file.

  • Create the inital database scheme::

    python createdb.py --initial alembic.ini

  • Enable and start redis server::

    sudo systemctl enable redis sudo systemctl start redis

  • Start a worker, in one terminal::

    ./runworker.py

  • Run the application, in another terminal::

    ./runserver.py

  • To get some profiling information you can also run it as::

    ./runserver.py --profile

This will launch the application at http://127.0.0.1:5000

  • To run unit-tests on pagure

    • Install the dependencies::

      pip install -r requirements-testing.txt

    • Run it::

      pytest tests/

      .. note:: While testing for worker tasks, pagure uses celery in /usr/bin/ Celery then looks for eventlet (which we use for testing only) at system level and not in virtual environment. You will need to install eventlet outside of your virtual environment if you are using one.

      .. note:: This will also work in vagrant.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].