Commit 9ca16b1f authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Add ENABLE_TCP option

parent 4e887ab8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -36,4 +36,5 @@ COPY entrypoint.buildkitd.sh /bin/entrypoint

USER 1000
VOLUME /run/buildkit
EXPOSE 8372/tcp
ENTRYPOINT ["/bin/entrypoint"]
+7 −0
Original line number Diff line number Diff line
@@ -33,6 +33,12 @@ check_snapshotter() {
	esac
}

check_enable_tcp() {
	case ${ENABLE_TCP-false} in
		true|y|yes|1) set -- "$@" --addr="tcp://0.0.0.0:8372" ;;
	esac
}

case ${1--} in
	buildkitd) shift ;;
	-*) : ;;
@@ -42,6 +48,7 @@ case ${1--} in
esac

check_snapshotter
check_enable_tcp
redirect_rundir

set -- "$@" \