Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#56 Changes to run mysql #58

Merged
merged 3 commits into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
svrnm marked this conversation as resolved.
Show resolved Hide resolved
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

orousseau49170 marked this conversation as resolved.
Show resolved Hide resolved
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/
svrnm marked this conversation as resolved.
Show resolved Hide resolved
COPY setup.sh /docker-entrypoint-initdb.d/
Loading