Added license, moved db init file

This commit is contained in:
conradsp
2019-06-29 15:38:33 +02:00
committed by Michael Vorburger ⛑️
parent ec0c9dc0eb
commit b8dadd0419
5 changed files with 62 additions and 11 deletions
+18
View File
@@ -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
USER root
+19 -1
View File
@@ -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'
services:
fineractmysql:
image: mysql:5.7
volumes:
- ./initdb:/docker-entrypoint-initdb.d
- ./fineract-db/docker:/docker-entrypoint-initdb.d
restart: always
environment:
MYSQL_ROOT_PASSWORD: mysql
+25
View File
@@ -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'@'%';
-4
View File
@@ -125,10 +125,6 @@ rat {
'**/native/**',
'**/wrapper/**',
'**/build/**',
// docker
'**/Dockerfile/**',
'**/docker-compose.yml/**',
'**/initdb/**',
//Api Docs
'**/api-docs/*.*',
-6
View File
@@ -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'@'%';