-
Notifications
You must be signed in to change notification settings - Fork 442
Setup OBS development environment on Windows 10
Dani Donisa edited this page Jan 11, 2024
·
2 revisions
To run OBS Development environment you have two ways:
- Run on Windows 10 using docker and docker-compose for Windows
- Run on WSL using WSL2, openSUSE-Leap-15.2 and docker
Requirements for both solutions:
- Running Windows 10 and have Docker installed
To run native on Windows 10:
- You will need
docker-compose
for Windows using https://docs.docker.com/compose/install/ - Follow the document: https://github.com/openSUSE/open-build-service/blob/master/CONTRIBUTING.md, git checkout, submodule init and update
- If you don't have ruby installed in your windows machine, then you will have to run the commands from
rake docker:build
manually - After that
docker compose up
should work
To run on WSL2:
- Enable WSL2
- Install openSUSE-Leap-15.2 from the Microsoft Store
- go to your Terminal (Best using the https://github.com/microsoft/terminal) and run
wsl -d openSUSE-Leap-15.2
, you should get a shell on your Linux. After that you should runzypper in -t pattern devel_basis
andzypper in docker docker-compose git which
and after that you can follow https://github.com/openSUSE/open-build-service/blob/master/CONTRIBUTING.md
To be able to use docker and docker-compose inside your WSL you need to allow it on the Docker for Windows. To do that, you should start the docker manager for Windows, go to Settings and enable the "Expose daemon on tcp://localhost:2375" and under Resources, enable the WSL integration, and after that, enable the integration with the openSUSE-Leap-15.2 distro. From that point on you are able to run docker
and docker-compose
inside your WSL environment
- Development Environment Overview
- Development Environment Tips & Tricks
- Spec-Tips
- Code Style
- Rubocop
- Testing with VCR
- Authentication
- Authorization
- Autocomplete
- BS Requests
- Events
- ProjectLog
- Notifications
- Feature Toggles
- Build Results
- Attrib classes
- Flags
- The BackendPackage Cache
- Maintenance classes
- Cloud uploader
- Delayed Jobs
- Staging Workflow
- StatusHistory
- OBS API
- Owner Search
- Search
- Links
- Distributions
- Repository
- Data Migrations
- next_rails
- Ruby Update
- Rails Profiling
- Installing a local LDAP-server
- Remote Pairing Setup Guide
- Factory Dashboard
- osc
- Setup an OBS Development Environment on macOS
- Run OpenQA smoketest locally
- Responsive Guidelines
- Importing database dumps
- Problem Statement & Solution
- Kickoff New Stuff
- New Swagger API doc
- Documentation and Communication
- GitHub Actions
- How to Introduce Software Design Patterns
- Query Objects
- Services
- View Components
- RFC: Core Components
- RFC: Decorator Pattern
- RFC: Backend models