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

build docker image fail #6011

Closed
ifcute opened this issue Sep 29, 2018 · 6 comments
Closed

build docker image fail #6011

ifcute opened this issue Sep 29, 2018 · 6 comments
Labels
inactive Inactive for >= 30 days

Comments

@ifcute
Copy link

ifcute commented Sep 29, 2018

Step 26/30 : RUN cd superset/assets && yarn --verbose
---> Running in 9f3d88d1e86f
ERROR: There are no scenarios; must have at least one.
The command '/bin/sh -c cd superset/assets && yarn --verbose' returned a non-zero code: 1

@victornoel
Copy link
Contributor

@ifcute could you try this branch #5966 and see if it works as expected?

@songyixu
Copy link

songyixu commented Oct 9, 2018

Hi @victornoel,
I got the same error today with the newest code pulled. So, seems the issue is still there.

Removing intermediate container a960c6b30d83
Step 23/27 : RUN cd superset/assets && yarn
---> Running in be23ca21021a
ERROR: There are no scenarios; must have at least one.

@victornoel
Copy link
Contributor

@songyixu can you show me the command you run to build the image and have you modified the Dockerfile or any other file?
The error you are referring to is this one: yarnpkg/yarn#2821 (comment). This is very strange that happens inside docker.

@ifcute
Copy link
Author

ifcute commented Oct 9, 2018

@victornoel

i see the document from https://superset.incubator.apache.org/installation.html#start-with-docker
and run:

git clone https://github.com/apache/incubator-superset/
cd incubator-superset
cp contrib/docker/{docker-build.sh,docker-compose.yml,docker-entrypoint.sh,docker-init.sh,Dockerfile} .
cp contrib/docker/superset_config.py superset/
bash -x docker-build.sh
docker-compose up -d
docker-compose exec superset bash
bash docker-init.sh

@victornoel
Copy link
Contributor

@ifcute if you are talking about the same problem that @songyixu is talking about, then I was proposing to test the content of the not-yet-merged PR #5966 which changes this documentation. So if you tried it, you need to follow the instructions available in it.

Furthermore, the error from yarn is because it is the wrong yarn binary that is used. Maybe you are relying on an old version of the image python:3.6? Try running docker pull python:3.6 before building the superset image.

@stale
Copy link

stale bot commented Apr 10, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inactive Inactive for >= 30 days
Projects
None yet
Development

No branches or pull requests

3 participants