Skip to content

Commit e00165a

Browse files
committed
fix: remove nested sh -c from docker-compose commands
The entrypoint is already set to ['/bin/sh', '-c'], so we don't need sh -c in the command string
1 parent 9c1e653 commit e00165a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

docker-compose.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ services:
4848
- redis-net
4949
entrypoint: ["/bin/sh", "-c"]
5050
command: |
51-
sh -c '
5251
echo "========================================" &&
5352
echo "Step 1: Initializing Redis Enterprise cluster..." &&
5453
echo "========================================" &&
@@ -62,7 +61,6 @@ services:
6261
6362
echo "✓ Cluster initialized successfully" &&
6463
echo ""
65-
'
6664
6765
# Create database
6866
create-db:
@@ -83,7 +81,6 @@ services:
8381
- redis-net
8482
entrypoint: ["/bin/sh", "-c"]
8583
command: |
86-
sh -c '
8784
echo "========================================" &&
8885
echo "Step 2: Creating test database..." &&
8986
echo "========================================" &&
@@ -96,7 +93,6 @@ services:
9693
9794
echo "✓ Database created successfully" &&
9895
echo ""
99-
'
10096
10197
# Validate API
10298
validate-api:
@@ -117,7 +113,6 @@ services:
117113
- redis-net
118114
entrypoint: ["/bin/sh", "-c"]
119115
command: |
120-
sh -c '
121116
echo "========================================" &&
122117
echo "Step 3: Validating API endpoints..." &&
123118
echo "========================================" &&
@@ -135,7 +130,6 @@ services:
135130
136131
echo "✓ API validation successful" &&
137132
echo ""
138-
'
139133
140134
# Test Redis connection
141135
test-redis:

0 commit comments

Comments
 (0)