kubernetes docker image compatibility for #1026 (#1042)

This commit is contained in:
Akash Jain 2021-11-03 20:48:52 +05:30 committed by GitHub
parent adcc8297a0
commit 06b2f70e3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 16 additions and 15 deletions

View File

@ -1,6 +1,6 @@
FROM openjdk:11
EXPOSE 8585 3306
EXPOSE 8585
RUN apt-get update -y && \
apt-get install --no-install-recommends wget -y && \

View File

@ -15,7 +15,7 @@
version: "3.9"
services:
db:
mysql:
platform: linux/x86_64
image: mysql:latest
restart: always

View File

@ -15,7 +15,7 @@
version: "3.9"
services:
db:
mysql:
build:
context: .
dockerfile: Dockerfile_mysql
@ -55,7 +55,7 @@ services:
ports:
- 8585:8585
depends_on:
- db
- mysql
networks:
app_net:
ipv4_address: 172.16.239.13
@ -68,7 +68,7 @@ services:
context: ../../.
dockerfile: ingestion/Dockerfile
depends_on:
- db
- mysql
expose:
- 8080
ports:

View File

@ -15,7 +15,7 @@
# See the License for the specific language governing permissions and
# 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
cd /openmetadata-*/
./bootstrap/bootstrap_storage.sh migrate

View File

@ -112,7 +112,7 @@ database:
user: openmetadata_user
password: openmetadata_password
# 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:

View File

@ -1,6 +1,6 @@
FROM openjdk:11
EXPOSE 8585 3306
EXPOSE 8585
RUN apt-get update -y && \
apt-get install --no-install-recommends curl wget -y && \

View File

@ -15,7 +15,7 @@
version: "3.9"
services:
db:
mysql:
platform: linux/x86_64
image: openmetadata/db:latest
restart: always
@ -49,7 +49,7 @@ services:
ports:
- 8585:8585
depends_on:
- db
- mysql
networks:
app_net:
ipv4_address: 172.16.239.13
@ -60,7 +60,7 @@ services:
ingestion:
image: openmetadata/ingestion:latest
depends_on:
- db
- mysql
expose:
- 8080
ports:

View File

@ -16,7 +16,7 @@
# 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
cd /openmetadata-*/
./bootstrap/bootstrap_storage.sh migrate

View File

@ -112,7 +112,7 @@ database:
user: openmetadata_user
password: openmetadata_password
# 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:

View File

@ -9,4 +9,5 @@ RUN pip install 'openmetadata-ingestion[sample-data,elasticsearch,mysql]' apache
COPY ./ingestion /ingestion
RUN pip install '.[sample-data,elasticsearch,mysql]'
RUN chmod 755 ingestion_dependency.sh
EXPOSE 8080
CMD [ "./ingestion_dependency.sh" ]

View File

@ -27,7 +27,7 @@ executor = LocalExecutor
# SqlAlchemy supports many different database engines.
# More information here:
# 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
sql_engine_encoding = utf-8

View File

@ -16,7 +16,7 @@
# 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
airflow db init
echo "AUTH_ROLE_PUBLIC = 'Admin'" >> /airflow/webserver_config.py