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

Set up with Layer CI - https://show.layerci.com/ #29

Closed
kiwicopple opened this issue May 19, 2020 · 1 comment
Closed

Set up with Layer CI - https://show.layerci.com/ #29

kiwicopple opened this issue May 19, 2020 · 1 comment

Comments

@kiwicopple
Copy link
Member

Our batch mates just released this: https://show.layerci.com/

We can put this on their page by:

  1. Log in
  2. click "Submit project"
  3. Post title: "Supabase Realtime"

For the configuration, it probably easiest to modify the config used for Redash:

FROM vm/ubuntu:18.04

# install docker
RUN apt-get update && \
    apt-get install apt-transport-https ca-certificates curl software-properties-common && \
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - && \
    add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" && \
    apt-get update && \
    apt install docker-ce
    
# install compose
RUN apt-get update && \
    apt-get install python3-dev libffi-dev libssl-dev gcc build-essential

RUN curl -L "https://github.com/docker/compose/releases/download/1.25.5/docker-compose-$(uname -s)-$(uname -m)" \
    -o /usr/local/bin/docker-compose && \
    chmod 755 /usr/local/bin/docker-compose

# copy files from the repository into this staging server
WORKDIR /opt/redash
COPY . .

# set up environment
RUN rm docker-compose.yml && wget https://raw.githubusercontent.com/getredash/setup/master/data/docker-compose.yml
RUN echo "REDASH_REDIS_URL=redis://redis:6379/0" >> env && \
    echo "POSTGRES_PASSWORD=password" >> env && \
    echo "REDASH_COOKIE_SECRET=cookie" >> env && \
    echo "REDASH_SECRET_KEY=secretkey" >> env && \
    echo "REDASH_DATABASE_URL=postgresql://postgres:password@postgres/postgres" >> env
    
# pre-pull everything to improve build times
RUN docker-compose pull && \
    grep -E 'FROM\s+\S+' Dockerfile | awk '{print $2}' | xargs -I {} docker pull {}

# create database & start everything
RUN docker-compose run --rm server create_db
RUN docker-compose up -d
EXPOSE WEBSITE http://localhost:5000

Notes

image

@kiwicopple
Copy link
Member Author

Maybe better to try it with Postgres first - supabase/postgres#17

w3b6x9 pushed a commit that referenced this issue Nov 4, 2022
Receiving updates from multiple WALRUS dbs
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

1 participant