crazy-max / docker-syntaxhighlighter

🐳 Docker image to build SyntaxHighlighter javascript plugin
MIT License
4 stars 1 forks source link

build fail #2

Closed myname1614 closed 5 years ago

myname1614 commented 5 years ago

I am noob in docker. I tried by your manual:

sudo docker run -it --rm \
  -v "$(pwd)/sxh:/syntaxhighlighter/dist" \
  crazymax/syntaxhighlighter:latest

but see in console like this:

[21:21:17] Failed to load external module @babel/register
[21:21:17] Requiring external module babel-register
[21:21:17] Using gulpfile /syntaxhighlighter/gulpfile.babel.js
[21:21:17] Starting 'build'...
Segmentation fault (core dumped)
mv: can't rename 'dist/theme.css': No such file or directory
[21:21:17] Failed to load external module @babel/register
[21:21:17] Requiring external module babel-register
[21:21:18] Using gulpfile /syntaxhighlighter/gulpfile.babel.js
[21:21:18] Starting 'build'...
Segmentation fault (core dumped)
mv: can't rename 'dist/theme.css': No such file or directory
[21:21:18] Failed to load external module @babel/register
[21:21:18] Requiring external module babel-register
[21:21:19] Using gulpfile /syntaxhighlighter/gulpfile.babel.js
[21:21:19] Starting 'build'...
Segmentation fault (core dumped)
mv: can't rename 'dist/theme.css': No such file or directory
[21:21:19] Failed to load external module @babel/register
[21:21:19] Requiring external module babel-register
[21:21:19] Using gulpfile /syntaxhighlighter/gulpfile.babel.js
[21:21:19] Starting 'build'...
Segmentation fault (core dumped)
mv: can't rename 'dist/theme.css': No such file or directory
[21:21:20] Failed to load external module @babel/register
[21:21:20] Requiring external module babel-register
[21:21:20] Using gulpfile /syntaxhighlighter/gulpfile.babel.js
[21:21:20] Starting 'build'...
Segmentation fault (core dumped)
mv: can't rename 'dist/theme.css': No such file or directory
[21:21:21] Failed to load external module @babel/register
[21:21:21] Requiring external module babel-register
[21:21:21] Using gulpfile /syntaxhighlighter/gulpfile.babel.js
[21:21:21] Starting 'build'...
Segmentation fault (core dumped)
mv: can't rename 'dist/theme.css': No such file or directory
[21:21:22] Failed to load external module @babel/register
[21:21:22] Requiring external module babel-register
[21:21:22] Using gulpfile /syntaxhighlighter/gulpfile.babel.js
[21:21:22] Starting 'build'...
Segmentation fault (core dumped)
mv: can't rename 'dist/theme.css': No such file or directory
crazy-max commented 5 years ago

@myname1614 What is you run docker run -it --rm crazymax/syntaxhighlighter:latest ?

myname1614 commented 5 years ago

sorry, I bad speak english. I enter the command:

docker pull crazymax/syntaxhighlighter

After it, I enter:

 docker run -it --rm \
  -v "$(pwd)/sxh:/syntaxhighlighter/dist" \
 crazymax/syntaxhighlighter:latest

and expect to receive js files with brushes, etc...

crazy-max commented 5 years ago

Can you create a bug report please ?

myname1614 commented 5 years ago

I try...

Behaviour

Steps to reproduce this issue

  1. ubuntu without docker

  2. apt install docker-ce docker-ce-cli containerd.io

  3. docker pull crazymax/syntaxhighlighter

  4. $ docker run -it --rm \
    -v "$(pwd)/sxh:/syntaxhighlighter/dist" \
    crazymax/syntaxhighlighter:latest
  5. cd sxh

  6. ls -la

    total 468
    drwxr-xr-x  2 root root   4096 Jul 22 00:17 ./
    drwxrwxrwt 16 root root  53248 Jul 22 23:29 ../
    -rw-r--r--  1 root root  94034 Jul 22 01:13 index.html
    -rw-r--r--  1 root root 126952 Jul 22 01:13 syntaxhighlighter.js
    -rw-r--r--  1 root root 196453 Jul 22 01:13 syntaxhighlighter.js.map

