Skip to content

Instantly share code, notes, and snippets.

@tomgie
Created July 24, 2019 18:28
Show Gist options
  • Save tomgie/5be90f05a5f55ef651c44d73929277c0 to your computer and use it in GitHub Desktop.
Save tomgie/5be90f05a5f55ef651c44d73929277c0 to your computer and use it in GitHub Desktop.
Building in Docker Cloud's infrastructure...
Cloning into '.'...
Warning: Permanently added the RSA host key for IP address '192.30.253.113' to the list of known hosts.
Reset branch 'master'
Your branch is up-to-date with 'origin/master'.
Pulling cache layers for index.docker.io/tomgie/docker-webdis:latest...
Done!
KernelVersion: 4.4.0-1060-aws
Components: [{u'Version': u'18.03.1-ee-3', u'Name': u'Engine', u'Details': {u'KernelVersion': u'4.4.0-1060-aws', u'Os': u'linux', u'BuildTime': u'2018-08-30T18:42:30.000000000+00:00', u'ApiVersion': u'1.37', u'MinAPIVersion': u'1.12', u'GitCommit': u'b9a5c95', u'Arch': u'amd64', u'Experimental': u'false', u'GoVersion': u'go1.10.2'}}]
Arch: amd64
BuildTime: 2018-08-30T18:42:30.000000000+00:00
ApiVersion: 1.37
Platform: {u'Name': u''}
Version: 18.03.1-ee-3
MinAPIVersion: 1.12
GitCommit: b9a5c95
Os: linux
GoVersion: go1.10.2
Starting build of index.docker.io/tomgie/docker-webdis:latest...
Step 1/7 : FROM alpine
---> b7b28af77ffe
Step 2/7 : MAINTAINER Thomas G <tomgie54911@gmail.com>
---> Using cache
---> baa08d6e735a
Step 3/7 : ENV WEBDIS_REPO https://github.com/nicolasff/webdis.git
---> Using cache
---> d1c914042c6e
Step 4/7 : RUN apk -U upgrade && apk add alpine-sdk libevent libevent-dev bsd-compat-headers git msgpack-c-dev && git clone --depth 1 $WEBDIS_REPO /tmp/webdis
---> Running in 80336165de76
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/community/x86_64/APKINDEX.tar.gz
OK: 6 MiB in 14 packages
(1/52) Installing fakeroot (1.23-r0)
(2/52) Installing sudo (1.8.27-r0)
(3/52) Installing libcap (2.27-r0)
(4/52) Installing pax-utils (1.2.3-r0)
(5/52) Installing openssl (1.1.1c-r0)
(6/52) Installing libattr (2.4.48-r0)
(7/52) Installing attr (2.4.48-r0)
(8/52) Installing tar (1.32-r0)
(9/52) Installing pkgconf (1.6.1-r1)
(10/52) Installing patch (2.7.6-r5)
(11/52) Installing libgcc (8.3.0-r0)
(12/52) Installing libstdc++ (8.3.0-r0)
(13/52) Installing lzip (1.21-r0)
(14/52) Installing ca-certificates (20190108-r0)
(15/52) Installing nghttp2-libs (1.38.0-r0)
(16/52) Installing libcurl (7.65.1-r0)
(17/52) Installing curl (7.65.1-r0)
(18/52) Installing abuild (3.4.0-r0)
Executing abuild-3.4.0-r0.pre-install
(19/52) Installing binutils (2.32-r0)
(20/52) Installing libmagic (5.37-r0)
(21/52) Installing file (5.37-r0)
(22/52) Installing gmp (6.1.2-r1)
(23/52) Installing isl (0.18-r0)
(24/52) Installing libgomp (8.3.0-r0)
(25/52) Installing libatomic (8.3.0-r0)
(26/52) Installing mpfr3 (3.1.5-r1)
(27/52) Installing mpc1 (1.1.0-r0)
(28/52) Installing gcc (8.3.0-r0)
(29/52) Installing musl-dev (1.1.22-r2)
(30/52) Installing libc-dev (0.7.1-r0)
(31/52) Installing g++ (8.3.0-r0)
(32/52) Installing make (4.2.1-r2)
(33/52) Installing fortify-headers (1.1-r0)
(34/52) Installing build-base (0.5-r1)
(35/52) Installing expat (2.2.7-r0)
(36/52) Installing pcre2 (10.33-r0)
(37/52) Installing git (2.22.0-r0)
(38/52) Installing alpine-sdk (1.0-r0)
(39/52) Installing bsd-compat-headers (0.7.1-r0)
(40/52) Installing libevent (2.1.10-r0)
(41/52) Installing libbz2 (1.0.6-r7)
(42/52) Installing libffi (3.2.1-r6)
(43/52) Installing gdbm (1.13-r1)
(44/52) Installing ncurses-terminfo-base (6.1_p20190518-r0)
(45/52) Installing ncurses-terminfo (6.1_p20190518-r0)
(46/52) Installing ncurses-libs (6.1_p20190518-r0)
(47/52) Installing readline (8.0.0-r0)
(48/52) Installing sqlite-libs (3.28.0-r0)
(49/52) Installing python2 (2.7.16-r1)
(50/52) Installing libevent-dev (2.1.10-r0)
(51/52) Installing msgpack-c (2.0.0-r1)
(52/52) Installing msgpack-c-dev (2.0.0-r1)
Executing busybox-1.30.1-r2.trigger
Executing ca-certificates-20190108-r0.trigger
OK: 238 MiB in 66 packages
Cloning into '/tmp/webdis'...
Removing intermediate container 80336165de76
---> 4ed93865d1aa
Step 5/7 : COPY Makefile /tmp/webdis/Makefile
---> 05eb4b7be66d
Step 6/7 : RUN cd /tmp/webdis && make clean all && cp webdis /usr/local/bin/ && cp webdis.json /etc/ && cd /tmp && rm -rf /tmp/webdis && apk del --purge alpine-sdk libevent-dev bsd-compat-headers git && rm -rf /var/cache/apk/*
---> Running in 3f3bdb48af00
rm -f webdis.o cmd.o worker.o slog.o server.o acl.o md5/md5.o sha1/sha1.o http.o client.o websocket.o pool.o conf.o formats/json.o formats/raw.o formats/common.o formats/custom-type.o formats/msgpack.o hiredis/hiredis.o hiredis/sds.o hiredis/net.o hiredis/async.o hiredis/read.o hiredis/dict.o jansson/src/dump.o jansson/src/error.o jansson/src/hashtable.o jansson/src/load.o jansson/src/strbuffer.o jansson/src/utf.o jansson/src/value.o jansson/src/variadic.o http-parser/http_parser.o b64/cencode.o webdis
cc -c -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -DMSGPACK=1 -o webdis.o webdis.c
cc -c -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -DMSGPACK=1 -o cmd.o cmd.c
cc -c -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -DMSGPACK=1 -o worker.o worker.c
cc -c -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -DMSGPACK=1 -o slog.o slog.c
cc -c -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -DMSGPACK=1 -o server.o server.c
cc -c -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -DMSGPACK=1 -o acl.o acl.c
cc -c -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -DMSGPACK=1 -o md5/md5.o md5/md5.c
cc -c -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -DMSGPACK=1 -o sha1/sha1.o sha1/sha1.c
cc -c -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -DMSGPACK=1 -o http.o http.c
cc -c -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -DMSGPACK=1 -o client.o client.c
cc -c -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -DMSGPACK=1 -o websocket.o websocket.c
cc -c -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -DMSGPACK=1 -o pool.o pool.c
cc -c -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -DMSGPACK=1 -o conf.o conf.c
cc -c -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -DMSGPACK=1 -o formats/json.o formats/json.c
cc -c -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -DMSGPACK=1 -o formats/raw.o formats/raw.c
cc -c -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -DMSGPACK=1 -o formats/common.o formats/common.c
cc -c -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -DMSGPACK=1 -o formats/custom-type.o formats/custom-type.c
cc -c -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -DMSGPACK=1 -o formats/msgpack.o formats/msgpack.c
formats/msgpack.c: In function 'msg_info_reply':
formats/msgpack.c:114:3: warning: implicit declaration of function 'msgpack_pack_raw'; did you mean 'msgpack_pack_v4raw'? [-Wimplicit-function-declaration]
msgpack_pack_raw(pk, key_sz);
^~~~~~~~~~~~~~~~
msgpack_pack_v4raw
formats/msgpack.c:115:3: warning: implicit declaration of function 'msgpack_pack_raw_body'; did you mean 'msgpack_pack_v4raw_body'? [-Wimplicit-function-declaration]
msgpack_pack_raw_body(pk, key, key_sz);
^~~~~~~~~~~~~~~~~~~~~
msgpack_pack_v4raw_body
formats/msgpack.c: In function 'msgpack_wrap_redis_reply':
formats/msgpack.c:158:47: warning: passing argument 2 of 'msgpack_packer_new' from incompatible pointer type [-Wincompatible-pointer-types]
msgpack_packer* pk = msgpack_packer_new(out, on_msgpack_write);
^~~~~~~~~~~~~~~~
In file included from /usr/include/msgpack.h:19,
from formats/msgpack.h:4,
from formats/msgpack.c:1:
/usr/include/msgpack/pack.h:129:76: note: expected 'msgpack_packer_write' {aka 'int (*)(void *, const char *, long unsigned int)'} but argument is of type 'int (*)(void *, const char *, unsigned int)'
inline msgpack_packer* msgpack_packer_new(void* data, msgpack_packer_write callback)
~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
cc -c -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -DMSGPACK=1 -o hiredis/hiredis.o hiredis/hiredis.c
cc -c -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -DMSGPACK=1 -o hiredis/sds.o hiredis/sds.c
cc -c -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -DMSGPACK=1 -o hiredis/net.o hiredis/net.c
cc -c -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -DMSGPACK=1 -o hiredis/async.o hiredis/async.c
cc -c -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -DMSGPACK=1 -o hiredis/read.o hiredis/read.c
cc -c -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -DMSGPACK=1 -o hiredis/dict.o hiredis/dict.c
hiredis/dict.c:288:13: warning: 'dictReleaseIterator' defined but not used [-Wunused-function]
static void dictReleaseIterator(dictIterator *iter) {
^~~~~~~~~~~~~~~~~~~
hiredis/dict.c:268:19: warning: 'dictNext' defined but not used [-Wunused-function]
static dictEntry *dictNext(dictIterator *iter) {
^~~~~~~~
hiredis/dict.c:258:22: warning: 'dictGetIterator' defined but not used [-Wunused-function]
static dictIterator *dictGetIterator(dict *ht) {
^~~~~~~~~~~~~~~
hiredis/dict.c:238:13: warning: 'dictRelease' defined but not used [-Wunused-function]
static void dictRelease(dict *ht) {
^~~~~~~~~~~
hiredis/dict.c:182:12: warning: 'dictDelete' defined but not used [-Wunused-function]
static int dictDelete(dict *ht, const void *key) {
^~~~~~~~~~
hiredis/dict.c:160:12: warning: 'dictReplace' defined but not used [-Wunused-function]
static int dictReplace(dict *ht, void *key, void *val) {
^~~~~~~~~~~
hiredis/dict.c:73:14: warning: 'dictCreate' defined but not used [-Wunused-function]
static dict *dictCreate(dictType *type, void *privDataPtr) {
^~~~~~~~~~
hiredis/dict.c:53:21: warning: 'dictGenHashFunction' defined but not used [-Wunused-function]
static unsigned int dictGenHashFunction(const unsigned char *buf, int len) {
^~~~~~~~~~~~~~~~~~~
cc -c -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -DMSGPACK=1 -o jansson/src/dump.o jansson/src/dump.c
cc -c -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -DMSGPACK=1 -o jansson/src/error.o jansson/src/error.c
cc -c -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -DMSGPACK=1 -o jansson/src/hashtable.o jansson/src/hashtable.c
cc -c -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -DMSGPACK=1 -o jansson/src/load.o jansson/src/load.c
jansson/src/load.c: In function 'error_set':
jansson/src/load.c:90:29: warning: ' near '' directive output may be truncated writing 7 bytes into a region of size between 1 and 160 [-Wformat-truncation=]
"%s near '%s'", msg_text, saved_text);
^~~~~~~
jansson/src/load.c:89:17: note: 'snprintf' output 9 or more bytes (assuming 168) into a destination of size 160
snprintf(msg_with_context, JSON_ERROR_TEXT_LENGTH,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"%s near '%s'", msg_text, saved_text);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jansson/src/load.c:97:25: warning: ' near end of file' directive output may be truncated writing 17 bytes into a region of size between 1 and 160 [-Wformat-truncation=]
"%s near end of file", msg_text);
^~~~~~~~~~~~~~~~~
jansson/src/load.c:96:13: note: 'snprintf' output between 18 and 177 bytes into a destination of size 160
snprintf(msg_with_context, JSON_ERROR_TEXT_LENGTH,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"%s near end of file", msg_text);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc -c -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -DMSGPACK=1 -o jansson/src/strbuffer.o jansson/src/strbuffer.c
cc -c -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -DMSGPACK=1 -o jansson/src/utf.o jansson/src/utf.c
cc -c -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -DMSGPACK=1 -o jansson/src/value.o jansson/src/value.c
cc -c -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -DMSGPACK=1 -o jansson/src/variadic.o jansson/src/variadic.c
cc -c -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -DMSGPACK=1 -o http-parser/http_parser.o http-parser/http_parser.c
cc -c -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -DMSGPACK=1 -o b64/cencode.o b64/cencode.c
b64/cencode.c: In function 'base64_encode_block':
b64/cencode.c:50:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
result = (fragment & 0x003) << 4;
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
b64/cencode.c:51:2: note: here
case step_B:
^~~~
b64/cencode.c:61:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
result = (fragment & 0x00f) << 2;
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
b64/cencode.c:62:2: note: here
case step_C:
^~~~
cc -o webdis webdis.o cmd.o worker.o slog.o server.o acl.o md5/md5.o sha1/sha1.o http.o client.o websocket.o pool.o conf.o formats/json.o formats/raw.o formats/common.o formats/custom-type.o formats/msgpack.o hiredis/hiredis.o hiredis/sds.o hiredis/net.o hiredis/async.o hiredis/read.o hiredis/dict.o jansson/src/dump.o jansson/src/error.o jansson/src/hashtable.o jansson/src/load.o jansson/src/strbuffer.o jansson/src/utf.o jansson/src/value.o jansson/src/variadic.o http-parser/http_parser.o b64/cencode.o -levent -pthread -lmsgpack
/usr/lib/gcc/x86_64-alpine-linux-musl/8.3.0/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lmsgpack
collect2: error: ld returned 1 exit status
make: *** [Makefile:36: webdis] Error 1
Removing intermediate container 3f3bdb48af00
The command '/bin/sh -c cd /tmp/webdis && make clean all && cp webdis /usr/local/bin/ && cp webdis.json /etc/ && cd /tmp && rm -rf /tmp/webdis && apk del --purge alpine-sdk libevent-dev bsd-compat-headers git && rm -rf /var/cache/apk/*' returned a non-zero code: 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment