Skip to content

Commit

Permalink
remove entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
cwh42 committed Oct 23, 2024
1 parent 8a0e26b commit 2990a61
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/bci_build/package/appcontainers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Application Containers that are generated with the BCI tooling"""

import textwrap
from pathlib import Path

from bci_build.container_attributes import BuildType
Expand Down Expand Up @@ -485,8 +486,6 @@ def _get_nginx_kwargs(os_version: OsVersion):
for os_version in (OsVersion.TUMBLEWEED,)
]

_REDIS_ENTRYPOINT = (Path(__file__).parent / "redis" / "entrypoint.tar.gz").read_bytes()

REDIS_CONTAINERS = [
ApplicationStackContainer(
name="redis",
Expand All @@ -511,10 +510,14 @@ def _get_nginx_kwargs(os_version: OsVersion):
"util-linux",
)
],
extra_files={"root.tar.gz": _REDIS_ENTRYPOINT},
entrypoint=["/usr/local/bin/entrypoint.sh"],
cmd=["redis-server", "--protected-mode no"],
volumes=["/data"],
config_sh_script=textwrap.dedent(
"""
chown redis:redis /var/lib/redis
"""
),
entrypoint_user="redis",
cmd=["redis-server", "--protected-mode no", "--dir /var/lib/redis"],
volumes=["/var/lib/redis"],
exposes_tcp=[6379],
build_recipe_type=BuildType.KIWI,
)
Expand Down
Binary file removed src/bci_build/package/redis/entrypoint.tar.gz
Binary file not shown.

0 comments on commit 2990a61

Please sign in to comment.