Expected behaviour

generated syntaxhighlighter files - themes, brushes...

Actual behaviour

[21:21:17] Failed to load external module @babel/register
[21:21:17] Requiring external module babel-register
[21:21:17] Using gulpfile /syntaxhighlighter/gulpfile.babel.js
[21:21:17] Starting 'build'...
Segmentation fault (core dumped)
mv: can't rename 'dist/theme.css': No such file or directory
[21:21:17] Failed to load external module @babel/register
[21:21:17] Requiring external module babel-register
[21:21:18] Using gulpfile /syntaxhighlighter/gulpfile.babel.js
[21:21:18] Starting 'build'...
Segmentation fault (core dumped)
mv: can't rename 'dist/theme.css': No such file or directory
[21:21:18] Failed to load external module @babel/register
[21:21:18] Requiring external module babel-register
[21:21:19] Using gulpfile /syntaxhighlighter/gulpfile.babel.js
[21:21:19] Starting 'build'...
Segmentation fault (core dumped)
mv: can't rename 'dist/theme.css': No such file or directory
[21:21:19] Failed to load external module @babel/register
[21:21:19] Requiring external module babel-register
[21:21:19] Using gulpfile /syntaxhighlighter/gulpfile.babel.js
[21:21:19] Starting 'build'...
Segmentation fault (core dumped)
mv: can't rename 'dist/theme.css': No such file or directory
[21:21:20] Failed to load external module @babel/register
[21:21:20] Requiring external module babel-register
[21:21:20] Using gulpfile /syntaxhighlighter/gulpfile.babel.js
[21:21:20] Starting 'build'...
Segmentation fault (core dumped)
mv: can't rename 'dist/theme.css': No such file or directory
[21:21:21] Failed to load external module @babel/register
[21:21:21] Requiring external module babel-register
[21:21:21] Using gulpfile /syntaxhighlighter/gulpfile.babel.js
[21:21:21] Starting 'build'...
Segmentation fault (core dumped)
mv: can't rename 'dist/theme.css': No such file or directory
[21:21:22] Failed to load external module @babel/register
[21:21:22] Requiring external module babel-register
[21:21:22] Using gulpfile /syntaxhighlighter/gulpfile.babel.js
[21:21:22] Starting 'build'...
Segmentation fault (core dumped)
mv: can't rename 'dist/theme.css': No such file or directory

Configuration

Docker info

Containers: 3
 Running: 0
 Paused: 0
 Stopped: 3
Images: 3
Server Version: 18.09.8
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 894b81a4b802e4eb2a91d1ce216b8817763c29fb
runc version: 425e105d5a03fabd737a126ad93d62a9eeede87f
init version: fec3683
Security Options:
 apparmor
 seccomp
  Profile: default
Kernel Version: 4.4.0-143-generic
Operating System: Ubuntu 16.04.6 LTS
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 3.857GiB
ID: D7WA:MW2S:VOLC:ZVBD:7DVD:HOTJ:BDU4:J7JL:ZRNK:3XZT:EKQP:EDA2
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine

WARNING: No swap limit support

Logs

docker container logs 3fa1ac041362

