Skip to content

Commit

Permalink
added mysql dependency container so you can run this standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
James Babb committed Nov 22, 2017
1 parent 33ba909 commit b677c41
Show file tree
Hide file tree
Showing 14 changed files with 47 additions and 6 deletions.
13 changes: 7 additions & 6 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/sh
#
# build.sh, DESCRIPTION
#
#
docker build -t midpoint-poc-midpoint .
#!/bin/bash

# Depedency containers
docker build deps/mysql -t midpoint-poc-mysql

# Build Midpoint
docker build midpoint -t midpoint-poc-midpoint
13 changes: 13 additions & 0 deletions deps/mysql/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM mysql:latest

MAINTAINER "TIER API & EntReg Working Group <tier-api@internet2.edu>"

ENV MYSQL_ROOT_PASSWORD root

COPY assets/init.sql /docker-entrypoint-initdb.d/

ENTRYPOINT ["docker-entrypoint.sh"]

EXPOSE 3306

CMD ["mysqld"]
2 changes: 2 additions & 0 deletions deps/mysql/assets/init.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;
CREATE DATABASE grouper CHARACTER SET utf8 COLLATE utf8_bin;
2 changes: 2 additions & 0 deletions deps/mysql/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
docker build . -t midpoint-poc-mysql
17 changes: 17 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: "2"
services:
midpoint:
image: midpoint-poc-midpoint
mem_limit: 4g
container_name: midpoint-poc-midpoint
ports:
- 8081:8080
#volumes:
# - .:/shared_midpoint

mysql:
image: midpoint-poc-mysql
#image: mysql:latest
container_name: midpoint-poc-mysql
ports:
- 3306:3306
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions midpoint/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
#
# build.sh, DESCRIPTION
#
#
docker build -t midpoint-poc-midpoint .

0 comments on commit b677c41

Please sign in to comment.