Skip to content

Instantly share code, notes, and snippets.

@parweb
Created June 13, 2018 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parweb/f44912bd65496a0e37e0305494520c90 to your computer and use it in GitHub Desktop.
Save parweb/f44912bd65496a0e37e0305494520c90 to your computer and use it in GitHub Desktop.
FROM ubuntu:18.04
LABEL name "rqlited"
COPY ./sysctl.conf /etc/sysctl.conf
COPY ./rqlited /tmp/
RUN echo $NOW_URL
EXPOSE 4001 4002
CMD ["/tmp/rqlited", "-http-addr", "0.0.0.0:4001", "-raft-addr", "0.0.0.0:4002", "-disco-id", "05ebbdde-6eec-11e8-b706-ea728a9d26f1", "/tmp/data"]
@parweb
Copy link
Author

parweb commented Jun 13, 2018

here the log

4.3.0 git:(master) ✗ now
> Deploying ~/Sites/osmia/rqlite-docker/4.3.0 under parweb
> https://rqlited-royryxgrrs.now.sh [in clipboard] (bru1) [5s]
> Building…
> ▲ docker build
Sending build context to Docker daemon 15.47 MBkB
> Step 1/7 : FROM ubuntu:18.04
>  ---> 113a43faa138
> Step 2/7 : LABEL name "rqlited"
>  ---> Using cache
>  ---> 8d0497d1b5ae
> Step 3/7 : COPY ./sysctl.conf /etc/sysctl.conf
>  ---> Using cache
>  ---> 51901a6b7d94
> Step 4/7 : COPY ./rqlited /tmp/
>  ---> Using cache
>  ---> 7ed779d92da4
> Step 5/7 : RUN echo $NOW_URL
>  ---> Using cache
>  ---> 7f577f31636f
> Step 6/7 : EXPOSE 4001 4002
>  ---> Using cache
>  ---> d9c3ea853cf5
> Step 7/7 : CMD /tmp/rqlited -http-addr 0.0.0.0:4001 -raft-addr 0.0.0.0:4002 -disco-id 05ebbdde-6eec-11e8-b706-ea728a9d26f1 /tmp/data
>  ---> Using cache
>  ---> 780986aa6783
> Successfully built 780986aa6783
> Successfully tagged registry.now.systems/now/d6a74d2decc734c79941fe6a35a2d69c899b4694:latest
> ▲ Storing image
> Build completed
> Verifying instantiation in bru1
> [0] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
> [0]   _ __ __ _| |_| |_ ___
> [0]  |_|  \__, |_|_|\__\___|
> [0]  | '__/ _  | | | __/ _ \   The lightweight, distributed
> [0]          | |
> [0]  | | | (_| | | | ||  __/   relational database.
> [0]          |_|
> [0] [rqlited] 2018/06/13 14:21:00 go1.9.1, target architecture is amd64, operating system target is linux
> [0]
> [0] [discovery] 2018/06/13 14:21:00 discovery client attempting registration of 0.0.0.0:4001 at http://discovery.rqlite.com/05ebbdde-6eec-11e8-b706-ea728a9d26f1
> [0] [rqlited] 2018/06/13 14:21:00 registering with Discovery Service at http://discovery.rqlite.com with ID 05ebbdde-6eec-11e8-b706-ea728a9d26f1
> [0] [mux] 2018/06/13 14:21:00 mux serving on [::]:4002, advertising [::]:4002
> [0]
> [0]             _ _ _
> [0]            | (_) |
> [0] [rqlited] 2018/06/13 14:21:00 rqlited starting, version v4.3.0, commit 2883094c2b32cee035f44c1dce55326aaf36af9f, branch master
> [0] [discovery] 2018/06/13 14:21:00 discovery client redirecting to https://k05nh959gb.execute-api.us-west-2.amazonaws.com/prod/rqliteDiscoHandler/05ebbdde-6eec-11e8-b706-ea728a9d26f1
> [0] [discovery] 2018/06/13 14:21:00 discovery client attempting registration of 0.0.0.0:4001 at https://k05nh959gb.execute-api.us-west-2.amazonaws.com/prod/rqliteDiscoHandler/05ebbdde-6eec-11e8-b706-ea728a9d26f1
> [0] [rqlited] 2018/06/13 14:21:00 unable to determine join addresses: Post https://k05nh959gb.execute-api.us-west-2.amazonaws.com/prod/rqliteDiscoHandler/05ebbdde-6eec-11e8-b706-ea728a9d26f1: x509: failed to load system roots and no roots provided
> [0] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
> [0]
> [0]             _ _ _
> [0]            | (_) |
> [0]   _ __ __ _| |_| |_ ___
> [0]  | '__/ _  | | | __/ _ \   The lightweight, distributed
> [0] [rqlited] 2018/06/13 14:21:05 rqlited starting, version v4.3.0, commit 2883094c2b32cee035f44c1dce55326aaf36af9f, branch master
> [0]  | | | (_| | | | ||  __/   relational database.
> [0]  |_|  \__, |_|_|\__\___|
> [0] [rqlited] 2018/06/13 14:21:05 go1.9.1, target architecture is amd64, operating system target is linux
> [0] [discovery] 2018/06/13 14:21:05 discovery client attempting registration of 0.0.0.0:4001 at http://discovery.rqlite.com/05ebbdde-6eec-11e8-b706-ea728a9d26f1
> [0] [mux] 2018/06/13 14:21:05 mux serving on [::]:4002, advertising [::]:4002
> [0]          | |
> [0]          |_|
> [0]
> [0] [rqlited] 2018/06/13 14:21:05 registering with Discovery Service at http://discovery.rqlite.com with ID 05ebbdde-6eec-11e8-b706-ea728a9d26f1
> [0] [discovery] 2018/06/13 14:21:05 discovery client redirecting to https://k05nh959gb.execute-api.us-west-2.amazonaws.com/prod/rqliteDiscoHandler/05ebbdde-6eec-11e8-b706-ea728a9d26f1
> [0] [discovery] 2018/06/13 14:21:05 discovery client attempting registration of 0.0.0.0:4001 at https://k05nh959gb.execute-api.us-west-2.amazonaws.com/prod/rqliteDiscoHandler/05ebbdde-6eec-11e8-b706-ea728a9d26f1
> [0] [rqlited] 2018/06/13 14:21:06 unable to determine join addresses: Post https://k05nh959gb.execute-api.us-west-2.amazonaws.com/prod/rqliteDiscoHandler/05ebbdde-6eec-11e8-b706-ea728a9d26f1: x509: failed to load system roots and no roots provided

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment