Code Monkey home page Code Monkey logo

ibedcvat's Introduction

18-07-2023

  • Features implemented
    • Modified compose settings to run containers on podman
    • modified cvat_server
      • Modified authentication - requires email confirmation and then manual activation by admins.
        • Included migration to automatically set site name/domain
      • Implemented per-organisation data limits.
        • Modified organization model to include GB_limit
        • Added model methods to organization, task, project to calculate the filesize of the data models attached.
        • Modified task data POST to prevent users creating tasks/projects in their personal workspace.
        • Modified task data POST to check if the uploaded files would push the organization over their GB_limit
    • Modified cvat ui to allow a longer timeout before failing attempts to get health check API.

Requirements

  • Download latest podman-compose (Develop) Stable = 1.0.3 and develop is 1.0.4

  • export environmental variables for CVAT_HOST, CVAT_EMAIL and CVAT_EMAIL_PASSWORD

  • Create podman socket (location currently hard coded in our compose file)

  • Start podman socket - set to run indefinitey and not block

    podman system service --time=0 unix:///home/ibedcvat/cvatdata/podman.sock &

  • Build latest version of cvat_server, cvat_ui container.

  • Service should now be able to run.

Not strictly required but probably needed to allow podman functionality on our VM

  • Set podman storage
    • mkdir ~/.config/containers
    • create ~/.config/containers/storage.conf
    • edit default config file and set storage location
         runroot = "/data/podman_storage/runroot"
         graphroot = "/data/podman_storage/graphroot"
      
  • Set podman tmp file:

Old readme

  • Full working on Ubuntu 22.04 with Podman written on 17-03-2023
    • download CVAT
    • download latest podman-compose (Develop) Stable = 1.0.3 and develop is 1.0.4
    • edit docker-compose.yml
      • edit dockerhub searches. unqualified search registries. Resolve by appending 'docker.io/' before the actual image name
        • i.e.
          • alpine:14 -> docker.io/alpine:14
      • edit docker socket for podman socket and disable security on traefik
        • security_opt:
          • 'label=disable'
        • volumes:
          • $XDG_RUNTIME_DIR/podman/podman.sock:/var/run/docker.sock:ro
    • set a hostname for remote access (default is localhost only)
      • export CVAT_HOST=your-ip-adress
    • NOTE: If you run on a small machine and have mounted storage, make a podman storage config file
    • Start the podman socket
      • podman system service -t 0
      • this would run the podman socket indefinetly. Send dont block process '&'
        • podman system service -t 0 &
    • Start CVAT
      • podman-compose up -d
    • Create a super user
      • docker exec -it cvat_server bash -ic 'python3 ~/manage.py createsuperuser'
    • Go to the adress specified in CVAT_HOST with default ports
      • e.g. CVAT_HOST=ibed-cvat.science.uva.nl
        • chrome
          • ibed-cvat.science.uva.nl:8080
      • if you want to test if it runs fine on localhost and dont have access to browser
        • export CVAT_HOST=
        • podman system service -t 0 &
        • podman-compose up -d
        • curl localhost:8080
          • If you get a response regarding annotation tool, CVAT is running

ibedcvat's People

Contributors

bsekachev avatar zhiltsov-max avatar azhavoro avatar dvkruchinin avatar klakhov avatar nmanovic avatar snyk-bot avatar marishka17 avatar activechoon avatar dependabot-preview[bot] avatar speclad avatar tosmanov avatar dependabot[bot] avatar yasakova-anastasia avatar sizov-kirill avatar benhoff avatar mdacoca avatar dmitriyoparin avatar jevansbio avatar pmazarovich avatar zankevich avatar dmitriysidnev avatar vnishukov avatar alexeyalexeevxperienceai avatar arvfilippov avatar k1won avatar manasars avatar amotovx avatar mmarkelov avatar afilippx 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.