GithubHelp home page GithubHelp logo

skavadias / hockeypuck Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hockeypuck/hockeypuck

0.0 0.0 0.0 9.56 MB

OpenPGP Key Server

License: Other

Shell 0.59% Makefile 0.17% Go 97.79% HTML 0.90% Dockerfile 0.06% Python 0.38% HCL 0.10%

hockeypuck's Introduction

Hockeypuck

Hockeypuck is an OpenPGP public keyserver.

Building

Any platform/arch

With Go 1.12 installed, from this directory:

export GOPATH=$(pwd)
go build hockeypuck/server/cmd/...
go install hockeypuck/server/cmd/...

Hockeypuck binaries will be in bin/.

Vendored Dependencies

The dependencies for this project are managed via Go modules. To update the dependencies run:

cd src/hockeypuck
go get -u -m
go mod vendor

After which you can ensure that the code continues to build and that the tests still pass.

Ubuntu package maintainers

To locally build the hockeypuck binaries:

make install-build-depends
make

Releases

Building a Snap

If it's installed, remove the snapcraft Ubuntu package:

sudo apt remove snapcraft

Install snapcraft from the Snap store:

snap install snapcraft

Confirm that you're using a recent enough version of snapcraft:

$ which snapcraft
/snap/bin/snapcraft
$ snapcraft version
snapcraft, version 3.7.2
$ _

Now you can build the snap:

snapcraft snap

snapcraft defaults to building in a multipass VM. If you're already in a throwaway environment, you can build the snap as follows instead:

SNAPCRAFT_BUILD_ENVIRONMENT=host snapcraft snap

Or use LXD for a lighter-weight isolated build:

SNAPCRAFT_BUILD_ENVIRONMENT=lxd snapcraft snap

Enabling cpu or memory profiling:

sudo snap set hockeypuck cpuprof=1
sudo snap set hockeypuck memprof=1
sudo systemctl restart snap.hockeypuck.hockeypuck.service

Disabling cpu or memory profiling:

sudo snap unset hockeypuck cpuprof
sudo snap unset hockeypuck memprof
sudo systemctl restart snap.hockeypuck.hockeypuck.service

Ubuntu package maintainers

In order to release a new version of hockeypuck:

make dch
git add debian/changelog
git commit -m 'x.y.z release'
git tag -s -u <keyid> -m 'x.y.z release' x.y.z
git push --tags
make deb-src
dput <your ppa> ../hockeypuck\_x.y.z\_source.changes

Where x.y.z is the appropriate version number. This will upload the debian source package to the Launchpad PPA for building.

Running

Quick start with Docker

A quick and easy way to run Hockeypuck locally is with docker-compose. First, obtain a keydump from e.g. https://github.com/SKS-Keyserver/sks-keyserver/wiki/KeydumpSources and put the *.gpg files under ./keydump, then:

cp -r contrib/docker-compose/devel/hockeypuck/etc .
docker-compose up -d

You can change the configuration by editing etc/hockeypuck.conf and running docker-compose restart. To stop, run docker-compose down.

For a more robust docker-based install, please read contrib/docker-compose/standalone/README.md

About

Copyright 2019, The Hockeypuck Developers; see CONTRIBUTORS and LICENSE for details.

hockeypuck's People

Contributors

cmars avatar vmpjdc avatar marcelwaldvogel avatar andrewgdotcom avatar mclueppers avatar kolanich avatar skavadias avatar steventwheeler avatar e45lee avatar briannosaurus avatar sfllaw avatar tcuthbert avatar wiktor-k avatar apuls avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.