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

[Bug] docker compose fail from branch 'dev' #1714

Open
3 tasks done
wellCh4n opened this issue Sep 29, 2022 · 5 comments
Open
3 tasks done

[Bug] docker compose fail from branch 'dev' #1714

wellCh4n opened this issue Sep 29, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@wellCh4n
Copy link
Contributor

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

Execute the Docker Compose build command

docker-compose up -d

image

It seems to be missing a sql file named 'final.sql'. I found the same file from another branch.
Link is: https://github.com/apache/incubator-streampark/blob/1.2.3-release/streamx-console/streamx-console-service/src/assembly/script/final.sql

I compared the 'final.sql' with '/streampark-console/streampark-console-service/src/assembly/script/schema/mysql-schema.sql'. They look the same, should I copy mysql-schema content to final.sql OR update mysql's DockerFile?

StreamPark Version

branch dev

Java Version

openjdk 11

Flink Version

1.14.5

Scala Version of Flink

2.12

Error Exception

Creating network "docker_default" with the default driver
Creating volume "docker_mysql-data" with default driver
Creating volume "docker_flink1.14.5" with default driver
Building database
[+] Building 3.3s (6/6) FINISHED
 => [internal] load build definition from Dockerfile                                                                                                                                                                                     0.1s
 => => transferring dockerfile: 1.16kB                                                                                                                                                                                                   0.0s
 => [internal] load .dockerignore                                                                                                                                                                                                        0.1s
 => => transferring context: 2B                                                                                                                                                                                                          0.0s
 => [internal] load metadata for docker.io/biarms/mysql:5.7                                                                                                                                                                              3.0s
 => [internal] load build context                                                                                                                                                                                                        0.0s
 => => transferring context: 337B                                                                                                                                                                                                        0.0s
 => CANCELED [1/2] FROM docker.io/biarms/mysql:5.7@sha256:b39d533d02e6b8f7bf61e9f884b99b6560a106d812eb1a24ca7a842f8334b5a2                                                                                                               0.1s
 => => resolve docker.io/biarms/mysql:5.7@sha256:b39d533d02e6b8f7bf61e9f884b99b6560a106d812eb1a24ca7a842f8334b5a2                                                                                                                        0.0s
 => => sha256:87e408fb202281a63754ed23780eea349c06f83f3911920411174ec8b6cb5cf7 3.04kB / 3.04kB                                                                                                                                           0.0s
 => => sha256:babd77b9be8d7948c4ccc09d185074fcf522ef1cbc3a6a640b32d672380bf84f 10.15kB / 10.15kB                                                                                                                                         0.0s
 => => sha256:b39d533d02e6b8f7bf61e9f884b99b6560a106d812eb1a24ca7a842f8334b5a2 1.11kB / 1.11kB                                                                                                                                           0.0s
 => ERROR [2/2] COPY streampark-console/streampark-console-service/src/assembly/script/final.sql /docker-entrypoint-initdb.d/01-streampark.sql                                                                                           0.0s
------
 > [2/2] COPY streampark-console/streampark-console-service/src/assembly/script/final.sql /docker-entrypoint-initdb.d/01-streampark.sql:
------
failed to compute cache key: "/streampark-console/streampark-console-service/src/assembly/script/final.sql" not found: not found
ERROR: Service 'database' failed to build : Build failed

Screenshots

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@wolfboys
Copy link
Member

/cc @MonsterChenzhuo PTAL

@wolfboys wolfboys added the bug Something isn't working label Sep 29, 2022
@wellCh4n
Copy link
Contributor Author

wellCh4n commented Sep 30, 2022

@wolfboys @MonsterChenzhuo I found schema and data sql file in /streampark-console/streampark-console-service/src/assembly/script. Should fix DockerFile, I guess. Could I commit PR for this?

@MonsterChenzhuo
Copy link
Contributor

@wellCh4n The problem with this piece is that streampark supports multiple data sources this pr, the changes that come with it, and thus the problems that arise.The default is to use h2, I think the mysql part inside docker-compose can be removed? You can try to do modify. modify docker-compse and remove the mysql part. Get it running, make sure it's okay, and I'll review the pr for you.

@wellCh4n
Copy link
Contributor Author

@MonsterChenzhuo Remove mysql part inside docker-compose is not a good idea in my opinion. Cuz Dockerfile is a fast mode for beginner.
Could we provide multiple docker-compose.yml for this project?

@wellCh4n
Copy link
Contributor Author

wellCh4n commented Sep 30, 2022

I had committed PR, its a quickly solution for this problem.
We need do something after fix it if we wanna support multiple data source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants