Docker build/run scripts + docker config fix

This commit is contained in:
Serge Rider
2020-09-08 11:22:36 +00:00
parent f30dcf96ce
commit e1534ee88b
2 changed files with 9 additions and 6 deletions
+7 -6
View File
@@ -3,15 +3,16 @@ FROM adoptopenjdk/openjdk11:x86_64-ubuntu-jdk-11.0.7_10
RUN apt-get update
RUN apt-get install -y supervisor
RUN mkdir -p /opt/cloudbeaver
#RUN mkdir -p /opt/cloudbeaver
COPY cloudbeaver /opt/
RUN ["chmod", "+x", "/opt/cloudbeaver/run-server.sh"]
COPY cloudbeaver /opt/cloudbeaver
#RUN ["chmod", "+x", "/opt/cloudbeaver/run-server.sh"]
COPY supervisord/cloudbeaver.conf /etc/supervisor/conf.d/cloudbeaver.conf
COPY supervisor/cloudbeaver.conf /etc/supervisor/conf.d/cloudbeaver.conf
EXPOSE 8978
CMD ["/usr/bin/supervisord"]
#CMD ["/usr/bin/supervisord"]
# ENTRYPOINT ["/opt/cloudbeaver/run-server.sh"]
WORKDIR /opt/cloudbeaver/
ENTRYPOINT ["./run-server.sh"]
+2
View File
@@ -0,0 +1,2 @@
sudo docker run -ti -p 8980:8978 dbeaver/cloudbeaver:latest