Commit graph

358 commits

Author SHA1 Message Date
clime
1fbabe47e8 basic-test: add pkgs_cmd helper and add remote git config for setitng user.name + user.email 2017-02-11 13:08:46 +01:00
clime
cdb8b7a899 beaker-tests: also remove records from lookaside cache when cleaning up in basic-test 2017-02-11 13:01:34 +01:00
clime
fa6770cb51 beaker-tests: also include basic test for git-http-backend and add comments 2017-02-10 23:42:44 +01:00
clime
7036082aa1 beaker-tests: uncomment key generation but do that only if the key is not generated already 2017-02-10 23:30:13 +01:00
clime
5d15cd68a5 fixed the basic test 2017-02-10 13:05:58 +01:00
clime
91cd4f0c93 basic test + related setup updates 2017-02-09 18:58:59 +01:00
clime
cbe7ec058e beaker-tests added 2017-02-09 15:24:03 +01:00
clime
d928af2592 basic Vagrantfile finished for testing 2017-02-09 15:15:42 +01:00
clime
e1f6261bc1 lookaside-upload.conf example update regarding cert example paths 2017-02-09 14:34:51 +01:00
clime
3fc3e87bcc Basic Vagrantfile added for testing 2017-02-08 17:01:59 +01:00
clime
d80ef11f85 remove gitolite-related comments from mkbranch scripts 2017-02-08 14:28:48 +01:00
clime
58728db83e add -g option in setup_git_package script for gitolite support
also remove check for already existing update hook, make all dist-git scripts executable
2017-02-08 14:28:09 +01:00
clime
93fa9aa602 bump dist-git-selinux policy version 2017-02-08 13:00:52 +01:00
clime
3ffba7f6dd selinux installation process improved 2017-02-08 10:53:42 +01:00
clime
8de92f9e75 licence updated as pkgdb_sync_git_branches.py is not currently
included in the package

