Compare commits
2 Commits
60f3fcfa60
...
32a438dee2
| Author | SHA1 | Date | |
|---|---|---|---|
| 32a438dee2 | |||
| 790f779572 |
@@ -30,8 +30,4 @@ COPY ./entrypoint.sh .
|
|||||||
COPY ./Caddyfile.example .
|
COPY ./Caddyfile.example .
|
||||||
RUN chmod +x entrypoint.sh
|
RUN chmod +x entrypoint.sh
|
||||||
|
|
||||||
EXPOSE 10000
|
|
||||||
EXPOSE 10001
|
|
||||||
EXPOSE 10002
|
|
||||||
|
|
||||||
ENTRYPOINT [ "/app/entrypoint.sh" ]
|
ENTRYPOINT [ "/app/entrypoint.sh" ]
|
||||||
|
|||||||
@@ -150,4 +150,5 @@ exec node /app/azurite/src/azurite.js \
|
|||||||
--disableTelemetry \
|
--disableTelemetry \
|
||||||
--location "$AZURITE_DIR" \
|
--location "$AZURITE_DIR" \
|
||||||
--blobHost 0.0.0.0 --queueHost 0.0.0.0 --tableHost 0.0.0.0 \
|
--blobHost 0.0.0.0 --queueHost 0.0.0.0 --tableHost 0.0.0.0 \
|
||||||
|
--blobPort 10010 --queuePort 10011 --tablePort 10012 \
|
||||||
"${CERT_ARGS[@]}" "${OAUTH_ARGS[@]}"
|
"${CERT_ARGS[@]}" "${OAUTH_ARGS[@]}"
|
||||||
|
|||||||
33
run.sh
33
run.sh
@@ -1,17 +1,34 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
EXPOSED_PORTS=("-p" "443:10000")
|
function expose_caddy() {
|
||||||
OAUTH_ENABLED=""
|
# Expose Caddy on port 443 and forward to Azurite's blob service on port 10010
|
||||||
|
EXPOSED_PORTS=("-p" "443:443")
|
||||||
|
}
|
||||||
|
|
||||||
|
function expose_azurite() {
|
||||||
|
# Expose Azurite's blob, queue, and table services on ports 10010, 10011, and 10012 respectively
|
||||||
|
EXPOSED_PORTS=("-p" "10000:10010" "-p" "10001:10011" "-p" "10002:10012")
|
||||||
|
}
|
||||||
|
|
||||||
|
function expose_azurite_ssl() {
|
||||||
|
# Expose Azurite's blob service on port 443 with SSL, and queue and table services on ports 10011 and 10012 respectively
|
||||||
|
EXPOSED_PORTS=("-p" "443:10010")
|
||||||
|
}
|
||||||
|
|
||||||
|
expose_caddy
|
||||||
|
|
||||||
while [[ $# -gt 0 ]]; do
|
while [[ $# -gt 0 ]]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
--oauth)
|
--oauth)
|
||||||
if [[ -n "$OAUTH_ENABLED" ]]; then
|
expose_azurite_ssl
|
||||||
echo "Error: --oauth flag specified multiple times." >&2
|
shift
|
||||||
exit 1
|
;;
|
||||||
fi
|
--ssl)
|
||||||
OAUTH_ENABLED=true
|
expose_azurite_ssl
|
||||||
EXPOSED_PORTS=("-p" "443:10000" "-p" "10001:10001" "-p" "10002:10002")
|
shift
|
||||||
|
;;
|
||||||
|
--no-caddy)
|
||||||
|
expose_azurite
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user