Get rid of bin/osem-init.sh

Setting up the app if it isn't already setup should be some
concious step and not run every time we boot the containers.

This also fixes the problem that processes are not killed
if you stop the container with CTRL+C because the bash script
is not passing on signals.
This commit is contained in:
Henne Vogelsang 2021-10-21 16:12:00 +02:00
parent 112cae9ace
commit d70687c9b9
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6
5 changed files with 38 additions and 36 deletions

View file

@ -89,39 +89,37 @@ override example file and in it, set your user id in the variable
sed "s/13042/`id -u`/" docker-compose.override.yml.example > docker-compose.override.yml
```
1. Set up the development environment:
```bash
docker-compose run --rm osem bundle exec rake db:bootstrap
```
1. Build the development environment (only once)
```bash
docker-compose build --no-cache --pull
```
1. Set up the development environment (only once)
```bash
docker-compose run --rm osem bundle exec rake db:bootstrap
```
1. Start the development environment:
```bash
docker-compose up --build
```
```bash
docker-compose up --build
```
1. Check out your OSEM rails app. You can access the app at http://localhost:3000. Whatever you change in your cloned repository will have effect in the development environment. Sign up, the first user will be automatically assigned the admin role.
1. Changed something? Run the tests to verify your changes!
```bash
docker-compose run --rm osem bundle exec rspec spec
```
```bash
docker-compose run --rm osem bundle exec rspec spec
```
1. Issue any standard `rails`/`rake`/`bundler` command
```bash
docker-compose run --rm osem bundle exec rake db:version
```
```bash
docker-compose run --rm osem bundle exec rake db:version
```
1. Or explore the development environment:
```bash
docker-compose exec osem /bin/bash -l
```
```bash
docker-compose exec osem /bin/bash -l
```
1. Want to know more?
In our wiki you can find more information about what is possible in our development environment,
how we work with each other on github or other topics of interest for OSEM developers.
https://github.com/openSUSE/osem/wiki
1. Want to know more? In our [wiki](https://github.com/openSUSE/osem/wiki) you can find more information about what is possible in our development environment, how we work with each other on github or other topics of interest for OSEM developers.
## How to contribute translations