Skip to content

Commit 7518a07

Browse files
committed
Cleanup codes
1 parent f1cf49d commit 7518a07

File tree

1 file changed

+11
-18
lines changed

1 file changed

+11
-18
lines changed

scripts/pulsar-test-service-start.sh

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,28 +24,23 @@ cd $SRC_DIR
2424

2525
IMAGE_NAME=pulsar-client-go-test:latest
2626

27-
export PULSAR_MEM="-Xms1g -Xmx1g -XX:MaxDirectMemorySize=1g"
28-
export PULSAR_STANDALONE_USE_ZOOKEEPER=1
29-
3027
if [[ -f /.dockerenv ]]; then
3128
# When running tests inside docker
3229
PULSAR_ADMIN=/pulsar/bin/pulsar-admin
3330
cat /pulsar/conf/standalone.conf
3431
/pulsar/bin/pulsar-daemon start standalone --no-functions-worker --no-stream-storage
3532
else
36-
# docker build -t ${IMAGE_NAME} .
37-
#
38-
# docker kill pulsar-client-go-test || true
39-
# docker run -d --rm --name pulsar-client-go-test \
40-
# -p 8080:8080 \
41-
# -p 6650:6650 \
42-
# -p 8443:8443 \
43-
# -p 6651:6651 \
44-
# -e PULSAR_MEM="${PULSAR_MEM}" \
45-
# -e PULSAR_STANDALONE_USE_ZOOKEEPER=${PULSAR_STANDALONE_USE_ZOOKEEPER} \
46-
# ${IMAGE_NAME} \
47-
# /pulsar/bin/pulsar standalone \
48-
# --no-functions-worker --no-stream-storage
33+
docker build -t ${IMAGE_NAME} .
34+
35+
docker kill pulsar-client-go-test || true
36+
docker run -d --rm --name pulsar-client-go-test \
37+
-p 8080:8080 \
38+
-p 6650:6650 \
39+
-p 8443:8443 \
40+
-p 6651:6651 \
41+
${IMAGE_NAME} \
42+
/pulsar/bin/pulsar standalone \
43+
--no-functions-worker --no-stream-storage
4944

5045
PULSAR_ADMIN="docker exec -it pulsar-client-go-test /pulsar/bin/pulsar-admin"
5146
fi
@@ -55,8 +50,6 @@ until curl http://localhost:8080/metrics > /dev/null 2>&1 ; do sleep 1; done
5550

5651
echo "-- Pulsar service is ready -- Configure permissions"
5752

58-
sleep 20
59-
6053
$PULSAR_ADMIN tenants update public -r anonymous
6154
$PULSAR_ADMIN namespaces grant-permission public/default \
6255
--actions produce,consume \

0 commit comments

Comments
 (0)