Git Product home page Git Product logo

chris-app-from-template's Introduction

ChRIS Plugin From Template

This plug-in was built to test the process of deploying an extremely simple app based on the ChRIS application environment on OpenShift

To test this, I wrote a really simple python script which makes an API call to ygoprodeck, available here, requests 10 random cards from their database, and stores all of the information for each of those cards as a single line in a json file titled random_cards.json at the specified output_dir.

In order to implement the app on OpenShift, a Docker image needed to be created. Building the image on my computer (an m1 mac) resulted in some issues, so I resorted to a bit of a workaround.

  1. I used the OpenShift website to attempt to build the container from this github repository.
  2. Once built, I copied the location of the image created on the internal OpenShift registry located in the administrator layout at Builds->ImageStreams->randomcard->details->Image Repository
  3. I ran create_randomcard.yml placing the copied image location at "image" here on my local computer, using oc apply -f create_randomcard.yml

A few notes:

  1. The persistent volume claim used with this application was created on the OpenShift website
  2. Given the pod is designed to start and then close, the restartPolicy specification needs to be set to OnFailure in the create_randomcard.yml, otherwise the pod will enter into a CrashLoopBackOff error
  3. This page will be updated after I've had the chance to build the docker image on a non-m1 mac to see if that resolves the need for the OpenShift imagestream workaround

chris-app-from-template's People

Contributors

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