sourcey / spectacle

Beautiful static documentation generator for OpenAPI/Swagger 2.0

Home Page:https://sourcey.com/spectacle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to run Docker container

SandyChapman opened this issue · comments

docker build fails.

This is the output:

> docker build . -t spectacle-schapman:latest
Sending build context to Docker daemon   4.91MB
Step 1/5 : FROM node:7.5.0-alpine
7.5.0-alpine: Pulling from library/node
b7f33cc0b48e: Pull complete 
7d2e4d69d5b4: Pull complete 
Digest: sha256:d48ceef37d6675a3c1b15a948b21f1b3a6f99160220600a05561c92e8a78f195
Status: Downloaded newer image for node:7.5.0-alpine
 ---> 0895ecd79009
Step 2/5 : MAINTAINER Kam Low <hello@sourcey.com>
 ---> Running in cdbd2deda7f3
Removing intermediate container cdbd2deda7f3
 ---> fb275e63321b
Step 3/5 : USER 0
 ---> Running in e9cc16900af7
Removing intermediate container e9cc16900af7
 ---> 3781e8389dd8
Step 4/5 : WORKDIR /opt
Removing intermediate container 46fbbffa2308
 ---> 4c34d0d095d2
Step 5/5 : RUN apk update  && apk add git vim curl wget  && rm -rf /var/cache/apk/*  && npm install -g spectacle-docs
 ---> Running in 92f9488efae6
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz
v3.4.6-299-ge10ec9b [http://dl-cdn.alpinelinux.org/alpine/v3.4/main]
v3.4.6-160-g14ad2a3 [http://dl-cdn.alpinelinux.org/alpine/v3.4/community]
OK: 5980 distinct packages available
(1/13) Installing ca-certificates (20161130-r0)
(2/13) Installing libssh2 (1.7.0-r0)
(3/13) Installing libcurl (7.59.0-r0)
(4/13) Installing curl (7.59.0-r0)
(5/13) Installing expat (2.2.0-r1)
(6/13) Installing pcre (8.38-r1)
(7/13) Installing git (2.8.6-r0)
(8/13) Installing lua5.2-libs (5.2.4-r2)
(9/13) Installing ncurses-terminfo-base (6.0_p20171125-r0)
(10/13) Installing ncurses-terminfo (6.0_p20171125-r0)
(11/13) Installing ncurses-libs (6.0_p20171125-r0)
(12/13) Installing vim (7.4.1831-r3)
(13/13) Installing wget (1.18-r2)
Executing busybox-1.24.2-r12.trigger
Executing ca-certificates-20161130-r0.trigger
OK: 56 MiB in 26 packages


#
# Fatal error in ../deps/v8/src/snapshot/deserializer.cc, line 827
# Check failed: false.
#
Illegal instruction
The command '/bin/sh -c apk update  && apk add git vim curl wget  && rm -rf /var/cache/apk/*  && npm install -g spectacle-docs' returned a non-zero code: 132

docker run also fails similarly:

> /bin/sh -c 'docker run -v `pwd`/api/swagger:/opt/swagger/ -v `pwd`/static_docs:/opt/output -it sourcey/spectacle /usr/local/bin/spectacle /opt/swagger/swagger.yaml -t /opt/output'
#
# Fatal error in ../deps/v8/src/snapshot/deserializer.cc, line 827
# Check failed: false.
#

Docker version: 18.03.1-ce-mac65

Hi @SandyChapman

I rolled back to version 1.0.3 35387af wasn't able to recreate this issue. The issue with deserializer.cc looks to be related to v8 and there are several issues from the v8 team for node 7.x and older.
Starting in version 1.04 the Dockerfile was changed to use node:8-alpine, which appears to not have the issues with v8.

If you're still having issues with this please leave a comment.

@abrongersma : Just re-pulled and tried again. It was still failing prior to the pull and is now working. Thanks!