Add .aab installation support (#103)

* Add .aab installation support

Signed-off-by: nghia.viminh <nghia.viminh@gameloft.com>
This commit is contained in:
nghiaviminh
2020-09-28 16:29:58 +07:00
committed by GitHub
parent a0792c857a
commit 841b092d25
6 changed files with 244 additions and 5 deletions

View File

@@ -32,16 +32,21 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
tar -xJf node-v*.tar.xz --strip-components 1 -C /usr/local && \
rm node-v*.tar.xz && \
su stf-build -s /bin/bash -c '/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js install' && \
apt-get -y install libzmq3-dev libprotobuf-dev git graphicsmagick yasm && \
apt-get -y install libzmq3-dev libprotobuf-dev git graphicsmagick openjdk-8-jdk yasm && \
apt-get clean && \
rm -rf /var/cache/apt/* /var/lib/apt/lists/*
rm -rf /var/cache/apt/* /var/lib/apt/lists/* && \
mkdir /tmp/bundletool && \
cd /tmp/bundletool && \
wget --progress=dot:mega \
https://github.com/google/bundletool/releases/download/1.2.0/bundletool-all-1.2.0.jar && \
mv bundletool-all-1.2.0.jar bundletool.jar
# Copy app source.
COPY . /tmp/build/
# Give permissions to our build user.
RUN mkdir -p /app && \
chown -R stf-build:stf-build /tmp/build /app
chown -R stf-build:stf-build /tmp/build /tmp/bundletool /app
# Switch over to the build user.
USER stf-build
@@ -57,8 +62,10 @@ RUN set -x && \
npm prune --production && \
mv node_modules /app && \
rm -rf ~/.node-gyp && \
mkdir /app/bundletool && \
mv /tmp/bundletool/* /app/bundletool && \
cd /app && \
rm -rf /tmp/*
find /tmp -mindepth 1 ! -regex '^/tmp/hsperfdata_root\(/.*\)?' -delete
# Switch to the app user.
USER stf