Also spec formatting updates
2017-02-08 10:03:38 +01:00
clime
af7d454030 changes.txt outdated now 2017-02-07 09:22:20 +01:00
clime
38f216be45 add policy rules for git-http-backend 2017-02-07 05:58:35 +01:00
clime
a6f0f9bc12 context for cgit repo file 2017-02-07 05:58:35 +01:00
clime
6b35e625f7 move /repo alias for /srv/git/lookaside into lookaside.conf instead of being ssl specific 2017-02-07 05:58:35 +01:00
clime
0d4c4982f1 update SSLProtocol and CipherSuite in looakside-upload httpd conf example 2017-02-07 05:58:35 +01:00
clime
1ad17ab161 LoadModule done by mod_ssl own config 2017-02-07 05:58:27 +01:00
clime
2fc3fb096c use git_user_content_t instead of git_content_t for /srv/git/* and allow git-daemon to work with it 2017-02-07 04:50:06 +01:00
clime
474a716264 do not setup gen-acls user that was required for gitolite 2017-02-07 04:50:06 +01:00
clime
39a6bb8996 be explicit about git requirement (although git-daemon requires git as well) 2017-02-07 04:50:06 +01:00
clime
c7aebc63c5 remove dist-git.conf as it is not actually used by any of the scripts
In fact Fedora Infra also does not read at the moment
2017-02-07 04:50:06 +01:00
clime
fddc4bfa8c cgit_pkg_list added
Although cgit installation is optional, I think we can provide this useful script
2017-02-07 04:49:59 +01:00
clime
86b388c58f remove gitolite from package - let user setup its own way to handle git repo access
NOTE: Gitolite might still be used but is optional and user can configure it at will
2017-02-06 11:25:42 +01:00
clime
6adbc28c58 add restorecons for /srv/cache and /srv/web 2017-02-06 07:38:51 +01:00
clime
ccbcd397d0 comment to gen-acls group 2017-02-04 07:55:06 +01:00
clime
8f03e69d81 add kerberos support for lookaside-cache uploading 2017-02-02 15:16:42 +01:00
clime
4fefd7f1d5 reconfiguring package to fit into FedoraInfra 2016-10-31 04:30:33 +01:00
Adam Samalik
efa5ab8baf Automatic commit of package [dist-git] release [0.13-1]. 2015-08-05 13:44:02 +02:00
Adam Samalik
a5bcd0b08e optional cgit_pkg_list.sh parameter
to decide where to store pkgs-git-repos-list
2015-07-24 11:58:38 +02:00
Adam Samalik
2caf4f2159 change mv to cp + rm 2015-07-23 14:05:26 +02:00
Adam Samalik
1d8868cae8 update config to not be Fedora specific 2015-07-23 13:38:42 +02:00
Adam Samalik
addb175ea6 Change: lookaside dir perms + cgit_pkg_list.sh 2015-07-23 13:29:42 +02:00
Adam Samalik
da204d100a Automatic commit of package [dist-git] release [0.12-1]. 2015-07-20 14:02:12 +02:00
Adam Samalik
0c1d0efecc Update README.md 2015-07-20 13:21:16 +02:00
Adam Samalik
313aecb8ee config update 2015-06-30 10:43:50 +02:00
Adam Samalik
8a5cf561b4 Upload files to new and old paths + remove email
=============
distgit: Upload files to both the new and old path

Currently, the CGI script is set to upload files:
- to the old path if the upload uses md5
- to the new path if the upload uses sha512

The old path is as follows:
    /%(srpmname)s/%(filename)s/%(hash)s/%(filename)s

The new path is:
    /%(srpmname)s/%(filename)s/%(hashtype)s/%(hash)s/%(filename)s

This was meant to ensure compatibility with current fedpkg which
always downloads from the old path, but will eventually download from
the new path when we move to sha512.

However, working more on this, I now think it would make for a smoother
transition if we instead always stored the files at the new path, but
just hardlinked to the old path if the upload is using md5.

This is what this patch achieves.

With this deployed in production, fedpkg could be patched to try
downloading from the new path, and fallback to the old one if necessary,
which decouples the migration to the new path from the migration to the
new hash.

=============
distgit: Ensure the folder exists

We can't hard link the file if the folder containing the link
destination does not exist.

Hurray for testing in staging!

=============
distgit: os.link fails if the dest already exists

=============
distgit: And so does os.makedirs

=============
distgit: Actually hardlink over the existing source at the old path
Without this, the file could exist at both the old and new path, taking
the space on the disk twice.

This forces a hardlink if the file already existed at the old path.

=============
Remove the lookaside email hook (rely on fedmsg now).
2015-06-03 13:42:57 +02:00
Adam Samalik
72619ca38d Automatic commit of package [dist-git] release [0.11-1]. 2015-05-05 10:13:27 +02:00
Adam Samalik
e03f35e747 selinux labels update 2015-04-29 12:53:10 +02:00
Adam Samalik
eaf970e4c9 hardlink 2015-04-29 10:44:32 +02:00
Adam Samalik
46580c99ba selinux subpackage created 2015-04-27 16:34:41 +02:00
Adam Samalik
42db6913c6 Automatic commit of package [dist-git] release [0.10-1]. 2015-04-27 09:24:21 +02:00
Adam Samalik
58b80ed7ae perl require and %files update 2015-04-27 09:22:37 +02:00
Adam Samalik
9874f43f45 Automatic commit of package [dist-git] release [0.9-1]. 2015-04-23 16:13:36 +02:00
Adam Samalik
2965c08ab8 update hook update 2015-04-23 16:11:19 +02:00
Adam Samalik
288b74b8f4 Automatic commit of package [dist-git] release [0.8-1]. 2015-04-23 14:55:05 +02:00
Adam Samalik
9492dccfa7 review update 2015-04-23 14:54:24 +02:00