Added license, moved db init file
This commit is contained in:
committed by
Michael Vorburger ⛑️
parent
ec0c9dc0eb
commit
b8dadd0419
+18
@@ -1,3 +1,21 @@
|
|||||||
|
# Licensed to the Apache Software Foundation (ASF) under one
|
||||||
|
# or more contributor license agreements. See the NOTICE file
|
||||||
|
# distributed with this work for additional information
|
||||||
|
# regarding copyright ownership. The ASF licenses this file
|
||||||
|
# to you under the Apache License, Version 2.0 (the
|
||||||
|
# "License"); you may not use this file except in compliance
|
||||||
|
# with the License. You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
#
|
||||||
|
|
||||||
FROM bitnami/tomcat:7.0.94 as fineract
|
FROM bitnami/tomcat:7.0.94 as fineract
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
|
|||||||
+19
-1
@@ -1,9 +1,27 @@
|
|||||||
|
# Licensed to the Apache Software Foundation (ASF) under one
|
||||||
|
# or more contributor license agreements. See the NOTICE file
|
||||||
|
# distributed with this work for additional information
|
||||||
|
# regarding copyright ownership. The ASF licenses this file
|
||||||
|
# to you under the Apache License, Version 2.0 (the
|
||||||
|
# "License"); you may not use this file except in compliance
|
||||||
|
# with the License. You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing,
|
||||||
|
# software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
# KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
#
|
||||||
|
|
||||||
version: '3.7'
|
version: '3.7'
|
||||||
services:
|
services:
|
||||||
fineractmysql:
|
fineractmysql:
|
||||||
image: mysql:5.7
|
image: mysql:5.7
|
||||||
volumes:
|
volumes:
|
||||||
- ./initdb:/docker-entrypoint-initdb.d
|
- ./fineract-db/docker:/docker-entrypoint-initdb.d
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
MYSQL_ROOT_PASSWORD: mysql
|
MYSQL_ROOT_PASSWORD: mysql
|
||||||
|
|||||||
@@ -0,0 +1,25 @@
|
|||||||
|
--
|
||||||
|
-- Licensed to the Apache Software Foundation (ASF) under one
|
||||||
|
-- or more contributor license agreements. See the NOTICE file
|
||||||
|
-- distributed with this work for additional information
|
||||||
|
-- regarding copyright ownership. The ASF licenses this file
|
||||||
|
-- to you under the Apache License, Version 2.0 (the
|
||||||
|
-- "License"); you may not use this file except in compliance
|
||||||
|
-- with the License. You may obtain a copy of the License at
|
||||||
|
--
|
||||||
|
-- http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
--
|
||||||
|
-- Unless required by applicable law or agreed to in writing,
|
||||||
|
-- software distributed under the License is distributed on an
|
||||||
|
-- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
-- KIND, either express or implied. See the License for the
|
||||||
|
-- specific language governing permissions and limitations
|
||||||
|
-- under the License.
|
||||||
|
--
|
||||||
|
|
||||||
|
# create databases
|
||||||
|
CREATE DATABASE IF NOT EXISTS `mifosplatform-tenants`;
|
||||||
|
CREATE DATABASE IF NOT EXISTS `mifostenant-default`;
|
||||||
|
|
||||||
|
# create root user and grant rights
|
||||||
|
GRANT ALL ON *.* TO 'root'@'%';
|
||||||
@@ -125,10 +125,6 @@ rat {
|
|||||||
'**/native/**',
|
'**/native/**',
|
||||||
'**/wrapper/**',
|
'**/wrapper/**',
|
||||||
'**/build/**',
|
'**/build/**',
|
||||||
// docker
|
|
||||||
'**/Dockerfile/**',
|
|
||||||
'**/docker-compose.yml/**',
|
|
||||||
'**/initdb/**',
|
|
||||||
|
|
||||||
//Api Docs
|
//Api Docs
|
||||||
'**/api-docs/*.*',
|
'**/api-docs/*.*',
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
# create databases
|
|
||||||
CREATE DATABASE IF NOT EXISTS `mifosplatform-tenants`;
|
|
||||||
CREATE DATABASE IF NOT EXISTS `mifostenant-default`;
|
|
||||||
|
|
||||||
# create root user and grant rights
|
|
||||||
GRANT ALL ON *.* TO 'root'@'%';
|
|
||||||
Reference in New Issue
Block a user