Skip to content

Commit 0a4c42b

Browse files
authored
Merge pull request #40 from wisdomjourney/main
fix: errors which may interrupt setup script execution and some minor…
2 parents c6eb962 + 07cb7f8 commit 0a4c42b

File tree

4 files changed

+19
-9
lines changed

4 files changed

+19
-9
lines changed

packer/scripts/setup.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
#!/bin/bash
22
# A Bash script to install Docker and Docker Compose on Ubuntu 22
33

4+
# fix: debconf: unable to initialize frontend: Dialog
5+
echo set debconf to Noninteractive
6+
echo 'debconf debconf/frontend select Noninteractive' | sudo debconf-set-selections
7+
48
# Install Docker
59

610
# Update existing packages:
711
sudo apt-get -y update
12+
# fix: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process
13+
while sudo lsof /var/lib/dpkg/lock-frontend ; do sleep 10; done;
14+
815
sudo apt-get -y install \
916
ca-certificates \
1017
curl \
@@ -17,8 +24,11 @@ echo \
1724
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
1825
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
1926
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
27+
2028
# Install Docker:
2129
sudo apt-get -y update
30+
while sudo lsof /var/lib/dpkg/lock-frontend ; do sleep 10; done;
31+
2232
sudo apt-get -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
2333

2434
#Test your installation:

packer/supabase.pkr.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
packer {
2-
required_version = "~> 1.8.5"
2+
required_version = "~> 1.9.1"
33

44
required_plugins {
55
digitalocean = {

packer/supabase/docker-compose.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ services:
3030

3131
studio:
3232
container_name: supabase-studio
33-
image: supabase/studio:20230330-99fed3d
33+
image: supabase/studio:20230622-d8395eb
3434
restart: unless-stopped
3535
healthcheck:
3636
test: [ "CMD", "node", "-e", "require('http').get('http://localhost:3000/api/profile', (r) => {if (r.statusCode !== 200) throw new Error(r.statusCode)})" ]
@@ -72,7 +72,7 @@ services:
7272

7373
auth:
7474
container_name: supabase-auth
75-
image: supabase/gotrue:v2.60.7
75+
image: supabase/gotrue:v2.62.1
7676
depends_on:
7777
db:
7878
condition: service_healthy
@@ -135,7 +135,7 @@ services:
135135

136136
realtime:
137137
container_name: realtime-dev.supabase-realtime
138-
image: supabase/realtime:v2.5.1
138+
image: supabase/realtime:v2.10.1
139139
depends_on:
140140
db:
141141
condition: service_healthy
@@ -166,7 +166,7 @@ services:
166166
167167
storage:
168168
container_name: supabase-storage
169-
image: supabase/storage-api:v0.28.2
169+
image: supabase/storage-api:v0.40.4
170170
depends_on:
171171
db:
172172
condition: service_healthy
@@ -217,7 +217,7 @@ services:
217217

218218
meta:
219219
container_name: supabase-meta
220-
image: supabase/postgres-meta:v0.60.7
220+
image: supabase/postgres-meta:v0.66.3
221221
depends_on:
222222
db:
223223
condition: service_healthy
@@ -232,7 +232,7 @@ services:
232232

233233
functions:
234234
container_name: supabase-edge-functions
235-
image: supabase/edge-runtime:v1.2.12
235+
image: supabase/edge-runtime:v1.5.2
236236
restart: unless-stopped
237237
environment:
238238
JWT_SECRET: ${JWT_SECRET}
@@ -253,7 +253,7 @@ services:
253253

254254
db:
255255
container_name: supabase-db
256-
image: supabase/postgres:15.1.0.54-rc0
256+
image: supabase/postgres:15.1.0.90
257257
healthcheck:
258258
test: pg_isready -U postgres -h localhost
259259
interval: 5s

terraform/provider.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
terraform {
2-
required_version = "~> 1.3.0"
2+
required_version = "~> 1.5.1"
33

44
required_providers {
55
digitalocean = {

0 commit comments

Comments
 (0)