dbhub.io
dbhub.io copied to clipboard
Problem with building a Docker container
I just tried to build a Docker image by running
cd path/to/dbhub.io/docker
docker build .
and I got this error message:
[...]
Step 21/27 : RUN mkdir -p /go/src/github.com/sqlitebrowser && cd /go/src/github.com/sqlitebrowser && git clone https://github.com/sqlitebrowser/dbhub.io && cd /go/src/github.com/sqlitebrowser/dbhub.io && /go/bin/dep ensure && go build -gcflags "all=-N -l" -o /usr/local/bin/dbhub-webui github.com/sqlitebrowser/dbhub.io/webui && go build -gcflags "all=-N -l" -o /usr/local/bin/dbhub-db4s github.com/sqlitebrowser/dbhub.io/db4s
---> Running in 1aa80928fbf2
Cloning into 'dbhub.io'...
could not find project Gopkg.toml, use dep init to initiate a manifest
The command '/bin/sh -c mkdir -p /go/src/github.com/sqlitebrowser && cd /go/src/github.com/sqlitebrowser && git clone https://github.com/sqlitebrowser/dbhub.io && cd /go/src/github.com/sqlitebrowser/dbhub.io && /go/bin/dep ensure && go build -gcflags "all=-N -l" -o /usr/local/bin/dbhub-webui github.com/sqlitebrowser/dbhub.io/webui && go build -gcflags "all=-N -l" -o /usr/local/bin/dbhub-db4s github.com/sqlitebrowser/dbhub.io/db4s' returned a non-zero code: 1
Can you point me in the right direction, @justinclift?
Also wondering if the the last line of the Dockerfile should have 443
instead of 8443
or if this is on purpose because it's running locally?
EXPOSE 8443 5550 9000 40000
Wild stab in the dark...
cd /go/src/github.com/sqlitebrowser/dbhub.io && /go/bin/dep ensure
is what is failing. Ideally, there should be a cd [path] || die
in there. Check paths and permissions.
IIRC, 443 is the SSL port number? Again, idle observation.
Oops. I haven't even looked at the docker stuff for DBHub.io in ages. The docker pieces have likely bitrotted. :wink:
The error message:
could not find project Gopkg.toml, use dep init to initiate a manifest
Is from the old Go dependency manager, dep, which we no longer use. The DBHub.io repo moved to using Go modules (the official Go dependency manager approach) instead. But our docker pieces haven't been updated to match.
I'll need to take a look at the Docker pieces again, to get it working.
Depending on your goal, you could skip using Docker and set things up manually. Memcached, and PostgreSQL can likely be installed from your system package manager (apt, yum, etc). The Minio server is a single file executable that can be run from anywhere. Hmmm... methinks I'd better document the manual setup.
Oh ok :smile: I'm not really interested in using Docker anyway. So I'll try the manual setup as soon as there's some document :smile: No need to hurry though - I was just wondering how this looks like from the server side.
No worries. I'll write something up over the next few weeks. :smile:
Just started working through this again today. I think I made some good progress towards running the dbhub services locally :smile: @justinclift Could you maybe update the certificates in db4s/certs though? I'm getting error messages because they expired in 2019 and I'm not sure if I should completely regenerate them myself or ping you instead :wink:
No worries, looking at it now. :smile:
@MKleusberg Just to double check, you're definitely meaning the certs in db4s/certs yeah? Asking because they seem to have expired in 2018 (heh).
So, they definitely need updating (which I'm refreshing my memory of how to do :wink:). But asking just in case something is strange, as you mention 2019. (?)
Oh you're right. I definitely meant those but didn't look close enough :wink:
Oh no, I meant the ones in docker/certs afterall. Sorry about the confusion! :smile:
Just pushed a new commit with a regenerated db4s-dev.dbhub.io
certificate. I tend to put that name in my local /etc/hosts
file, pointing to (say) localhost or a local dev VM (etc).
Oops. k, gimme a minute. I'll regenerate the docker ones too. :wink:
Thanks! It turned out that I still had that name in my /etc/hosts
from years ago. So that was no problem.
One more thing I noticed: I had to add this to the config file to fix the login.
diff --git a/docker/config.toml b/docker/config.toml
index 58a5312..a138138 100644
--- a/docker/config.toml
+++ b/docker/config.toml
@@ -10,6 +10,7 @@ directory = "/home/dbhub/.dbhub/disk_cache"
[environment]
environment = "docker"
+user_override = "default"
[event]
delay = 2
Not sure if default
is the right name here. I just chose it for simplicity.
Just pushed an updated docker certificate too. :smile:
Good point about the new user_override
setting needed in the config file too. It's purpose is to bypass the Auth0 authentication piece, which can be a bit of a pain when doing (local) development. Especially when travelling or with limited internet access.
The username in there just needs to match a valid username in your local development DBHub.io database, as you'll be effectively logged in as that user. I don't remember off hand if there's a default one, but I guess you'll be finding out soon. :stuck_out_tongue:
Hmm, I think the intermediate CA needs to be updated too. Sorry for being not very specific. I'm just getting back into this remote part of the code :wink:
Oops, yep you're right.
k, gimme another few minutes. :wink:
k, in theory (!) they should be ok now. :smile:
Awesome! That worked :smile: Let's see how far I get now.
It's running!
For future reference, here is what I did:
- Install PostgreSQL, create new user and database, and import initial database schema
- Download and run
minio
- Copy the config file in
docker/config.toml
to~/.dbhub/config.toml
and change all the paths, Postgres settings, etc. - Add that
user_override
line to the config - Make sure the directory in the
disk_cache
line exists - Make sure the name
docker-dev.dbhub.io
is added to the/etc/hosts
file - Import the new CA certificates into DB4S
- Temporarily change the port in DB4S back to 5550 (you could also change it to 443 in the dbhub settings but that would require the server to run as root)
-
go run *.go
in thedb4s
and in thewebui
directory
(So I used the config and certificate files in the docker directory but didn't use Docker itself)
That's enough for today :smile: I'll take a closer look sometime later. Thanks for your help, @justinclift :+1:
Awesome. Just copied that into a page on the wiki, as a good initial starting point. :smile:
  https://github.com/sqlitebrowser/dbhub.io/wiki/Local-development-setup
I have just updated the DB4S code to make both steps related to DB4S obsolete. I've already removed them from the Wiki page.
Oh, in a "semi-related" thing. One thing I keep on noticing when downloading databases via DB4S is that the download progress dialog isn't good.
It seems to use the full url (including commit hash) as one long string. For databases with fairly long names, that can make the progress dialog really, really wide.
Would it be fairly simple to change that dialog so it's neater?
Maybe a fixed width, or showing ~something like?
Downloading
somedude / foo bar baz.sqlite
0 [########.........] 100%
Good point. Changing it to what you suggested is a bit more complicated but I'll try to keep that in mind when I start making larger changes to the remote code in DB4S. I have however removed the commit hash and the branch name from the URL which was easy enough and makes it already look a lot better :smile:
Just tested it, and yep... much neater looking dialog now. :smile:
Oh... we should merge these changes (when you're happy with them) into the 3.12.x branch too. :smile:
As a data point, there are new/updated "Set up your development environment" instructions online now:
https://github.com/sqlitebrowser/dbhub.io/wiki/Local-development-setup
I've been using this new approach for a few weeks now, and so far it's working pretty well. :smile:
Closing this, as Docker definitely builds ok these days. I've been using it a fair bit across several systems.
Even while following the wiki instructions it seems Docker doesn't build anymore. See log error below:
~/dbhub.io$ yarn docker:build
yarn run v1.22.19
$ docker build --tag dbhub-build docker
Sending build context to Docker daemon 37.89kB
Step 1/22 : FROM alpine:3.17
---> 1e0b8b5322fc
Step 2/22 : LABEL maintainer="Justin Clift <[email protected]>"
---> Using cache
---> 43a8b76d5d86
Step 3/22 : RUN apk update && apk upgrade && apk add --no-cache ca-certificates 'curl>7.61.0' file git go libc-dev make memcached minio openrc openssl openssl-dev postgresql yarn && apk add rabbitmq-server --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ && rc-update add memcached default && rc-update add minio default && rc-update add postgresql default && rc-update add rabbitmq-server default && mkdir /etc/rabbitmq && rabbitmq-plugins enable rabbitmq_management && rabbitmq-plugins enable rabbitmq_top
---> Running in 05618c01e67e
fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz
v3.17.5-21-gdb520343e32 [https://dl-cdn.alpinelinux.org/alpine/v3.17/main]
v3.17.5-21-gdb520343e32 [https://dl-cdn.alpinelinux.org/alpine/v3.17/community]
OK: 17818 distinct packages available
OK: 7 MiB in 15 packages
fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz
(1/58) Installing ca-certificates (20230506-r0)
(2/58) Installing brotli-libs (1.0.9-r9)
(3/58) Installing nghttp2-libs (1.51.0-r1)
(4/58) Installing libcurl (8.2.1-r0)
(5/58) Installing curl (8.2.1-r0)
(6/58) Installing libmagic (5.43-r0)
(7/58) Installing file (5.43-r0)
(8/58) Installing libexpat (2.5.0-r0)
(9/58) Installing pcre2 (10.42-r0)
(10/58) Installing git (2.38.5-r0)
(11/58) Installing libgcc (12.2.1_git20220924-r4)
(12/58) Installing libstdc++ (12.2.1_git20220924-r4)
(13/58) Installing binutils (2.39-r2)
(14/58) Installing libgomp (12.2.1_git20220924-r4)
(15/58) Installing libatomic (12.2.1_git20220924-r4)
(16/58) Installing gmp (6.2.1-r2)
(17/58) Installing isl25 (0.25-r1)
(18/58) Installing mpfr4 (4.1.0-r0)
(19/58) Installing mpc1 (1.2.1-r1)
(20/58) Installing gcc (12.2.1_git20220924-r4)
(21/58) Installing musl-dev (1.2.3-r5)
(22/58) Installing go (1.19.9-r0)
(23/58) Installing libc-dev (0.7.2-r3)
(24/58) Installing make (4.3-r1)
(25/58) Installing libevent (2.1.12-r5)
(26/58) Installing gdbm (1.23-r0)
(27/58) Installing libsasl (2.1.28-r3)
(28/58) Installing libseccomp (2.5.4-r0)
(29/58) Installing memcached (1.6.17-r0)
Executing memcached-1.6.17-r0.pre-install
(30/58) Installing minio (0.20221029.062133-r5)
Executing minio-0.20221029.062133-r5.pre-install
(31/58) Installing ifupdown-ng (0.12.1-r1)
(32/58) Installing libcap2 (2.66-r1)
(33/58) Installing openrc (0.45.2-r7)
Executing openrc-0.45.2-r7.post-install
(34/58) Installing minio-openrc (0.20221029.062133-r5)
(35/58) Installing memcached-openrc (1.6.17-r0)
(36/58) Installing openssl (3.0.10-r0)
(37/58) Installing pkgconf (1.9.4-r0)
(38/58) Installing openssl-dev (3.0.10-r0)
(39/58) Installing postgresql-common (1.1-r3)
Executing postgresql-common-1.1-r3.pre-install
(40/58) Installing lz4-libs (1.9.4-r1)
(41/58) Installing libpq (15.3-r0)
(42/58) Installing ncurses-terminfo-base (6.3_p20221119-r1)
(43/58) Installing ncurses-libs (6.3_p20221119-r1)
(44/58) Installing readline (8.2.0-r0)
(45/58) Installing zstd-libs (1.5.5-r0)
(46/58) Installing postgresql15-client (15.3-r0)
(47/58) Installing tzdata (2023c-r0)
(48/58) Installing icu-data-en (72.1-r1)
Executing icu-data-en-72.1-r1.post-install
*
* If you need ICU with non-English locales and legacy charset support, install
* package icu-data-full.
*
(49/58) Installing icu-libs (72.1-r1)
(50/58) Installing libldap (2.6.3-r6)
(51/58) Installing xz-libs (5.2.9-r0)
(52/58) Installing libxml2 (2.10.4-r0)
(53/58) Installing postgresql15 (15.3-r0)
Executing postgresql15-15.3-r0.post-install
*
* If you want to use JIT in PostgreSQL, install postgresql15-jit or
* postgresql-jit (if you didn't install specific major version of postgresql).
*
(54/58) Installing postgresql-common-openrc (1.1-r3)
(55/58) Installing postgresql15-openrc (15.3-r0)
(56/58) Installing c-ares (1.19.1-r0)
(57/58) Installing nodejs (18.17.0-r0)
(58/58) Installing yarn (1.22.19-r0)
Executing busybox-1.35.0-r29.trigger
Executing ca-certificates-20230506-r0.trigger
Executing postgresql-common-1.1-r3.trigger
* Setting postgresql15 as the default version
OK: 762 MiB in 73 packages
fetch http://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
(1/3) Installing erlang (25.1.2-r0)
(2/3) Installing rabbitmq-server (3.12.0-r0)
Executing rabbitmq-server-3.12.0-r0.pre-install
(3/3) Installing rabbitmq-server-openrc (3.12.0-r0)
Executing busybox-1.35.0-r29.trigger
OK: 853 MiB in 76 packages
* service memcached added to runlevel default
* service minio added to runlevel default
* service postgresql added to runlevel default
* service rabbitmq-server added to runlevel default
=ERROR REPORT==== 14-Aug-2023::13:46:44.846390 ===
beam/beam_load.c(184): Error loading module 'Elixir.Kernel':
This BEAM file was compiled for a later version of the runtime system than the current (Erlang/OTP 25).
To fix this, please re-compile this module with an Erlang/OTP 25 compiler.
(Use of opcode 182; this emulator supports only up to 180.)
=ERROR REPORT==== 14-Aug-2023::13:46:44.846424 ===
Loading of /usr/lib/rabbitmq/lib/rabbitmq_server-3.12.0/escript/rabbitmq-plugins/Elixir.Kernel.beam failed: badfile
=ERROR REPORT==== 14-Aug-2023::13:46:44.858654 ===
beam/beam_load.c(184): Error loading module elixir_code_server:
This BEAM file was compiled for a later version of the runtime system than the current (Erlang/OTP 25).
To fix this, please re-compile this module with an Erlang/OTP 25 compiler.
(Use of opcode 181; this emulator supports only up to 180.)
=ERROR REPORT==== 14-Aug-2023::13:46:44.858675 ===
Loading of /usr/lib/rabbitmq/lib/rabbitmq_server-3.12.0/escript/rabbitmq-plugins/elixir_code_server.beam failed: badfile
=SUPERVISOR REPORT==== 14-Aug-2023::13:46:44.858789 ===
supervisor: {local,elixir_sup}
errorContext: start_error
reason: {'EXIT',
{undef,
[{elixir_code_server,start_link,[],[]},
{supervisor,do_start_child_i,3,
[{file,"supervisor.erl"},{line,414}]},
{supervisor,do_start_child,2,
[{file,"supervisor.erl"},{line,400}]},
{supervisor,'-start_children/2-fun-0-',3,
[{file,"supervisor.erl"},{line,384}]},
{supervisor,children_map,4,
[{file,"supervisor.erl"},{line,1250}]},
{supervisor,init_children,2,
[{file,"supervisor.erl"},{line,350}]},
{gen_server,init_it,2,
[{file,"gen_server.erl"},{line,851}]},
{gen_server,init_it,6,
[{file,"gen_server.erl"},{line,814}]}]}}
offender: [{pid,undefined},
{id,elixir_code_server},
{mfargs,{elixir_code_server,start_link,[]}},
{restart_type,permanent},
{significant,false},
{shutdown,2000},
{child_type,worker}]
=CRASH REPORT==== 14-Aug-2023::13:46:44.859644 ===
crasher:
initial call: application_master:init/4
pid: <0.82.0>
registered_name: []
exception exit: {{shutdown,
{failed_to_start_child,elixir_code_server,
{'EXIT',
{undef,
[{elixir_code_server,start_link,[],[]},
{supervisor,do_start_child_i,3,
[{file,"supervisor.erl"},{line,414}]},
{supervisor,do_start_child,2,
[{file,"supervisor.erl"},{line,400}]},
{supervisor,'-start_children/2-fun-0-',3,
[{file,"supervisor.erl"},{line,384}]},
{supervisor,children_map,4,
[{file,"supervisor.erl"},{line,1250}]},
{supervisor,init_children,2,
[{file,"supervisor.erl"},{line,350}]},
{gen_server,init_it,2,
[{file,"gen_server.erl"},{line,851}]},
{gen_server,init_it,6,
[{file,"gen_server.erl"},{line,814}]}]}}}},
{elixir,start,[normal,[]]}}
in function application_master:init/4 (application_master.erl, line 142)
ancestors: [<0.81.0>]
message_queue_len: 1
messages: [{'EXIT',<0.83.0>,normal}]
links: [<0.81.0>,<0.44.0>]
dictionary: []
trap_exit: true
status: running
heap_size: 987
stack_size: 28
reductions: 167
neighbours:
=INFO REPORT==== 14-Aug-2023::13:46:44.863486 ===
application: elixir
exited: {{shutdown,
{failed_to_start_child,elixir_code_server,
{'EXIT',
{undef,
[{elixir_code_server,start_link,[],[]},
{supervisor,do_start_child_i,3,
[{file,"supervisor.erl"},{line,414}]},
{supervisor,do_start_child,2,
[{file,"supervisor.erl"},{line,400}]},
{supervisor,'-start_children/2-fun-0-',3,
[{file,"supervisor.erl"},{line,384}]},
{supervisor,children_map,4,
[{file,"supervisor.erl"},{line,1250}]},
{supervisor,init_children,2,
[{file,"supervisor.erl"},{line,350}]},
{gen_server,init_it,2,
[{file,"gen_server.erl"},{line,851}]},
{gen_server,init_it,6,
[{file,"gen_server.erl"},{line,814}]}]}}}},
{elixir,start,[normal,[]]}}
type: temporary
ERROR! Failed to start Elixir.
error: {error,
{elixir,
{{shutdown,
{failed_to_start_child,elixir_code_server,
{'EXIT',
{undef,
[{elixir_code_server,start_link,[],[]},
{supervisor,do_start_child_i,3,
[{file,"supervisor.erl"},{line,414}]},
{supervisor,do_start_child,2,
[{file,"supervisor.erl"},{line,400}]},
{supervisor,'-start_children/2-fun-0-',3,
[{file,"supervisor.erl"},{line,384}]},
{supervisor,children_map,4,
[{file,"supervisor.erl"},{line,1250}]},
{supervisor,init_children,2,
[{file,"supervisor.erl"},{line,350}]},
{gen_server,init_it,2,
[{file,"gen_server.erl"},{line,851}]},
{gen_server,init_it,6,
[{file,"gen_server.erl"},
{line,814}]}]}}}},
{elixir,start,[normal,[]]}}}}
=INFO REPORT==== 14-Aug-2023::13:46:44.863906 ===
application: compiler
exited: stopped
type: temporary
The command '/bin/sh -c apk update && apk upgrade && apk add --no-cache ca-certificates 'curl>7.61.0' file git go libc-dev make memcached minio openrc openssl openssl-dev postgresql yarn && apk add rabbitmq-server --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ && rc-update add memcached default && rc-update add minio default && rc-update add postgresql default && rc-update add rabbitmq-server default && mkdir /etc/rabbitmq && rabbitmq-plugins enable rabbitmq_management && rabbitmq-plugins enable rabbitmq_top' returned a non-zero code: 1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Docker build with: FROM alpine:edge
in Docker file
yarn docker:build
yarn run v1.22.19
$ docker build --tag dbhub-build docker
Sending build context to Docker daemon 37.89kB
Step 1/22 : FROM alpine:edge
edge: Pulling from library/alpine
9c87f2223d79: Pull complete
Digest: sha256:2d01a16bab53a8405876cec4c27235d47455a7b72b75334c614f2fb0968b3f90
Status: Downloaded newer image for alpine:edge
---> 855f10c27d71
Step 2/22 : LABEL maintainer="Justin Clift <[email protected]>"
---> Running in 8fb35197ec70
Removing intermediate container 8fb35197ec70
---> 45127a2514b0
Step 3/22 : RUN apk update && apk upgrade && apk add --no-cache ca-certificates 'curl>7.61.0' file git go libc-dev make memcached minio openrc openssl openssl-dev postgresql yarn && apk add rabbitmq-server --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ && rc-update add memcached default && rc-update add minio default && rc-update add postgresql default && rc-update add rabbitmq-server default && mkdir /etc/rabbitmq && rabbitmq-plugins enable rabbitmq_management && rabbitmq-plugins enable rabbitmq_top
---> Running in cd2ab88122ea
fetch https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
v3.18.0-8491-g7180adb5778 [https://dl-cdn.alpinelinux.org/alpine/edge/main]
v3.18.0-8514-gcd8180a7817 [https://dl-cdn.alpinelinux.org/alpine/edge/community]
OK: 20490 distinct packages available
Upgrading critical system libraries and apk-tools:
(1/2) Upgrading musl (1.2.3-r4 -> 1.2.4_git20230717-r2)
(2/2) Upgrading apk-tools (2.12.11-r0 -> 2.14.0-r5)
Executing busybox-1.36.0-r5.trigger
Continuing the upgrade transaction with new apk-tools:
(1/12) Upgrading alpine-baselayout-data (3.4.0-r0 -> 3.4.3-r1)
(2/12) Upgrading busybox (1.36.0-r5 -> 1.36.1-r5)
Executing busybox-1.36.1-r5.post-upgrade
(3/12) Upgrading busybox-binsh (1.36.0-r5 -> 1.36.1-r5)
(4/12) Upgrading alpine-baselayout (3.4.0-r0 -> 3.4.3-r1)
Executing alpine-baselayout-3.4.3-r1.pre-upgrade
Executing alpine-baselayout-3.4.3-r1.post-upgrade
(5/12) Upgrading ca-certificates-bundle (20230106-r0 -> 20230506-r0)
(6/12) Upgrading libcrypto3 (3.1.0-r2 -> 3.1.2-r0)
(7/12) Upgrading libssl3 (3.1.0-r2 -> 3.1.2-r0)
(8/12) Upgrading ssl_client (1.36.0-r5 -> 1.36.1-r5)
(9/12) Upgrading zlib (1.2.13-r0 -> 1.2.13-r2)
(10/12) Upgrading scanelf (1.3.7-r0 -> 1.3.7-r2)
(11/12) Upgrading musl-utils (1.2.3-r4 -> 1.2.4_git20230717-r2)
(12/12) Upgrading libc-utils (0.7.2-r4 -> 0.7.2-r5)
Executing busybox-1.36.1-r5.trigger
OK: 7 MiB in 15 packages
fetch https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
(1/61) Installing ca-certificates (20230506-r0)
(2/61) Installing brotli-libs (1.0.9-r15)
(3/61) Installing c-ares (1.19.1-r1)
(4/61) Installing libunistring (1.1-r2)
(5/61) Installing libidn2 (2.3.4-r3)
(6/61) Installing nghttp2-libs (1.55.1-r0)
(7/61) Installing libcurl (8.2.1-r0)
(8/61) Installing curl (8.2.1-r0)
(9/61) Installing libmagic (5.45-r1)
(10/61) Installing file (5.45-r1)
(11/61) Installing libexpat (2.5.0-r2)
(12/61) Installing pcre2 (10.42-r1)
(13/61) Installing git (2.41.0-r2)
(14/61) Installing libgcc (13.1.1_git20230722-r1)
(15/61) Installing jansson (2.14-r4)
(16/61) Installing libstdc++ (13.1.1_git20230722-r1)
(17/61) Installing zstd-libs (1.5.5-r7)
(18/61) Installing binutils (2.41-r0)
(19/61) Installing libgomp (13.1.1_git20230722-r1)
(20/61) Installing libatomic (13.1.1_git20230722-r1)
(21/61) Installing gmp (6.3.0-r0)
(22/61) Installing isl26 (0.26-r1)
(23/61) Installing mpfr4 (4.2.0_p12-r0)
(24/61) Installing mpc1 (1.3.1-r1)
(25/61) Installing gcc (13.1.1_git20230722-r1)
(26/61) Installing musl-dev (1.2.4_git20230717-r2)
(27/61) Installing go (1.21.0-r0)
(28/61) Installing libc-dev (0.7.2-r5)
(29/61) Installing make (4.4.1-r2)
(30/61) Installing libevent (2.1.12-r7)
(31/61) Installing gdbm (1.23-r1)
(32/61) Installing libsasl (2.1.28-r5)
(33/61) Installing libseccomp (2.5.4-r3)
(34/61) Installing memcached (1.6.21-r0)
Executing memcached-1.6.21-r0.pre-install
(35/61) Installing minio (0.20230809.233022-r2)
Executing minio-0.20230809.233022-r2.pre-install
(36/61) Installing ifupdown-ng (0.12.1-r2)
(37/61) Installing libcap2 (2.69-r1)
(38/61) Installing openrc (0.48-r0)
Executing openrc-0.48-r0.post-install
(39/61) Installing minio-openrc (0.20230809.233022-r2)
(40/61) Installing memcached-openrc (1.6.21-r0)
(41/61) Installing openssl (3.1.2-r0)
(42/61) Installing pkgconf (2.0.1-r0)
(43/61) Installing openssl-dev (3.1.2-r0)
(44/61) Installing postgresql-common (1.2-r0)
Executing postgresql-common-1.2-r0.pre-install
(45/61) Installing lz4-libs (1.9.4-r5)
(46/61) Installing libpq (15.3-r1)
(47/61) Installing ncurses-terminfo-base (6.4_p20230722-r0)
(48/61) Installing libncursesw (6.4_p20230722-r0)
(49/61) Installing readline (8.2.1-r2)
(50/61) Installing postgresql15-client (15.3-r1)
(51/61) Installing tzdata (2023c-r1)
(52/61) Installing icu-data-en (73.2-r2)
Executing icu-data-en-73.2-r2.post-install
*
* If you need ICU with non-English locales and legacy charset support, install
* package icu-data-full.
*
(53/61) Installing icu-libs (73.2-r2)
(54/61) Installing libldap (2.6.6-r0)
(55/61) Installing xz-libs (5.4.4-r0)
(56/61) Installing libxml2 (2.11.5-r0)
(57/61) Installing postgresql15 (15.3-r1)
Executing postgresql15-15.3-r1.post-install
*
* If you want to use JIT in PostgreSQL, install postgresql15-jit or
* postgresql-jit (if you didn't install specific major version of postgresql).
*
(58/61) Installing postgresql-common-openrc (1.2-r0)
(59/61) Installing postgresql15-openrc (15.3-r1)
(60/61) Installing nodejs (18.17.0-r0)
(61/61) Installing yarn (1.22.19-r0)
Executing busybox-1.36.1-r5.trigger
Executing ca-certificates-20230506-r0.trigger
Executing postgresql-common-1.2-r0.trigger
* Setting postgresql15 as the default version
OK: 532 MiB in 76 packages
fetch http://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
(1/3) Installing erlang (26.0.2-r1)
(2/3) Installing rabbitmq-server (3.12.0-r0)
Executing rabbitmq-server-3.12.0-r0.pre-install
(3/3) Installing rabbitmq-server-openrc (3.12.0-r0)
Executing busybox-1.36.1-r5.trigger
OK: 626 MiB in 79 packages
* service memcached added to runlevel default
* service minio added to runlevel default
* service postgresql added to runlevel default
* service rabbitmq-server added to runlevel default
Enabling plugins on node rabbit@cd2ab88122ea:
rabbitmq_management
The following plugins have been configured:
rabbitmq_management
rabbitmq_management_agent
rabbitmq_web_dispatch
Applying plugin configuration to rabbit@cd2ab88122ea...
The following plugins have been enabled:
rabbitmq_management
rabbitmq_management_agent
rabbitmq_web_dispatch
set 3 plugins.
Offline change; changes will take effect at broker restart.
Enabling plugins on node rabbit@cd2ab88122ea:
rabbitmq_top
The following plugins have been configured:
rabbitmq_management
rabbitmq_management_agent
rabbitmq_top
rabbitmq_web_dispatch
Applying plugin configuration to rabbit@cd2ab88122ea...
The following plugins have been enabled:
rabbitmq_top
set 4 plugins.
Offline change; changes will take effect at broker restart.
Removing intermediate container cd2ab88122ea
---> 270e9a137552
Step 4/22 : RUN addgroup dbhub && adduser -D -S -s /bin/ash -G dbhub dbhub
---> Running in 38c1d06e662e
Removing intermediate container 38c1d06e662e
---> c4ea3a3e8b1d
Step 5/22 : ENV DBHUB_SOURCE /dbhub.io
---> Running in 96319676bbe1
Removing intermediate container 96319676bbe1
---> fb0d699dc244
Step 6/22 : ENV MINIO_ROOT_USER minio
---> Running in d1336b7ad9c0
Removing intermediate container d1336b7ad9c0
---> 1f4ad8196e38
Step 7/22 : ENV MINIO_ROOT_PASSWORD minio123
---> Running in af8f499fabd9
Removing intermediate container af8f499fabd9
---> 29cf86e0aac0
Step 8/22 : RUN sed -i "s/^MINIO_ROOT_USER=\"change-me\"/MINIO_ROOT_USER=\"${MINIO_ROOT_USER}\"/" /etc/conf.d/minio && sed -i "s/^MINIO_ROOT_PASSWORD=\"change-me\"/MINIO_ROOT_PASSWORD=\"${MINIO_ROOT_PASSWORD}\"/" /etc/conf.d/minio
---> Running in a3da965d589b
Removing intermediate container a3da965d589b
---> 077897788c7a
Step 9/22 : RUN echo "openrc nonetwork" >> /usr/local/bin/init.sh && echo "openrc default stop 2>&1 | grep -v 'Read-only file system'" >> /usr/local/bin/init.sh && echo "createuser -U postgres -d dbhub" >> /usr/local/bin/init.sh && echo "createdb -U postgres -O dbhub dbhub" >> /usr/local/bin/init.sh && echo "su - dbhub -c 'psql dbhub < ${DBHUB_SOURCE}/database/dbhub.sql'" >> /usr/local/bin/init.sh && echo "rc-service memcached stop 2>&1 | grep -v 'Read-only file system'" >> /usr/local/bin/init.sh && echo "rc-service minio stop 2>&1 | grep -v 'Read-only file system'" >> /usr/local/bin/init.sh && echo "rc-service postgresql stop 2>&1 | grep -v 'Read-only file system'" >> /usr/local/bin/init.sh && echo "rc-service rabbitmq-server stop 2>&1 | grep -v 'Read-only file system'" >> /usr/local/bin/init.sh && chmod +x /usr/local/bin/init.sh
---> Running in 9f32f064c959
Removing intermediate container 9f32f064c959
---> a3f99948ebda
Step 10/22 : ENTRYPOINT /usr/local/bin/start.sh
---> Running in d49e5fcb9132
Removing intermediate container d49e5fcb9132
---> 3802388e6c32
Step 11/22 : RUN mkdir -p /var/log/dbhub ~dbhub/.dbhub/disk_cache && chown -R dbhub:dbhub /var/log/dbhub ~dbhub/.dbhub/disk_cache && chmod 700 /var/log/dbhub ~dbhub/.dbhub/disk_cache
---> Running in cccfc84d0bcd
Removing intermediate container cccfc84d0bcd
---> bb98be784a9a
Step 12/22 : ENV CONFIG_FILE ${DBHUB_SOURCE}/docker/config.toml
---> Running in dcdf8f8024fa
Removing intermediate container dcdf8f8024fa
---> 13cac7e28b83
Step 13/22 : RUN GOBIN=/usr/local/bin go install github.com/go-delve/delve/cmd/dlv@latest
---> Running in d8cd52f719b3
...
Successfully built 35aae28b8f29
Successfully tagged dbhub-build:latest