Git Product home page Git Product logo

dbs-server's Introduction

Docker Build Service

Docker build service for Fedora. It will be integrated with koji (and copr) build system, fedmsg, Taskotron and other tools in Fedora infrastructure.

We are not trying to compete with Docker Hub. Quite opposite. We would like to create an environment where Fedora users could very easily build images using Fedora infrastructure, test them and push them wherever they want (To Docker Hub for example).

Installation

DBS is designed for Fedora 21. Enable copr repository:

sudo dnf copr enable jdornak/DBuildService

Install packages:

sudo dnf install dbs-server

Check the configuration files:

sudo vim /etc/httpd/conf.d/dbs.conf
sudo vim /etc/dbs/site_settings

Use the commandline interface to create user:

sudo dbs createsuperuser

Development Instance

DBS is designed for Fedora 21. Follow the installation steps. You do not need package dbs-server itself, but you need all it's requirements.

Clone the git repository:

git clone [email protected]:DBuildService/dbs-server.git
cd dbs-server

Initialize development database:

./manage.py syncdb

Run development server:

./manage.py runserver

Voilà!

For connecting from different machine, listen on all networks and open port in Firewall. For Fedora 21 this can be done so:

firewall-cmd --permanent --add-port=8000/tcp
./manage.py runserver 0.0.0.0:8000

Manipulate with the data

In the future we will start using Django migrations but now it is easier to always drop and rebuild the database with the current schema. To keep the data, you need to dump it and then load it back:

# dump data
./manage.py dumpdata --indent=4 > data.json

# make some changes to the models
# ...

# rebuild the database
rm data/db.sqlite3; ./manage.py syncdb --noinput

# load data (you may need to edit data.json to match updated schema)
./manage.py loaddata data.json

RPM build

Install tito and mock:

dnf install tito mock

To build RPM locally:

# build from the latest tagged release
tito build --rpm
# or build from the latest commit
tito build --rpm --test

To build RPM using mock:

SRPM=`tito build --srpm --test | egrep -o '/tmp/tito/dbs-server-.*\.src\.rpm'`
sudo mock -r fedora-21-x86_64 $SRPM

Submit Build in Copr

First you need to set up rel-eng/releasers.conf:

sed "s/<USERNAME>/$USERNAME/" < rel-eng/releasers.conf.template > rel-eng/releasers.conf

To submit build from the latest commit type:

tito release copr-test

To submit build from the latest tag type:

tito release copr

dbs-server's People

Contributors

hhorak avatar humaton avatar synfo avatar tomastomecek avatar

Watchers

 avatar  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.