Giter Site home page Giter Site logo

devenv's Introduction

Installation on ubuntu

  1. Set up docker repository
    sudo apt-get update
    sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
    sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
    
  2. Install docker engine
    sudo apt-get update
    sudo apt-get install docker-ce docker-ce-cli containerd.io
    sudo docker run hello-world
    
  3. Manage Docker as a non-root user
    sudo usermod -aG docker $USER
    
  4. Log out and log back in so that your group membership is re-evaluated
    docker run hello-world
    
  5. Remap docker root user to local user
    echo "$(id -un):$(id -u):65536" | sudo tee /etc/subuid
    echo "$(id -gn):$(id -g):65536" | sudo tee /etc/subgid
    echo "{\"userns-remap\":\"$(id -un)\"}" | sudo tee /etc/docker/daemon.json
    sudo systemctl restart docker
    sudo ls -la /var/lib/docker
    
  6. Install docker-compose
    sudo curl -L "https://github.com/docker/compose/releases/download/1.28.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
    sudo chmod +x /usr/local/bin/docker-compose
    
  7. Generate rsa key pair with no passphrase
  8. Add your public rsa key to https://gitlab.tvbit.co:4115/profile/keys
  9. Clone the repository
    git clone https://github.com/lordofbuckwheat/devenv
    cd devenv
    mkdir config
    
  10. Copy your .gitconfig and private rsa key to config directory. .gitconfig example:
    [user]
        name = lordofbuckwheat
        email = [email protected]
    
  11. Add hosts to your /etc/hosts:
    127.0.0.1 public.tvbit.local
    127.0.0.1 admin.tvbit.local
    127.0.0.1 go.tvbit.local
    127.0.0.1 master.tvbit.local
    
  12. Add rootCA.pem to your trusted certificate authorities. In Chrome go to Settings -> Security -> Manage certificates -> Authorities -> Import
  13. docker-compose build
    docker-compose up -d
    docker-compose logs -f
    
  14. After containers are up connect to ws with
    ./connect.sh
    
  15. Run commands in ws container:
    • start client server:
      cd ~/scripts
      ./run.sh config_host.json
      
    • run angular in production mode
      cd ~/app/supertvbit/public/panel
      npm run prod
      
    • run angular in development mode
      cd ~/app/supertvbit/public/panel
      npm run start
      
  16. Services available on docker host:
    • admin panel in production mode:
      http://public.tvbit.local:10080/admin
      https://public.tvbit.local:10443/admin
      
    • admin panel in development mode:
      http://localhost:14200/admin
      http://admin.tvbit.local:10080/admin
      
    • client server api:
      http://go.tvbit.local:18285
      https://go.tvbit.local:18286
      
    • master server:
      https://master.tvbit.local:10443
      

Building linux client

  1. Clone https://gitlab.tvbit.co:4115/g/electron-core and https://gitlab.tvbit.co:4115/g/linux-client to app
  2. In ws container run
    python3 /root/scripts/pack-linux.py --version=0.2.4
    
  3. Archives will appear in /root/wd/linux-client-build

devenv's People

Contributors

lordofbuckwheat avatar

Watchers

James Cloos 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.