Skip to content

Commit

Permalink
#56 Changes to run mysql (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
orousseau49170 authored Dec 30, 2024
1 parent f626944 commit a1fbb93
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
21 changes: 10 additions & 11 deletions examples/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,16 @@ services:
build:
context: ../src/loaders/curl
dockerfile: Dockerfile
backend-db:
image: ghcr.io/cisco-open/app-simulator-databases-mysql:latest
environment:
- MYSQL_ROOT_PASSWORD=root
build:
context: ../src/databases/mysql
dockerfile: Dockerfile
ports:
- "3306:3306"
volumes:
- ./loader.json:/config.json

# backend-db:
# image: ghcr.io/cisco-open/app-simulator-databases-mysql:latest
# build:
# context: ../src/databases/mysql
# dockerfile: Dockerfile
# ports:
# - "3306:3306"
# volumes:
# - ./backend-db.json:/config.json
- ./database.json:/config.json
networks:
default:
3 changes: 2 additions & 1 deletion src/databases/mysql/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM mysql:5.7
FROM --platform=linux/amd64 mysql:5.7

LABEL org.opencontainers.image.source=https://github.com/cisco-open/app-simulator
LABEL org.opencontainers.image.description="mysql database for app-simulator"
LABEL org.opencontainers.image.licenses=BSD-3-Clause

RUN yum install -y php-cli && yum clean all

COPY setup.php /tmp/
COPY setup.sh /docker-entrypoint-initdb.d/

0 comments on commit a1fbb93

Please sign in to comment.