Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lite/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@ RUN apt-get update \

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

# Install MinIO
RUN curl -sSf https://dl.min.io/server/minio/release/linux-amd64/minio -o /usr/local/bin/minio && \
chmod +x /usr/local/bin/minio

RUN rm -rf iwf-server && \
make bins && \
chmod +x /iwf/lite/start-lite-server.sh

EXPOSE 8801 7233 8233
EXPOSE 8801 7233 8233 9000 9001
CMD ["/iwf/lite/start-lite-server.sh"]
16 changes: 16 additions & 0 deletions lite/start-lite-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,22 @@ checkExists () {
fi
}

# Start MinIO in the background
mkdir -p /tmp/minio-data
export MINIO_ROOT_USER=minioadmin
export MINIO_ROOT_PASSWORD=minioadmin
minio server /tmp/minio-data --address ":9000" --console-address ":9001" &

# Wait for MinIO to be ready
echo "waiting for MinIO to start..."
for run in {1..30}; do
sleep 1
if curl -s http://localhost:9000/minio/health/ready > /dev/null 2>&1; then
echo "MinIO is ready"
break
fi
done

export PATH="$PATH:/root/.temporalio/bin"
temporal server start-dev --ip 0.0.0.0 --ui-ip 0.0.0.0 &
# add SAs...
Expand Down