SamTV12345 commented on PR #4307:
URL: 
https://github.com/apache/activemq-artemis/pull/4307#issuecomment-1411582053

   Weird. Last time I waited 20 minutes and nothing changed. I am stuck at this 
screen 
   <img width="460" alt="image" 
src="https://user-images.githubusercontent.com/40429738/215977162-e8870da2-d03f-48a5-9696-12227864ea98.png";>
   
   
   
   If you have time could you start this Dockerfile
   
   ````yaml
   ARG CURRENT_VERSION=2.17.0
   
   FROM maven:3.8.7-eclipse-temurin-11  as builder
   ARG CURRENT_VERSION
   
   COPY settings.xml /.m2/settings.xml
   ENV MAVEN_SETTINGS_PATH=/.m2/settings.xml
   
   COPY . .
   
   RUN mvn -ntp clean  install -Prelease -DskipTests 
-Dmaven.repo.local=/.m2/repository -s /.m2/settings.xml
   
   FROM alpine:latest
   
   ARG CURRENT_VERSION
   
   ENV VERSION=$CURRENT_VERSION
   
   RUN apk --no-cache add openjdk17-jre-headless bash libaio\
           --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community
   
   
   LABEL maintainer="Apache ActiveMQ Team"
   # Make sure pipes are considered to determine success, see: 
https://github.com/hadolint/hadolint/wiki/DL4006
   SHELL ["/bin/bash", "-o", "pipefail", "-c"]
   WORKDIR /opt
   
   ENV ARTEMIS_USER artemis
   ENV ARTEMIS_PASSWORD artemis
   ENV ANONYMOUS_LOGIN false
   ENV EXTRA_ARGS --http-host 0.0.0.0 --relax-jolokia
   
   # add user and group for artemis
   RUN addgroup  -g 1001 artemis && adduser -u 1002 --ingroup artemis 
--disabled-password  artemis
   
   USER artemis
   
   COPY --from=builder /root/artemis-build/_TMP_/artemis/${VERSION}/ 
/opt/activemq-artemis
   
   # Web Server
   EXPOSE 8161 \
   # JMX Exporter
       9404 \
   # Port for CORE,MQTT,AMQP,HORNETQ,STOMP,OPENWIRE
       61616 \
   # Port for HORNETQ,STOMP
       5445 \
   # Port for AMQP
       5672 \
   # Port for MQTT
       1883 \
   #Port for STOMP
       61613
   
   USER root
   
   RUN mkdir /var/lib/artemis-instance && chown -R artemis.artemis 
/var/lib/artemis-instance
   
   COPY --from=builder 
/root/artemis-build/_TMP_/artemis/${VERSION}/docker/docker-run.sh /
   
   USER artemis
   
   # Expose some outstanding folders
   VOLUME ["/var/lib/artemis-instance"]
   WORKDIR /var/lib/artemis-instance
   
   ENTRYPOINT ["/docker-run.sh"]
   CMD ["run"]
   ```
   
   If you don't have a settings.xml defined you need to remove the instructions 
COPY settings.xml /.m2/settings.xml, ENV MAVEN_SETTINGS_PATH=/.m2/settings.xml 
and the part in the mvn clean install script starting with -Dnaveb.repo.local...
   
   After copying the Dockerfile in artemis-docker, execute from the root of the 
project execute `docker build -t test -f 
./artemis-docker/Dockerfile-build-alpine .`
   
   It is currently not working I just want to make sure that the build in the 
Dockerfile is working
   
   The specs of my proxmox test machine are:
   i5 4570T and 16 Gigabyte RAM. 
   
   The alpine Linux LXC for building has all cores and 8 Gigabyte assigned.
   


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