The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

41 lines
1.6 KiB

  1. #
  2. # Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
  3. #
  4. FROM phusion/baseimage:focal-1.0.0alpha1-amd64
  5. MAINTAINER jonathan@getbubblenow.com
  6. LABEL maintainer="jonathan@getbubblenow.com"
  7. LABEL license="https://getbubblenow.com/license"
  8. RUN apt update -y
  9. RUN DEBIAN_FRONTEND=noninteractive apt upgrade -y --no-install-recommends
  10. RUN DEBIAN_FRONTEND=noninteractive apt install openjdk-11-jre-headless postgresql redis-server jq python3 python3-pip curl unzip -y --no-install-recommends
  11. RUN DEBIAN_FRONTEND=noninteractive apt install xtail -y --no-install-recommends
  12. RUN pip3 install setuptools psycopg2-binary
  13. RUN bash -c "sed -i -e 's/daemonize yes/daemonize no/g' /etc/redis/redis.conf"
  14. RUN bash -c "sed -i -e 's/ md5/ trust/g' $(find /etc/postgresql -mindepth 1 -maxdepth 1 -type d | sort | tail -1)/main/pg_hba.conf"
  15. RUN bash -c "service postgresql start && sleep 5s && service postgresql status && \
  16. su - postgres bash -c 'createuser -h 127.0.0.1 -U postgres --createdb --createrole --superuser root' && \
  17. su - postgres bash -c 'createuser -h 127.0.0.1 -U postgres --createdb bubble'"
  18. RUN mkdir /etc/service/postgresql
  19. COPY docker/run_postgresql.sh /etc/service/postgresql/run
  20. RUN mkdir /etc/service/redis
  21. COPY docker/run_redis.sh /etc/service/redis/run
  22. RUN mkdir /bubble
  23. COPY bin/install_packer.sh /usr/local/bin/
  24. RUN /usr/local/bin/install_packer.sh
  25. COPY bubble-server/target/bubble-server-*.jar /bubble/bubble.jar
  26. COPY docker/bubble.env /bubble/bubble.env
  27. RUN mkdir /etc/service/bubble
  28. COPY docker/run_bubble.sh /etc/service/bubble/run
  29. EXPOSE 8090
  30. CMD ["/sbin/my_init"]