<commit_before>#
# RabbitMQ Dockerfile
#
# https://github.com/tamboraorg/docker/crerabbitmq
#

# Pull base image. 
FROM tamboraorg/creerlang:latest

MAINTAINER <NAME> <<EMAIL>> 

ARG BUILD_YEAR=2018
ARG BUILD_MONTH=0
ARG BUILD_TAG=latest

# version: yyyy.n for stable versions / 0.yyyy for development
ENV INITRD No
ENV RABBITMQ_VERSION 3.8.0   # 3.6.0


LABEL Name="RabbitMQ for CRE" \
      CRE=$CRE_VERSION \ 
      Year=$BUILD_YEAR \
      Month=$BUILD_MONTH \
      Version=$RABBITMQ_VERSION \
      OS="Ubuntu:$UBUNTU_VERSION" \
      Build_=$BUILD_TAG 

# Install RabbitMQ

# https://computingforgeeks.com/how-to-install-latest-rabbitmq-server-on-ubuntu-linux/

#sudo apt update && sudo apt install wget -y
RUN apt install apt-transport-https -y
RUN wget -O- https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc | sudo apt-key add -
RUN wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add -

#--- Ubuntu 20.04 ---
RUN echo "deb https://dl.bintray.com/rabbitmq-erlang/debian focal erlang-22.x" | sudo tee /etc/apt/sources.list.d/rabbitmq.list

# --- Ubuntu 18.04 ---
# RUN echo "deb https://dl.bintray.com/rabbitmq-erlang/debian bionic erlang-22.x" | sudo tee /etc/apt/sources.list.d/rabbitmq.list





COPY cre /cre
WORKDIR /cre/
ENV RABBITMQ_PLUGINS_DIR /cre/plugins
RUN apt update  -y  && apt install  -y rabbitmq-server

RUN rabbitmq-plugins enable rabbitmq_management

RUN rabbitmq-plugins list
## RUN rabbitmq-plugins directories -s




#ENV RABBITMQ_PLUGINS_DIR /usr/lib/rabbitmq/lib/rabbitmq_server-version/plugins
#ENV RABBITMQ_PLUGINS_DIR $RABBITMQ_HOME/plugins
# PLUGINS_DIR

# delay plugin     (3.8.9 -> 20.04?)
# https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/releases/download/3.8.9/rabbitmq_delayed_message_exchange-3.8.9-0199d11c.ez
# https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/releases/download/v3.8.0/rabbitmq_delayed_message_exchange-3.8.0.ez
# https://bintray.com/rabbitmq/community-plugins/download_file?file_path=rabbitmq_delayed_message_exchange-0.0.1.ez
# https://dl.bintray.com/rabbitmq/community-plugins/3.6.x/rabbitmq_delayed_message_exchange/rabbitmq_delayed_message_exchange-20171215-3.6.x.zip  -> ez

## RUN wget https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/releases/download/3.8.9/rabbitmq_delayed_message_exchange-3.8.9-0199d11c.ez -O /cre/plugins/rabbitmq_delayed_message_exchange.ez
## RUN cp /cre/plugins/v3.6/rabbitmq_delayed_message_exchange.ez /cre/plugins/rabbitmq_delayed_message_exchange.ez
RUN rabbitmq-plugins enable rabbitmq_delayed_message_exchange


EXPOSE 15672
#EXPOSE 4369 5671 5672 15691 15692 25672

# ENTRY-POINT /cre/start-rabbitmq.sh
# CMD ["/usr/bin/java", "-jar", "/usr/share/jenkins/jenkins.war"]

#CMD ["ls", "-l"]
CMD ["rabbitmq-server"]
<commit_msg>drop rabbitmq_delayed_message_exchange for now<commit_after>#
# RabbitMQ Dockerfile
#
# https://github.com/tamboraorg/docker/crerabbitmq
#

# Pull base image. 
FROM tamboraorg/creerlang:latest

MAINTAINER <NAME> <<EMAIL>> 

ARG BUILD_YEAR=2018
ARG BUILD_MONTH=0
ARG BUILD_TAG=latest

# version: yyyy.n for stable versions / 0.yyyy for development
ENV INITRD No
ENV RABBITMQ_VERSION 3.8.0   # 3.6.0


LABEL Name="RabbitMQ for CRE" \
      CRE=$CRE_VERSION \ 
      Year=$BUILD_YEAR \
      Month=$BUILD_MONTH \
      Version=$RABBITMQ_VERSION \
      OS="Ubuntu:$UBUNTU_VERSION" \
      Build_=$BUILD_TAG 

# Install RabbitMQ

# https://computingforgeeks.com/how-to-install-latest-rabbitmq-server-on-ubuntu-linux/

#sudo apt update && sudo apt install wget -y
RUN apt install apt-transport-https -y
RUN wget -O- https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc | sudo apt-key add -
RUN wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add -

#--- Ubuntu 20.04 ---
RUN echo "deb https://dl.bintray.com/rabbitmq-erlang/debian focal erlang-22.x" | sudo tee /etc/apt/sources.list.d/rabbitmq.list

# --- Ubuntu 18.04 ---
# RUN echo "deb https://dl.bintray.com/rabbitmq-erlang/debian bionic erlang-22.x" | sudo tee /etc/apt/sources.list.d/rabbitmq.list



RUN ls -l /usr/lib/rabbitmq/lib


RUN apt update  -y  && apt install  -y rabbitmq-server

RUN rabbitmq-plugins enable rabbitmq_management

RUN rabbitmq-plugins list
## RUN rabbitmq-plugins directories -s


COPY cre /cre
WORKDIR /cre/
ENV RABBITMQ_PLUGINS_DIR /cre/plugins

#ENV RABBITMQ_PLUGINS_DIR /usr/lib/rabbitmq/lib/rabbitmq_server-version/plugins
#ENV RABBITMQ_PLUGINS_DIR $RABBITMQ_HOME/plugins
# PLUGINS_DIR

# delay plugin     (3.8.9 -> 20.04?)
# https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/releases/download/3.8.9/rabbitmq_delayed_message_exchange-3.8.9-0199d11c.ez
# https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/releases/download/v3.8.0/rabbitmq_delayed_message_exchange-3.8.0.ez
# https://bintray.com/rabbitmq/community-plugins/download_file?file_path=rabbitmq_delayed_message_exchange-0.0.1.ez
# https://dl.bintray.com/rabbitmq/community-plugins/3.6.x/rabbitmq_delayed_message_exchange/rabbitmq_delayed_message_exchange-20171215-3.6.x.zip  -> ez

## RUN wget https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/releases/download/3.8.9/rabbitmq_delayed_message_exchange-3.8.9-0199d11c.ez -O /cre/plugins/rabbitmq_delayed_message_exchange.ez
## RUN cp /cre/plugins/v3.6/rabbitmq_delayed_message_exchange.ez /cre/plugins/rabbitmq_delayed_message_exchange.ez

#RUN rabbitmq-plugins enable rabbitmq_delayed_message_exchange


EXPOSE 15672
#EXPOSE 4369 5671 5672 15691 15692 25672

# ENTRY-POINT /cre/start-rabbitmq.sh
# CMD ["/usr/bin/java", "-jar", "/usr/share/jenkins/jenkins.war"]

#CMD ["ls", "-l"]
CMD ["rabbitmq-server"]

{'fraction_non_alphanumeric': 0.13052631578947368, 'fraction_numerical': 0.03859649122807018, 'mean_word_length': 4.168631006346328, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, 'https://': 22, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '882997', 'n_tokens_mistral': 2461, 'n_tokens_neox': 2107, 'n_words': 349}