Skip to content

Commit

Permalink
Merge pull request #303 from ktock/wordpress-mariadb-images
Browse files Browse the repository at this point in the history
  • Loading branch information
AkihiroSuda authored Apr 13, 2021
2 parents 8071b8e + b7e204d commit 93ec784
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/pre-converted-images.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,7 @@ Additionally, image names listed in `Image Name` contain the following suffixes
|`ghcr.io/stargz-containers/tomcat:10.0.0-jdk15-openjdk-buster-esgz`|Code execution until up and ready message (`Server startup`) is printed|
|`ghcr.io/stargz-containers/postgres:13.1-org`|Code execution until up and ready message (`database system is ready to accept connections`) is printed|
|`ghcr.io/stargz-containers/postgres:13.1-esgz`|Code execution until up and ready message (`database system is ready to accept connections`) is printed|
|`ghcr.io/stargz-containers/wordpress:5.7-org`|Code execution until up and ready message (`apache2 -D FOREGROUND`) is printed|
|`ghcr.io/stargz-containers/wordpress:5.7-esgz`|Code execution until up and ready message (`apache2 -D FOREGROUND`) is printed|
|`ghcr.io/stargz-containers/mariadb:10.5-org`|Code execution until up and ready message (`mysqld: ready for connections`) is printed|
|`ghcr.io/stargz-containers/mariadb:10.5-esgz`|Code execution until up and ready message (`mysqld: ready for connections`) is printed|
5 changes: 5 additions & 0 deletions script/benchmark/hello-bench/src/hello.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ class BenchRunner:
'tomcat:10.0.0-jdk15-openjdk-buster': RunArgs(waitline='Server startup'),
'postgres:13.1': RunArgs(waitline='database system is ready to accept connections',
env={'POSTGRES_PASSWORD': 'abc'}),
'mariadb:10.5': RunArgs(waitline='mysqld: ready for connections',
env={'MYSQL_ROOT_PASSWORD': 'abc'}),
'wordpress:5.7': RunArgs(waitline='apache2 -D FOREGROUND'),
}

CMD_STDIN = {'php:7.3.8': RunArgs(stdin='php -r "echo \\\"hello\\n\\\";"; exit\n'),
Expand All @@ -123,6 +126,7 @@ class BenchRunner:
Bench('rethinkdb:2.3.6', 'database'),
Bench('postgres:13.1', 'database'),
Bench('redis:5.0.5', 'database'),
Bench('mariadb:10.5', 'database'),
Bench('python:3.9', 'language'),
Bench('golang:1.12.9', 'language'),
Bench('gcc:10.2.0', 'language'),
Expand All @@ -135,6 +139,7 @@ class BenchRunner:
Bench('jenkins:2.60.3'),
Bench('node:13.13.0'),
Bench('tomcat:10.0.0-jdk15-openjdk-buster', 'web-server'),
Bench('wordpress:5.7', 'web-server'),
]])

def __init__(self, repository='docker.io/library', srcrepository='docker.io/library', mode=LEGACY_MODE, optimizer=DEFAULT_OPTIMIZER, puller=DEFAULT_PULLER, pusher=DEFAULT_PUSHER):
Expand Down

0 comments on commit 93ec784

Please sign in to comment.