Skip to content
Snippets Groups Projects
Commit 8330a069 authored by Dariusz Janny's avatar Dariusz Janny
Browse files

Merge branch 'master' into 'master'

Master

See merge request !2
parents acde6956 206cc15c
No related branches found
No related tags found
1 merge request!2Master
FROM mariadb:10.5.8
# FaaS-DB # FaaS-DB
## structure
`_conf/`_ - directory with configuration files
`scripts/` - directory with utils and scripts
## build image
To build `faas-db` docker image
`
cd scripts && ./build.sh
`
## run image
To run `faas-db` docker image
`
cd scripts && ./run.sh
`
FAAS_DB_IMAGE=faas/faas-db:1.0-SNAPSHOT
FAAS_DB_VOLUME_VAR_LIB_MYSQL=/tmp/faas-db
FAAS_DB_PORT=8306
# TODO - remove to external resource
FAAS_DB_ROOT_PASSWORD=secure
version: '3.1'
services:
db:
image: ${FAAS_DB_IMAGE}
build:
context: ../
dockerfile: Dockerfile
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${FAAS_DB_ROOT_PASSWORD}
volumes:
- ${FAAS_DB_VOLUME_VAR_LIB_MYSQL}:/var/lib/mysql
ports:
- "${FAAS_DB_PORT}:3306"
FROM mysql:8.0.22
#! /bin/bash
docker-compose --env-file ../conf/faas-db.cnf -f ../conf/faas-db.compose.yml build
#! /bin/bash
docker build ../docker -t faas/faas-db:1.0-SNAPSHOT
#! /bin/bash
docker-compose --env-file ../conf/faas-db.cnf -f ../conf/faas-db.compose.yml up
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment