Skip to content

Commit fb741d0

Browse files
ktropsKatie Atrops
andauthored
IWF-1115: adding S3 storeage for lite server (#591)
Co-authored-by: Katie Atrops <[email protected]>
1 parent b448a9e commit fb741d0

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

lite/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@ RUN apt-get update \
1111

1212
RUN curl -sSf https://temporal.download/cli.sh | sh
1313

14+
# Install MinIO
15+
RUN curl -sSf https://dl.min.io/server/minio/release/linux-amd64/minio -o /usr/local/bin/minio && \
16+
chmod +x /usr/local/bin/minio
17+
1418
RUN rm -rf iwf-server && \
1519
make bins && \
1620
chmod +x /iwf/lite/start-lite-server.sh
1721

18-
EXPOSE 8801 7233 8233
22+
EXPOSE 8801 7233 8233 9000 9001
1923
CMD ["/iwf/lite/start-lite-server.sh"]

lite/start-lite-server.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,22 @@ checkExists () {
99
fi
1010
}
1111

12+
# Start MinIO in the background
13+
mkdir -p /tmp/minio-data
14+
export MINIO_ROOT_USER=minioadmin
15+
export MINIO_ROOT_PASSWORD=minioadmin
16+
minio server /tmp/minio-data --address ":9000" --console-address ":9001" &
17+
18+
# Wait for MinIO to be ready
19+
echo "waiting for MinIO to start..."
20+
for run in {1..30}; do
21+
sleep 1
22+
if curl -s http://localhost:9000/minio/health/ready > /dev/null 2>&1; then
23+
echo "MinIO is ready"
24+
break
25+
fi
26+
done
27+
1228
export PATH="$PATH:/root/.temporalio/bin"
1329
temporal server start-dev --ip 0.0.0.0 --ui-ip 0.0.0.0 &
1430
# add SAs...

0 commit comments

Comments
 (0)