Skip to content
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

Docker eas init #2171

Closed
nethriis opened this issue Jan 8, 2024 · 1 comment
Closed

Docker eas init #2171

nethriis opened this issue Jan 8, 2024 · 1 comment
Labels
needs review Issue is ready to be reviewed by a maintainer

Comments

@nethriis
Copy link

nethriis commented Jan 8, 2024

Build/Submit details page URL

No response

Summary

I'm on a project that need to dockerize an expo app and build the apk on the container, so I configure the dockerfile and I block on the eas init command that indicates me :

> [16/17] RUN eas init:
2.003 Input is required, but stdin is not readable. Failed to display prompt: Existing project found: @nethris/mobile (ID: 4e8e59b9-7ca1-48ad-b5d3-338a5f479b0e). Link this project?
2.256     Error: project:init command failed.
------
Dockerfile:61
--------------------
  59 |     ENV CI=1
  60 |
  61 | >>> RUN eas init
  62 |     RUN eas build --platform android --local
--------------------
ERROR: failed to solve: process "/bin/sh -c eas init" did not complete successfully: exit code: 1

Managed or bare?

Bare

Environment

expo-env-info 1.0.5 environment info:
System:
OS: Windows 10 10.0.22621
Binaries:
Node: 20.10.0 - C:\Program Files\nodejs\node.EXE
npm: 10.2.3 - C:\Program Files\nodejs\npm.CMD
SDKs:
Android SDK:
API Levels: 30, 33, 34
Build Tools: 30.0.3, 33.0.0, 34.0.0
System Images: android-30 | Google Play Intel x86 Atom, android-34 | Google APIs Intel x86_64 Atom
IDEs:
Android Studio: AI-223.8836.35.2231.10671973
npmPackages:
@expo/webpack-config: ^19.0.0 => 19.0.0
expo: ~49.0.21 => 49.0.21
react: 18.2.0 => 18.2.0
react-dom: 18.2.0 => 18.2.0
react-native: 0.72.6 => 0.72.6
react-native-web: ~0.19.6 => 0.19.9
react-navigation: ^5.0.0 => 5.0.0
Expo Workflow: managed

✔ Check Expo config for common issues
✔ Check package.json for common issues
✔ Check dependencies for packages that should not be installed directly
✔ Check for common project setup issues
✔ Check npm/ yarn versions
✔ Check Expo config (app.json/ app.config.js) schema
✔ Check for legacy global CLI installed locally
✔ Check that native modules do not use incompatible support packages
✔ Check that native modules use compatible support package versions for installed Expo SDK
✔ Check that packages match versions required by installed Expo SDK

Error output

Dockerfile:61

59 | ENV CI=1
60 |
61 | >>> RUN eas init
62 | RUN eas build --platform android --local

ERROR: failed to solve: process "/bin/sh -c eas init" did not complete successfully: exit code: 1

Reproducible demo or steps to reproduce from a blank project

Make a new expo project:

npx create-expo-app my-app
cd my-app
echo "y" | eas init
eas build --platform android --local
@nethriis nethriis added the needs review Issue is ready to be reviewed by a maintainer label Jan 8, 2024
@szdziedzic
Copy link
Member

You ran the eas init command in interactive mode without being in interactive mode. Please run it in --non-interactive mode to solve your issue https://github.com/expo/eas-cli?tab=readme-ov-file#eas-init.

I think that eas init --non-interactive --id your_project_id should do the job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs review Issue is ready to be reviewed by a maintainer
Projects
None yet
Development

No branches or pull requests

2 participants