The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 

47 řádky
1.9 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. # Creates a Docker image that runs the Bubble Launcher. You shouldn't have to use this file directly.
  5. #
  6. # For Linux and Mac OS, you can try the easier way, using a prebuilt image from DockerHub:
  7. #
  8. # /bin/bash -c "$(curl -sL https://git.bubblev.org/bubblev/bubble/raw/branch/master/docker/launcher.sh)"
  9. #
  10. FROM phusion/baseimage:focal-1.0.0alpha1-amd64
  11. MAINTAINER jonathan@getbubblenow.com
  12. LABEL maintainer="jonathan@getbubblenow.com"
  13. LABEL license="https://getbubblenow.com/license"
  14. RUN apt update -y
  15. RUN DEBIAN_FRONTEND=noninteractive apt upgrade -y --no-install-recommends
  16. RUN DEBIAN_FRONTEND=noninteractive apt install openjdk-11-jre-headless postgresql redis-server jq python3 python3-pip curl unzip -y --no-install-recommends
  17. RUN DEBIAN_FRONTEND=noninteractive apt install xtail -y --no-install-recommends
  18. RUN pip3 install setuptools psycopg2-binary
  19. RUN bash -c "sed -i -e 's/daemonize yes/daemonize no/g' /etc/redis/redis.conf"
  20. 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"
  21. RUN bash -c "service postgresql start && sleep 5s && service postgresql status && \
  22. su - postgres bash -c 'createuser -h 127.0.0.1 -U postgres --createdb --createrole --superuser root' && \
  23. su - postgres bash -c 'createuser -h 127.0.0.1 -U postgres --createdb bubble'"
  24. RUN mkdir /etc/service/postgresql
  25. COPY docker/run_postgresql.sh /etc/service/postgresql/run
  26. RUN mkdir /etc/service/redis
  27. COPY docker/run_redis.sh /etc/service/redis/run
  28. RUN mkdir /bubble
  29. COPY bin/install_packer.sh /usr/local/bin/
  30. RUN /usr/local/bin/install_packer.sh
  31. COPY bubble-server/target/bubble-server-*.jar /bubble/bubble.jar
  32. COPY docker/bubble.env /bubble/bubble.env
  33. RUN mkdir /etc/service/bubble
  34. COPY docker/run_bubble.sh /etc/service/bubble/run
  35. EXPOSE 8090
  36. CMD ["/sbin/my_init"]