Skip to content
This repository has been archived by the owner on Sep 8, 2023. It is now read-only.

Docker build environment #21

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,32 @@ If everything goes well, APK should be at:
/path/to/my/folder/platforms/android/app/build/outputs/apk/debug/app-debug.apk
```

# Build using Docker

Go to the docker folder

```bash
cd WHID-Mobile-Connector/docker
```

Build and tag the image

```bash
docker build -t kbeflo/whid-mobile-connector-build:0.0.5 .
```

Start building WHID Mobile Connector using the image we've just built

```bash
docker run -it -v "$PWD"/..:/WHID-Mobile-Connector kbeflo/whid-mobile-connector-build:0.0.5 ionic cordova build android
```

You're now done! You can find the apk at

```bash
WHID-Mobile-Connector/platforms/android/app/build/outputs/apk/debug/app-debug.apk
```

# Contributing

If you're still reading until here, you rock! *We're also eager to receive/get/integrate your contributions!* :)
Expand Down
6 changes: 6 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM beevelop/ionic:latest
ENV ANDROID_SDK_ROOT=/opt/android
ENV ANDROID_HOME=/opt/android
WORKDIR /WHID-Mobile-Connector
RUN apt-get update -y
RUN apt-get install -y openjdk-8-jdk gradle