Skip to content

Commit

Permalink
Added Polyverse for security
Browse files Browse the repository at this point in the history
  • Loading branch information
budtmo committed May 6, 2019
1 parent ac9b6e9 commit 4ac0beb
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,10 @@ Emulator Skins
--------------
The Emulator skins are taken from [Android Studio IDE](https://developer.android.com/studio) and [Samsung Developer Website](https://developer.samsung.com/home.do)
Security
--------
All docker images are protected by [Polyverse](https://polyverse.io/) by scrambling the Linux packages. For more information please read [this](https://polyverse.io/how-it-works/)
Special Thanks
--------------
- [Gian Christanto] for creating a great logo!
Expand Down
12 changes: 12 additions & 0 deletions docker/Emulator_x86
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,18 @@ RUN apt-get -qqy update && apt-get -qqy install --no-install-recommends \
bridge-utils \
&& rm -rf /var/lib/apt/lists/*

#===========
# Polyverse
# https://polyverse.io/how-it-works/
#===========
ARG TOKEN=xxx

RUN curl -s https://sh.polyverse.io | sh -s install ${TOKEN}; \
if [ $? -eq 0 ]; then \
apt -y update && \
apt-get -y install --reinstall $(dpkg --get-selections | awk '{print $1}'); \
fi

#=======
# noVNC
# Use same commit id that docker-selenium uses
Expand Down
12 changes: 12 additions & 0 deletions docker/Genymotion
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,18 @@ RUN apt-get -qqy update && apt-get -qqy install --no-install-recommends \
jq \
&& rm -rf /var/lib/apt/lists/*

#===========
# Polyverse
# https://polyverse.io/how-it-works/
#===========
ARG TOKEN=xxx

RUN curl -s https://sh.polyverse.io | sh -s install ${TOKEN}; \
if [ $? -eq 0 ]; then \
apt -y update && \
apt-get -y install --reinstall $(dpkg --get-selections | awk '{print $1}'); \
fi

#=======
# noVNC
# Use same commit id that docker-selenium uses
Expand Down
12 changes: 12 additions & 0 deletions docker/Real_device
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,18 @@ RUN apt-get -qqy update && apt-get -qqy install --no-install-recommends \
jq \
&& rm -rf /var/lib/apt/lists/*

#===========
# Polyverse
# https://polyverse.io/how-it-works/
#===========
ARG TOKEN=xxx

RUN curl -s https://sh.polyverse.io | sh -s install ${TOKEN}; \
if [ $? -eq 0 ]; then \
apt -y update && \
apt-get -y install --reinstall $(dpkg --get-selections | awk '{print $1}'); \
fi

#=======
# noVNC
# Use same commit id that docker-selenium uses
Expand Down
2 changes: 1 addition & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ function build() {
image_latest="$IMAGE-$processor-$v:latest"
echo "[BUILD] Image name: $image_version and $image_latest"
echo "[BUILD] Dockerfile: $FILE_NAME"
docker build -t $image_version --build-arg ANDROID_VERSION=$v --build-arg API_LEVEL=$level \
docker build -t $image_version --build-arg TOKEN=$TOKEN --build-arg ANDROID_VERSION=$v --build-arg API_LEVEL=$level \
--build-arg PROCESSOR=$processor --build-arg SYS_IMG=$sys_img --build-arg IMG_TYPE=$IMG_TYPE \
--build-arg BROWSER=$BROWSER --build-arg CHROME_DRIVER=$chrome_driver \
--build-arg APP_RELEASE_VERSION=$RELEASE -f $FILE_NAME .
Expand Down
2 changes: 1 addition & 1 deletion release_geny.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ image_latest="$IMAGE-genymotion:latest"
function build() {
echo "[BUILD] Image name: $image_version and $image_latest"
echo "[BUILD] Dockerfile: $FILE_NAME"
docker build -t $image_version --build-arg APP_RELEASE_VERSION=$RELEASE -f $FILE_NAME .
docker build -t $image_version --build-arg TOKEN=$TOKEN --build-arg APP_RELEASE_VERSION=$RELEASE -f $FILE_NAME .
docker tag $image_version $image_latest
}

Expand Down
2 changes: 1 addition & 1 deletion release_real.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ image_latest="$IMAGE-real-device:latest"
function build() {
echo "[BUILD] Image name: $image_version and $image_latest"
echo "[BUILD] Dockerfile: $FILE_NAME"
docker build -t $image_version --build-arg APP_RELEASE_VERSION=$RELEASE -f $FILE_NAME .
docker build -t $image_version --build-arg TOKEN=$TOKEN --build-arg APP_RELEASE_VERSION=$RELEASE -f $FILE_NAME .
docker tag $image_version $image_latest
}

Expand Down

0 comments on commit 4ac0beb

Please sign in to comment.