ChrisSamo632 commented on code in PR #6673:
URL: https://github.com/apache/nifi/pull/6673#discussion_r1025060155


##########
nifi-registry/nifi-registry-core/nifi-registry-docker/dockerhub/Dockerfile:
##########
@@ -32,13 +32,17 @@ ENV NIFI_REGISTRY_BINARY_PATH 
nifi/${NIFI_REGISTRY_VERSION}/${NIFI_REGISTRY_BINA
 ENV NIFI_REGISTRY_BINARY_URL ${MIRROR}/${NIFI_REGISTRY_BINARY_PATH}
 
 ADD sh/ ${NIFI_REGISTRY_BASE_DIR}/scripts/
+RUN chmod -R +x ${NIFI_REGISTRY_BASE_DIR}/scripts/*.sh
 
 # Setup NiFi-Registry user
 RUN groupadd -g ${GID} nifi || groupmod -n nifi `getent group ${GID} | cut -d: 
-f1` \
     && useradd --shell /bin/bash -u ${UID} -g ${GID} -m nifi \
     && chown -R nifi:nifi ${NIFI_REGISTRY_BASE_DIR} \
     && apt-get update -y \
-    && apt-get install -y curl jq xmlstarlet unzip
+    && apt-get install -y curl jq xmlstarlet unzip \
+    && apt-get -y autoremove \
+    && apt-get clean autoclean \
+    && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
 
 USER nifi
 

Review Comment:
   Historic inconsistency - this `dockerhub/Dockerfil` uses a `CMD`, but the 
`nifi-registry`'s `dockermaven/Dockerfile` uses an `ENTRYPOINT`
   
   It's not a big deal, but I think worth being consistent (I spotted this 
because the way I was trying to test this was to plug it into a local 
`docker-compose` stack, which currently overrides the `command` so my `yml` 
works with the image from Docker Hub but not when I build via `dockermaven`
   
   All the `nifi` and `nifi-toolkit` images use `ENTRYPOINT`; `minifi` and 
`-c2` are all using `CMD` - possibly worth (but maybe not) making them all 
consistent across the board?



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to