Skip to content

Commit 013868c

Browse files
committed
modernize RUN commands in Containerfiles
As RUN commands on multiline is like a shell script, enable the bash strict mode. So we can remove all the `&&` at the begin of lines. When buildah (podman builder) recent release will be published in common distributions (at least Debian stable), we will be able to use the "heredoc" syntax to avoid all the `; \` at end of lines.
1 parent ed5b4ee commit 013868c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Container.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ If you use Podman, you can either use the same Docker compose plugin or the
1616
[podman-compose](https://github.com/containers/podman-compose/)
1717
utility. The podman cli itself provide a wrapper of one of these two tools through the
1818
[`podman compose` command](https://docs.podman.io/en/latest/markdown/podman-compose.1.html).
19+
Thus you need to use the `podman compose up` command to start the system.
1920

2021
At this point, the documentation will give you `docker compose` commands, but you should be able
2122
to use `podman compose` without any issue.

deployment/database/docker-entrypoint-initdb.d/001-create-database-test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#/usr/bin/env sh
22

33
set -euo pipefail
4+
IFS=$'\n\t'
45

56
mysql -uroot -hlocalhost -p"${MYSQL_ROOT_PASSWORD}" <<EOSQL
67
CREATE USER IF NOT EXISTS '${MYSQL_TEST_USER}'@'%' IDENTIFIED BY '${MYSQL_TEST_PASSWORD}';

0 commit comments

Comments
 (0)