Cloning into 'repos/brush-halcon'...
Cloning into 'repos/brush-IEC61131'...
Cloning into 'repos/brush-kotlin'...
Cloning into 'repos/brush-latex'...
Cloning into 'repos/brush-Makefile'...
Cloning into 'repos/brush-mel'...
Cloning into 'repos/brush-objective-c'...
Cloning into 'repos/brush-yaml'...
=========================
Brushes: applescript,as3,base,bash,coldfusion,cpp,csharp,css,delphi,diff,erlang,groovy,haxe,java,javafx,javascript,perl,php,plain,powershell,python,ruby,sass,scala,sql,swift,tap,typescript,vb,xml,repos/brush-halcon/brush.js,repos/brush-IEC61131/brush.js,repos/brush-kotlin/brush.js,repos/brush-latex/brush.js,repos/brush-Makefile/brush.js,repos/brush-mel/brush.js,repos/brush-objective-c/brush.js,repos/brush-yaml/brush.js
=========================
Themes: default django eclipse emacs fadetogrey mdultra midnight rdark swift
=========================
[21:10:31] Failed to load external module @babel/register
[21:10:31] Requiring external module babel-register
[21:10:31] Using gulpfile /syntaxhighlighter/gulpfile.babel.js
[21:10:31] Starting 'build'...
Segmentation fault (core dumped)
mv: can't rename 'dist/theme.css': No such file or directory
[21:10:32] Failed to load external module @babel/register
[21:10:32] Requiring external module babel-register
[21:10:32] Using gulpfile /syntaxhighlighter/gulpfile.babel.js
[21:10:32] Starting 'build'...
Segmentation fault (core dumped)
mv: can't rename 'dist/theme.css': No such file or directory
[21:10:33] Failed to load external module @babel/register
[21:10:33] Requiring external module babel-register
[21:10:33] Using gulpfile /syntaxhighlighter/gulpfile.babel.js
[21:10:33] Starting 'build'...
Segmentation fault (core dumped)
mv: can't rename 'dist/theme.css': No such file or directory
[21:10:34] Failed to load external module @babel/register
[21:10:34] Requiring external module babel-register
[21:10:34] Using gulpfile /syntaxhighlighter/gulpfile.babel.js
[21:10:34] Starting 'build'...
Segmentation fault (core dumped)
mv: can't rename 'dist/theme.css': No such file or directory
[21:10:34] Failed to load external module @babel/register
[21:10:34] Requiring external module babel-register
[21:10:35] Using gulpfile /syntaxhighlighter/gulpfile.babel.js
[21:10:35] Starting 'build'...
Segmentation fault (core dumped)
mv: can't rename 'dist/theme.css': No such file or directory
[21:10:35] Failed to load external module @babel/register
[21:10:35] Requiring external module babel-register
[21:10:35] Using gulpfile /syntaxhighlighter/gulpfile.babel.js
[21:10:36] Starting 'build'...
Segmentation fault (core dumped)
mv: can't rename 'dist/theme.css': No such file or directory
[21:10:36] Failed to load external module @babel/register
[21:10:36] Requiring external module babel-register
[21:10:36] Using gulpfile /syntaxhighlighter/gulpfile.babel.js
[21:10:36] Starting 'build'...
Segmentation fault (core dumped)
mv: can't rename 'dist/theme.css': No such file or directory
[21:10:37] Failed to load external module @babel/register
[21:10:37] Requiring external module babel-register
[21:10:37] Using gulpfile /syntaxhighlighter/gulpfile.babel.js
[21:10:37] Starting 'build'...
Segmentation fault (core dumped)
mv: can't rename 'dist/theme.css': No such file or directory
[21:10:38] Failed to load external module @babel/register
[21:10:38] Requiring external module babel-register
[21:10:38] Using gulpfile /syntaxhighlighter/gulpfile.babel.js
[21:10:38] Starting 'build'...
Segmentation fault (core dumped)
mv: can't rename 'dist/theme.css': No such file or directory
[21:10:39] Failed to load external module @babel/register
[21:10:39] Requiring external module babel-register
[21:10:39] Using gulpfile /syntaxhighlighter/gulpfile.babel.js
[21:10:39] Starting 'build'...
[21:10:40] Brushes: applescript, as3, base, bash, coldfusion, cpp, csharp, css, delphi, diff, erlang, groovy, haxe, java, javafx, javascript, perl, php, plain, powershell, python, ruby, sass, scala, sql, swift, tap, typescript, vb, xml, repos/brush-halcon/brush.js, repos/brush-IEC61131/brush.js, repos/brush-kotlin/brush.js, repos/brush-latex/brush.js, repos/brush-Makefile/brush.js, repos/brush-mel/brush.js, repos/brush-objective-c/brush.js, repos/brush-yaml/brush.js
[21:10:40] Hash: 9063c1671498f200b383
Version: webpack 1.15.0
Time: 1241ms
                   Asset    Size  Chunks             Chunk Names
    syntaxhighlighter.js  127 kB       0  [emitted]  main
