devtools: Update readme

Detail how to make uploads work.
This commit is contained in:
Gianluca Zuccarelli 2021-06-09 13:40:50 +01:00 committed by GitHub
parent 043b775ced
commit 3132e19d80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,10 +33,25 @@ cd image-builder-frontend/devel
./setup.sh
```
## Environment Variables
For the Image Builder backend to upload successfully, you need to set some environment variables. For AWS, for example, set the following environment variables in the `.env` file:
```
OSBUILD_AWS_REGION
OSBUILD_AWS_ACCESS_KEY_ID
OSBUILD_AWS_SECRET_ACCESS_KEY
OSBUILD_AWS_S3_BUCKET
```
And then add to the list of environment variables for the backend container in the `docker-compose.yml` file.
The config variables for the Image Builder backend can be found [here](https://github.com/osbuild/image-builder/blob/main/internal/config/config.go).
## Run
```bash
docker compose up
docker-compose up
```
Access the service through the GUI: