mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-15 04:26:59 +00:00
parent
adcc8297a0
commit
06b2f70e3e
@ -1,6 +1,6 @@
|
|||||||
FROM openjdk:11
|
FROM openjdk:11
|
||||||
|
|
||||||
EXPOSE 8585 3306
|
EXPOSE 8585
|
||||||
|
|
||||||
RUN apt-get update -y && \
|
RUN apt-get update -y && \
|
||||||
apt-get install --no-install-recommends wget -y && \
|
apt-get install --no-install-recommends wget -y && \
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
version: "3.9"
|
version: "3.9"
|
||||||
services:
|
services:
|
||||||
db:
|
mysql:
|
||||||
platform: linux/x86_64
|
platform: linux/x86_64
|
||||||
image: mysql:latest
|
image: mysql:latest
|
||||||
restart: always
|
restart: always
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
version: "3.9"
|
version: "3.9"
|
||||||
services:
|
services:
|
||||||
db:
|
mysql:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile_mysql
|
dockerfile: Dockerfile_mysql
|
||||||
@ -55,7 +55,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 8585:8585
|
- 8585:8585
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- mysql
|
||||||
networks:
|
networks:
|
||||||
app_net:
|
app_net:
|
||||||
ipv4_address: 172.16.239.13
|
ipv4_address: 172.16.239.13
|
||||||
@ -68,7 +68,7 @@ services:
|
|||||||
context: ../../.
|
context: ../../.
|
||||||
dockerfile: ingestion/Dockerfile
|
dockerfile: ingestion/Dockerfile
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- mysql
|
||||||
expose:
|
expose:
|
||||||
- 8080
|
- 8080
|
||||||
ports:
|
ports:
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
while ! wget -O /dev/null -o /dev/null localhost:3306; do sleep 5; done
|
while ! wget -O /dev/null -o /dev/null mysql:3306; do sleep 5; done
|
||||||
mv /openmetadata.yaml /openmetadata-*/conf/openmetadata.yaml
|
mv /openmetadata.yaml /openmetadata-*/conf/openmetadata.yaml
|
||||||
cd /openmetadata-*/
|
cd /openmetadata-*/
|
||||||
./bootstrap/bootstrap_storage.sh migrate
|
./bootstrap/bootstrap_storage.sh migrate
|
||||||
|
@ -112,7 +112,7 @@ database:
|
|||||||
user: openmetadata_user
|
user: openmetadata_user
|
||||||
password: openmetadata_password
|
password: openmetadata_password
|
||||||
# the JDBC URL; the database is called openmetadata_db
|
# the JDBC URL; the database is called openmetadata_db
|
||||||
url: jdbc:mysql://localhost/openmetadata_db?allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=UTC
|
url: jdbc:mysql://mysql:3306/openmetadata_db?allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=UTC
|
||||||
|
|
||||||
|
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
FROM openjdk:11
|
FROM openjdk:11
|
||||||
|
|
||||||
EXPOSE 8585 3306
|
EXPOSE 8585
|
||||||
|
|
||||||
RUN apt-get update -y && \
|
RUN apt-get update -y && \
|
||||||
apt-get install --no-install-recommends curl wget -y && \
|
apt-get install --no-install-recommends curl wget -y && \
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
version: "3.9"
|
version: "3.9"
|
||||||
services:
|
services:
|
||||||
db:
|
mysql:
|
||||||
platform: linux/x86_64
|
platform: linux/x86_64
|
||||||
image: openmetadata/db:latest
|
image: openmetadata/db:latest
|
||||||
restart: always
|
restart: always
|
||||||
@ -49,7 +49,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 8585:8585
|
- 8585:8585
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- mysql
|
||||||
networks:
|
networks:
|
||||||
app_net:
|
app_net:
|
||||||
ipv4_address: 172.16.239.13
|
ipv4_address: 172.16.239.13
|
||||||
@ -60,7 +60,7 @@ services:
|
|||||||
ingestion:
|
ingestion:
|
||||||
image: openmetadata/ingestion:latest
|
image: openmetadata/ingestion:latest
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- mysql
|
||||||
expose:
|
expose:
|
||||||
- 8080
|
- 8080
|
||||||
ports:
|
ports:
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
while ! wget -O /dev/null -o /dev/null localhost:3306; do sleep 5; done
|
while ! wget -O /dev/null -o /dev/null mysql:3306; do sleep 5; done
|
||||||
cp /openmetadata.yaml /openmetadata-*/conf/openmetadata.yaml
|
cp /openmetadata.yaml /openmetadata-*/conf/openmetadata.yaml
|
||||||
cd /openmetadata-*/
|
cd /openmetadata-*/
|
||||||
./bootstrap/bootstrap_storage.sh migrate
|
./bootstrap/bootstrap_storage.sh migrate
|
||||||
|
@ -112,7 +112,7 @@ database:
|
|||||||
user: openmetadata_user
|
user: openmetadata_user
|
||||||
password: openmetadata_password
|
password: openmetadata_password
|
||||||
# the JDBC URL; the database is called openmetadata_db
|
# the JDBC URL; the database is called openmetadata_db
|
||||||
url: jdbc:mysql://localhost/openmetadata_db?allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=UTC
|
url: jdbc:mysql://mysql:3306/openmetadata_db?allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=UTC
|
||||||
|
|
||||||
|
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
|
@ -9,4 +9,5 @@ RUN pip install 'openmetadata-ingestion[sample-data,elasticsearch,mysql]' apache
|
|||||||
COPY ./ingestion /ingestion
|
COPY ./ingestion /ingestion
|
||||||
RUN pip install '.[sample-data,elasticsearch,mysql]'
|
RUN pip install '.[sample-data,elasticsearch,mysql]'
|
||||||
RUN chmod 755 ingestion_dependency.sh
|
RUN chmod 755 ingestion_dependency.sh
|
||||||
|
EXPOSE 8080
|
||||||
CMD [ "./ingestion_dependency.sh" ]
|
CMD [ "./ingestion_dependency.sh" ]
|
||||||
|
@ -27,7 +27,7 @@ executor = LocalExecutor
|
|||||||
# SqlAlchemy supports many different database engines.
|
# SqlAlchemy supports many different database engines.
|
||||||
# More information here:
|
# More information here:
|
||||||
# http://airflow.apache.org/docs/apache-airflow/stable/howto/set-up-database.html#database-uri
|
# http://airflow.apache.org/docs/apache-airflow/stable/howto/set-up-database.html#database-uri
|
||||||
sql_alchemy_conn = mysql+pymysql://airflow_user:airflow_pass@localhost/airflow_db
|
sql_alchemy_conn = mysql+pymysql://airflow_user:airflow_pass@mysql/airflow_db
|
||||||
|
|
||||||
# The encoding for the databases
|
# The encoding for the databases
|
||||||
sql_engine_encoding = utf-8
|
sql_engine_encoding = utf-8
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
while ! wget -O /dev/null -o /dev/null localhost:3306; do sleep 5; done
|
while ! wget -O /dev/null -o /dev/null mysql:3306; do sleep 5; done
|
||||||
export AIRFLOW_HOME=/airflow
|
export AIRFLOW_HOME=/airflow
|
||||||
airflow db init
|
airflow db init
|
||||||
echo "AUTH_ROLE_PUBLIC = 'Admin'" >> /airflow/webserver_config.py
|
echo "AUTH_ROLE_PUBLIC = 'Admin'" >> /airflow/webserver_config.py
|
||||||
|
Loading…
x
Reference in New Issue
Block a user