Giter VIP home page Giter VIP logo

stoq-server's Introduction

Stoq-server

Development setup

First you have to have Poetry installed and running on your machine.

This project use packages from Gitlab PyPI. You'll have to generate a gitlab personal access token with read_api persmission.

Then configure the gitlab repository within poetry:

$ poetry config repositories.gitlab https://gitlab.com/api/v4/projects/13882298/packages/pypi

And now setup the authentication replacing the <personal-access-token> with the token generated previously:

$ poetry config http-basic.gitlab __token__ <personal-access-token>

Now you're ready to download all the packages and to install everything with:

$ poetry install

Then check everything has been installed correctly run the tests:

$ make test

Then run stoqserver:

$ make flask

If everything executed without errors you're good to go.

CI

Running CI locally

Install gitlab-runner

sudo curl -L --output /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-amd64
sudo chmod +x /usr/local/bin/gitlab-runner

Install the docker snap

sudo snap install docker
docker.help
# Follow the instructions for classic systems
sudo snap restart docker

Run the CI for the local project

gitlab-runner exec docker test

Refreshing the testing container

Rebuild a container candidade with proposed changes to the Dockerfile:

docker build -t stoq:candidate -f utils/Dockerfile.stoq .

Push the candidate container to dockerhub (ensure you are logged in):

docker push cprov/stoq:candidate

Then, point .gitlab-ci.yml to the candidate container:

image: cprov/stoq:stable

and update your branch.

Once it passes CI, promote the candidate contained to stable:

docker tag <hash> cprov/stoq:stable
docker push cprov/stoq:stable

And restore .gitlab-ci.yml in your branch to the stable container.

stoq-server's People

Contributors

romaia avatar bellini666 avatar vmcamillo avatar lamenezes avatar fczuardi avatar dancorde avatar luisoishi avatar mariano-filipe avatar rafaelredivo avatar gdezan avatar leodaher avatar toketas avatar nihey avatar lucasl2f avatar felipenehmi avatar kayro20 avatar daneluzzitiago avatar cprov avatar fczuardi-luizalabs avatar

Stargazers

André Ricardo avatar Jônatas Oliveira avatar Douglas Ausech avatar 5l1v3r1 avatar Jackson Osvaldo avatar  avatar Felipe Monteiro avatar Statanis 123 avatar Fausto Blanco avatar Tomás Dowling avatar Caio Carvalho avatar Mauro Risonho de Paula Assumpção avatar  avatar  avatar João Dias avatar Gilson Filho avatar

Watchers

 avatar James Cloos avatar Paulo Jamil avatar  avatar  avatar Mike avatar  avatar Jackson Osvaldo 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.