Skip to content

Commit

Permalink
Doc
Browse files Browse the repository at this point in the history
  • Loading branch information
reachfh committed Aug 25, 2023
1 parent 3dc38c3 commit 198db1f
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,33 @@
# buildroot_elixir
# buildroot_elixir

## Running in Docker

Create an `.env` file:
```shell
IMAGE_NAME="foo-app"
IMAGE_OWNER="cogini"
```

Build dev image:

```command
docker compose build
```

Run dev image:

```command
docker compose run buildroot-dev
```

Inside the container

```command
[ -d /opt/buildroot/.git ] || git clone $BUILDROOT_GIT_REPO /opt/buildroot
git config pull.rebase true \
git checkout $BUILDROOT_TAG && \
git pull origin $BUILDROOT_TAG
make BR2_EXTERNAL="/buildroot" $BUILDROOT_DEFCONFIG
make
cp /opt/buildroot/output/images/sdcard.img /tmp/output
```

0 comments on commit 198db1f

Please sign in to comment.