adriancole opened a new issue #5809:
URL: https://github.com/apache/incubator-pinot/issues/5809
Particularly in Docker, we're a bit better off when we can use a limited
shell like BusyBox to perform commands instead of relying on bash. For example,
this allows either Alpine or Distroless+BusyBox to be used.
Right now, if you try to use `pinot-admin.sh` with BusyBox (as /bin/sh), it
fails for what's likely a resolvable thing.
```
./bin/pinot-admin.sh: line 32: syntax error: unexpected word (expecting ")")
```
you can see that using distroless + busybox with little modifications
otherwise shaves a significant amount off the image size:
```bash
$ docker images |grep pinot
pinot test e1c4f1f12d71
5 minutes ago 339MB
apachepinot/pinot 0.4.0 8c4112171ff7
7 weeks ago 661MB
```
```Dockerfile
FROM apachepinot/pinot:0.4.0 as pinot
FROM openzipkin/jre-full:14.0.2-14.29.23
ENV PINOT_HOME=/opt/pinot
VOLUME ["${PINOT_HOME}/configs", "${PINOT_HOME}/data"]
COPY --from=pinot ${PINOT_HOME} ${PINOT_HOME}
# expose ports for controller/broker/server/admin
EXPOSE 9000 8099 8098 8097 8096 9514
WORKDIR ${PINOT_HOME}
ENTRYPOINT ["/bin/sh", "./bin/pinot-admin.sh"]
CMD ["run"]
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]