Coder Social home page Coder Social logo

quarckster / devpi-cloud-deployments Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ronnypfannschmidt-redhat/devpi-cloud-deployments

0.0 1.0 0.0 16 KB

experimentation with deployment setups for devpi in docker/swarm and k8/os

License: Apache License 2.0

Dockerfile 54.41% Shell 45.59%

devpi-cloud-deployments's Introduction

devpi-cloud-deployments

There are python projects which need their own pypi for different reasons. This project is set of templates for quick and easy devpi+nginx deployment in openshift.

Installation

# login to openshift
oc login -u admin https://<some-ocp-server>:8443/

# create project for devpi
PROJ=devpi
oc new-project ${PROJ}

# create persistent volumes
# 1. devpi-file-storage for storing package registry
# 2. devpi-db-storage for db if postgre is used as metadata backend (currently not used)
oc process -f devpi-pv-template.yaml -p NFS_HOST=<pv server> -p BASE_PATH=<some-path> | oc create -f -

# NOTE: make sure $BASE_PATH/{files,db} folders already exist in NFS server
# NOTE: above stuff isn't needed if openshift cluster is configured for autoprovisioning pvs

# nginx image needs anyuid rights to work correctly
# so, service account with anyuid rights has to be created
oc adm policy add-scc-to-user anyuid system:serviceaccount:${PROJ}:devpi-nginx

# rollout app
oc new-app -f devpi-template.yaml -p NAME=${PROJ} -p FRONTEND_URL=devpi.apps.example.com


# NOTE: if image building didn't start, it can be started by
oc start-build bc/devpi
oc logs -f bc/devpi

# wait until image is built and then check that all pods are up and running
oc get pods -w

# smoke test
pip install -U --pre -q devpi-client
devpi use http://devpi.apps.example.com
devpi login root --password ''
devpi user -m root password=123
devpi user -c alice password=456  [email protected]
devpi login alice --password=456
devpi index -c dev bases=root/pypi
devpi use --set-cfg alice/dev

pip install pytest

Contributing

  • Fork
  • Clone
  • Create a branch in your repository for your feature or fix
  • Write the code
  • Push
  • Create a pull request

devpi-cloud-deployments's People

Contributors

izapolsk avatar ronnypfannschmidt avatar

Watchers

 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.