Skip to content

Commit

Permalink
Windows image building
Browse files Browse the repository at this point in the history
refs #5

changes:
 - changed folder structure to accomodate for windows systems
 - added Windows.bat scripts for building and running docker iamge

issues:
 - image complains about lack of hardware acceleration
 - sound is unable to be passed through to windows host
  • Loading branch information
georgecodesdev committed Mar 25, 2020
1 parent 78cf233 commit fb1ba57
Show file tree
Hide file tree
Showing 8 changed files with 24,608 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ RUN mkdir -p /root/.android && touch /root/.android/repositories.cfg
### downloading required tools
RUN yes | sdkmanager --verbose 'platform-tools'
RUN yes | sdkmanager --verbose 'emulator'
RUN yes | sdkmanager --verbose 'build-tools;'${BUILD_TOOLS_VERSION}
RUN yes | sdkmanager --verbose 'platforms;'${ANDRIOD_VERSION}
RUN yes | sdkmanager --verbose 'tools'
RUN yes | sdkmanager --verbose 'build-tools;'${BUILD_TOOLS_VERSION}
RUN yes | sdkmanager --verbose 'system-images;'${ANDRIOD_VERSION}';default;'${ANRIOD_SYSTEM_ARCH}
RUN yes | sdkmanager --update --verbose
RUN yes | sdkmanager --licenses
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 0 additions & 3 deletions Docker/utils/.env.Docker

This file was deleted.

7 changes: 7 additions & 0 deletions Docker/windows-build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
title Building the CodeAndRobots development environment...

docker build --build-arg BUILD_TOOLS_VERSION="25.0.0" --build-arg ANDRIOD_VERSION="android-25" --build-arg ANRIOD_SYSTEM_ARCH="x86" --build-arg DEFAULT_DEVICE_NAME="Nexus 5" -t react-native .

pause


4 changes: 4 additions & 0 deletions Docker/windows-run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

docker run --rm -it --privileged -v "PROJECT_PATH" --network host -e DISPLAY=host.docker.internal:0 react-native %*

pause
24,596 changes: 24,596 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

0 comments on commit fb1ba57

Please sign in to comment.