syntaxhighlighter.js.map  196 kB       0  [emitted]  main
chunk    {0} syntaxhighlighter.js, syntaxhighlighter.js.map (main) 120 kB [rendered]
    [0] ./src/index.js 1.18 kB {0} [built]
    [1] ./src/core.js 6.88 kB {0} [built]
    [2] ./repos/opts-parser/opts-parser.js 1.5 kB {0} [built]
    [3] ./repos/syntaxhighlighter-regex/index.js 1.16 kB {0} [built]
    [4] ./repos/syntaxhighlighter-regex/xregexp.js 67.8 kB {0} [built]
    [5] ./repos/syntaxhighlighter-match/index.js 659 bytes {0} [built]
    [6] ./repos/syntaxhighlighter-match/lib/match.js 1.19 kB {0} [built]
    [7] ./repos/syntaxhighlighter-match/lib/apply-regex-list.js 1.05 kB {0} [built]
    [8] ./repos/syntaxhighlighter-match/lib/matches.js 2.67 kB {0} [built]
    [9] ./repos/syntaxhighlighter-html-renderer/index.js 9.67 kB {0} [built]
   [10] ./src/utils.js 2.3 kB {0} [built]
   [11] ./src/transformers/index.js 538 bytes {0} [built]
   [12] ./src/transformers/trim.js 316 bytes {0} [built]
   [13] ./src/transformers/blogger_mode.js 186 bytes {0} [built]
   [14] ./src/transformers/strip_brs.js 181 bytes {0} [built]
   [15] ./repos/unindenter/unindenter.js 955 bytes {0} [built]
   [16] ./repos/retabber/retabber.js 1.4 kB {0} [built]
   [17] ./src/dom.js 6.76 kB {0} [built]
   [18] ./src/config.js 311 bytes {0} [built]
   [19] ./src/defaults.js 1 kB {0} [built]
   [20] ./src/html_script.js 1.72 kB {0} [built]
   [21] ./~/process/browser.js 5.45 kB {0} [built]
   [22] ./repos/brush-base/brush-base.js 2.78 kB {0} [built]
   [23] ./~/domready/ready.js 1.13 kB {0} [built]
   [24] ./src/dasherize.js 526 bytes {0} [built]
   [25] ./src/compatibility_layer_v3.js 478 bytes {0} [built]
[21:10:40] Finished 'build' after 1.41 s
total 420
drwxr-xr-x    2 root     root          4096 Jul 21 21:10 .
drwxr-xr-x    1 root     root          4096 Feb  4 21:41 ..
-rw-r--r--    1 root     root             1 Feb  4 21:40 .gitignore
-rw-r--r--    1 root     root         94034 Jul 21 21:10 index.html
-rw-r--r--    1 root     root        126952 Jul 21 21:10 syntaxhighlighter.js
-rw-r--r--    1 root     root        196453 Jul 21 21:10 syntaxhighlighter.js.map
crazy-max commented 5 years ago

Pull the latest tag. Your issue should be fixed.

myname1614 commented 5 years ago

thanx, all is good.

[20:10:07] Finished 'build' after 2.39 s
total 888
drwxr-xr-x    2 root     root          4096 Jul 23 20:10 .
drwxr-xr-x    1 root     root          4096 Jul 22 21:38 ..
-rw-r--r--    1 root     root         94034 Jul 23 20:10 index.html
-rw-r--r--    1 root     root        285507 Jul 23 20:10 syntaxhighlighter.js
-rw-r--r--    1 root     root        407650 Jul 23 20:10 syntaxhighlighter.js.map
-rw-r--r--    1 root     root          9094 Jul 23 20:09 theme-default.css
-rw-r--r--    1 root     root          9264 Jul 23 20:09 theme-django.css
-rw-r--r--    1 root     root          9474 Jul 23 20:09 theme-eclipse.css
-rw-r--r--    1 root     root          9120 Jul 23 20:09 theme-emacs.css
-rw-r--r--    1 root     root          9197 Jul 23 20:09 theme-fadetogrey.css
-rw-r--r--    1 root     root          9118 Jul 23 20:09 theme-mdultra.css
-rw-r--r--    1 root     root          9141 Jul 23 20:09 theme-midnight.css
-rw-r--r--    1 root     root          9135 Jul 23 20:09 theme-rdark.css
-rw-r--r--    1 root     root         10151 Jul 23 20:10 theme-swift.css