Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vernemq on openshift 3.9 #269

Closed
boks21 opened this issue Jan 3, 2021 · 4 comments
Closed

Vernemq on openshift 3.9 #269

boks21 opened this issue Jan 3, 2021 · 4 comments

Comments

@boks21
Copy link

boks21 commented Jan 3, 2021

I can build a VerneMQ image and run locally on Docker, using oficial Docker File.
When i push it openshift and deploy it on openshift, POD as problem, vm.args is not found.

What kind of permissions need i change on DockerFile?

Thanks

@ioolkos
Copy link
Contributor

ioolkos commented Jan 5, 2021

@boks21 I'm not sure how I can help. Does this (still open, old) PR ring a bell to you? #131

@boks21
Copy link
Author

boks21 commented Jan 5, 2021

@ioolkos yes, it rangs. I did some changes to Dockerfile and now it works. I will stay tuned with your new changes. Thanks a lot

@boks21 boks21 closed this as completed Jan 5, 2021
@ioolkos
Copy link
Contributor

ioolkos commented Jan 5, 2021

@boks21 great can you let us know what the issue was and what worked for you?

@boks21
Copy link
Author

boks21 commented Jan 5, 2021

Sure, my problem was about Openshift changed group of etc, data and log from /vernemq and got a error when ran it.

Then changed my DockerFile to following and problems are gone, now i can run it.

`
FROM alpine:3.9

WORKDIR /vernemq
ENV INSTALL_DIR /vernemq

ENV DOCKER_VERNEMQ_KUBERNETES_LABEL_SELECTOR="app=vernemq"
ENV DOCKER_VERNEMQ_LOG__CONSOLE=console
ENV PATH="/vernemq/bin:$PATH"
ENV VERNEMQ_VERSION="1.11.0"
ENV DOCKER_VERNEMQ_ACCEPT_EULA=yes

RUN mkdir -p $INSTALL_DIR &&
apk --no-cache --update --available upgrade &&
apk add --no-cache ncurses-libs openssl libstdc++ jq curl bash snappy-dev

COPY bin/vernemq.sh /usr/sbin/start_vernemq

RUN curl -L https://github.com/vernemq/vernemq/releases/download/$VERNEMQ_VERSION/vernemq-$VERNEMQ_VERSION.alpine.tar.gz -o /tmp/vernemq-$VERNEMQ_VERSION.alpine.tar.gz &&
tar -xzvf /tmp/vernemq-$VERNEMQ_VERSION.alpine.tar.gz &&
rm /tmp/vernemq-$VERNEMQ_VERSION.alpine.tar.gz &&
ln -s /vernemq/etc /etc/vernemq &&
ln -s /vernemq/data /var/lib/vernemq &&
ln -s /vernemq/log /var/log/vernemq

COPY files/vm.args /vernemq/etc/vm.args

EXPOSE 1883 8883 8080 44053 4369 8888 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109

HEALTHCHECK CMD vernemq ping | grep -q pong

RUN chgrp -R 0 /vernemq &&
chmod -R g=u /vernemq

CMD ["start_vernemq"]
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants