-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build failures, how to build APK inside linux container? #11748
Comments
I'm also interested in this |
Use Node v10.16.2 |
@CybitsBlockchain Building with Node v10.16.2 fail on latest version v12.11.3 as well, can you tell what the steps are after running the container: FROM node:10.16.2-slim
RUN set -ex; \
mkdir -p /usr/share/man/man1/; \
apt-get update; \
DEBIAN_FRONTEND=noninteractive apt-get install --yes -o APT::Install-Suggests=false --no-install-recommends \
git; \
rm -rf /var/lib/apt/lists/*; \
useradd -ms /bin/bash appuser;
USER appuser
ENV ANDROID_SDK_ROOT="/home/appuser/app/sdk" \
ANDROID_HOME="/home/appuser/app/sdk" \
NODE_ENV="development"
RUN set -ex; \
mkdir -p "/home/appuser/app/sdk/licenses" "/home/appuser/app/bitpay/"; \
printf "\n24333f8a63b6825ea9c5514f83c2829b004d1fee" > "/home/appuser/app/sdk/licenses/android-sdk-license"; \
cd /home/appuser/app/bitpay/; \
git clone https://github.com/bitpay/wallet/; \
cd wallet; \
git checkout v12.11.3;
WORKDIR /home/appuser/app/bitpay/wallet cause running additional RUN command: # json taken from https://github.com/blockchain/My-Wallet-V3-Android/blob/75ebe718cb99c6d302efb90447f1719973deb93f/scripts/quick_start.sh#L7-L46
RUN set -ex; \
echo "{
\"project_info\": {
\"project_number\": \"623252783566\",
\"firebase_url\": \"https://blockchaintest-ecd1c.firebaseio.com\",
\"project_id\": \"blockchaintest-ecd1c\",
\"storage_bucket\": \"blockchaintest-ecd1c.appspot.com\"
},
\"client\": [
{
\"client_info\": {
\"mobilesdk_app_id\": \"1:623252783566:android:02baff6e6c46ed96232b9f\",
\"android_client_info\": {
\"package_name\": \"com.bitpay.wallet\"
}
},
\"oauth_client\": [
{
\"client_id\": \"623252783566-o6j47jlpan97fnibnr0vosvc4lh71sm1.apps.googleusercontent.com\",
\"client_type\": 3
}
],
\"api_key\": [
{
\"current_key\": \"INSERT KEY HERE\"
}
],
\"services\": {
\"appinvite_service\": {
\"other_platform_oauth_client\": [
{
\"client_id\": \"623252783566-o6j47jlpan97fnibnr0vosvc4lh71sm1.apps.googleusercontent.com\",
\"client_type\": 3
}
]
}
}
}
],
\"configuration_version\": \"1\"
}" > /home/appuser/app/bitpay/wallet/google-services.json; \
npm install @ionic/cli; \
npm run apply:bitpay; \
npm run prepare:bitpay; and then running
|
tried again to compile latest commit, errors:
|
So any news on this issue?? |
any update? i'd love for bitpay to be reproducible. |
Closing this issue as I managed to build latest github release 14.12.0 and version on Google play store 14.11.4 via Containerfile at: bitpay/bitpay-app#686 (comment) |
Pada Ahd, 2 Jul 2023, 12:44 PG Emanuel Bronshtein ***@***.***>
menulis:
… Closing this issue as I managed to build latest github release 14.12.0 and
version on Google play store 14.11.4 via Containerfile at: bitpay/bitpay-app#686
(comment)
<bitpay/bitpay-app#686 (comment)>
—
Reply to this email directly, view it on GitHub
<#11748 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASHV6JWIR2S4EU7XKFUWWWLXOBHVNANCNFSM5AYHUP2A>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Tried to build the version: 12.6.4 and check if the build is reproducible (compare to app downloaded from google-play) & if not what the diff are, but failed to build the app.
Containerfile used:
compile with:
podman build --pull --rm -t bitpay_build_apk_new -f Containerfile
Run with:
podman run --rm --name bitpay_build_apk -ti bitpay_build_apk
in container running
npm install
ornpm ci
ornpm audit fix
will fail with error:The text was updated successfully, but these errors were encountered: