Advertisement
Guest User

glibc lua on Alpine

a guest
Oct 17th, 2021
416
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.01 KB | None | 0 0
  1. Sending build context to Docker daemon 4.096kB
  2. Step 1/14 : FROM alpine:3.14 AS builder
  3. ---> 14119a10abf4
  4. Step 2/14 : WORKDIR /usr/local/bin
  5. ---> Using cache
  6. ---> 72cc971de163
  7. Step 3/14 : RUN wget -O curl https://github.com/moparisthebest/static-curl/releases/download/v7.79.1/curl-amd64 && chmod +x curl
  8. ---> Using cache
  9. ---> d8986a99160f
  10. Step 4/14 : RUN wget -O lua-format https://github.com/Koihik/vscode-lua-format/raw/master/bin/linux/lua-format && chmod +x lua-format
  11. ---> Using cache
  12. ---> 36f9b4a1fd7b
  13. Step 5/14 : RUN wget -O stylua-0.11.0-linux.zip https://github.com/JohnnyMorganz/StyLua/releases/download/v0.11.0/stylua-0.11.0-linux.zip && unzip stylua-0.11.0-linux.zip && rm stylua-0.11.0-linux.zip && chmod +x stylua
  14. ---> Using cache
  15. ---> c86278f7d2cf
  16. Step 6/14 : RUN wget -O selene-light-0.14.0-linux.zip https://github.com/Kampfkarren/selene/releases/download/0.14.0/selene-light-0.14.0-linux.zip && unzip selene-light-0.14.0-linux.zip && rm selene-light-0.14.0-linux.zip && chmod +x selene
  17. ---> Using cache
  18. ---> d666ee34878e
  19. Step 7/14 : RUN curl -k -o lua-5.4.2_Linux54_64_bin.tar.gz -L https://sourceforge.net/projects/luabinaries/files/5.4.2/Tools%20Executables/lua-5.4.2_Linux54_64_bin.tar.gz && tar xvf lua-5.4.2_Linux54_64_bin.tar.gz && mv lua54 lua && rm -rf lua-5.4.2_Linux54_64_bin.tar.gz luac54
  20. ---> Using cache
  21. ---> 9a0158300e5c
  22. Step 8/14 : RUN wget -O luarocks-3.7.0-linux-x86_64.zip https://luarocks.github.io/luarocks/releases/luarocks-3.7.0-linux-x86_64.zip && unzip luarocks-3.7.0-linux-x86_64.zip && mv luarocks-3.7.0-linux-x86_64/luarocks . && rm -rf luarocks-3.7.0-linux-x86_64*
  23. ---> Using cache
  24. ---> eefbc4d72f70
  25. Step 9/14 : FROM alpine:3.14
  26. ---> 14119a10abf4
  27. Step 10/14 : COPY --from=builder /usr/local/bin /usr/local/bin
  28. ---> Using cache
  29. ---> 453e87e7738e
  30. Step 11/14 : ENV GLIBC_REPO=https://github.com/sgerrand/alpine-pkg-glibc
  31. ---> Running in a2cd9cff6bff
  32. Removing intermediate container a2cd9cff6bff
  33. ---> cd0f8662fe3e
  34. Step 12/14 : ENV GLIBC_VERSION=2.30-r0
  35. ---> Running in bc3c7a030c9e
  36. Removing intermediate container bc3c7a030c9e
  37. ---> 0fc72d020d7e
  38. Step 13/14 : RUN set -ex && apk --update add libstdc++ curl ca-certificates && for pkg in glibc-${GLIBC_VERSION} glibc-bin-${GLIBC_VERSION}; do curl -sSL ${GLIBC_REPO}/releases/download/${GLIBC_VERSION}/${pkg}.apk -o /tmp/${pkg}.apk; done && apk add --allow-untrusted /tmp/*.apk && rm -v /tmp/*.apk && /usr/glibc-compat/sbin/ldconfig /lib /usr/glibc-compat/lib
  39. ---> Running in 1e43afd3ad73
  40. + apk --update add libstdc++ curl ca-certificates
  41. fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz
  42. fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz
  43. (1/7) Installing ca-certificates (20191127-r5)
  44. (2/7) Installing brotli-libs (1.0.9-r5)
  45. (3/7) Installing nghttp2-libs (1.43.0-r0)
  46. (4/7) Installing libcurl (7.79.1-r0)
  47. (5/7) Installing curl (7.79.1-r0)
  48. (6/7) Installing libgcc (10.3.1_git20210424-r2)
  49. (7/7) Installing libstdc++ (10.3.1_git20210424-r2)
  50. Executing busybox-1.33.1-r3.trigger
  51. Executing ca-certificates-20191127-r5.trigger
  52. OK: 10 MiB in 21 packages
  53. + curl -sSL https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.30-r0/glibc-2.30-r0.apk -o /tmp/glibc-2.30-r0.apk
  54. + curl -sSL https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.30-r0/glibc-bin-2.30-r0.apk -o /tmp/glibc-bin-2.30-r0.apk
  55. + apk add --allow-untrusted /tmp/glibc-2.30-r0.apk /tmp/glibc-bin-2.30-r0.apk
  56. (1/2) Installing glibc (2.30-r0)
  57. (2/2) Installing glibc-bin (2.30-r0)
  58. Executing glibc-bin-2.30-r0.trigger
  59. /usr/glibc-compat/sbin/ldconfig: /usr/glibc-compat/lib/ld-linux-x86-64.so.2 is not a symbolic link
  60.  
  61. OK: 21 MiB in 23 packages
  62. + rm -v /tmp/glibc-2.30-r0.apk /tmp/glibc-bin-2.30-r0.apk
  63. removed '/tmp/glibc-2.30-r0.apk'
  64. removed '/tmp/glibc-bin-2.30-r0.apk'
  65. + /usr/glibc-compat/sbin/ldconfig /lib /usr/glibc-compat/lib
  66. /usr/glibc-compat/sbin/ldconfig: /usr/glibc-compat/lib/ld-linux-x86-64.so.2 is not a symbolic link
  67.  
  68. Removing intermediate container 1e43afd3ad73
  69. ---> da52f85d43d7
  70. Step 14/14 : WORKDIR /ataraxis
  71. ---> Running in 548a3ca952ca
  72. Removing intermediate container 548a3ca952ca
  73. ---> a95f24149622
  74. Successfully built a95f24149622
  75. Successfully tagged alpine-lua-test4:latest
  76. shahar@shahar-ubuntu:~/SO/16_lua$ sudo docker run -it alpine-lua-test4
  77. /ataraxis # cd /usr/local/bin
  78. /usr/local/bin # ./luarocks
  79. Warning: Lua 5.3 interpreter not found at /usr
  80.  
  81. Modules may not install with the correct configurations. You may want to configure the path prefix to your build of Lua 5.3 using
  82.  
  83. luarocks config --local lua_dir <your-lua-prefix>
  84.  
  85.  
  86. Usage: luarocks [-h] [--version] [--dev] [--server <server>]
  87. [--only-server <server>] [--only-sources <url>]
  88. [--namespace <namespace>] [--lua-dir <prefix>]
  89. [--lua-version <ver>] [--tree <tree>] [--local] [--global]
  90. [--verbose] [--timeout <seconds>] [--pin] [<command>] ...
  91.  
  92. LuaRocks 3.7.0, the Lua package manager
  93.  
  94. luarocks - LuaRocks main command-line interface
  95.  
  96. Options:
  97. -h, --help Show this help message and exit.
  98. --version Show version info and exit.
  99. --dev Enable the sub-repositories in rocks servers for
  100. rockspecs of in-development versions.
  101. --server <server> Fetch rocks/rockspecs from this server (takes priority
  102. over config file).
  103. --only-server <server>
  104. Fetch rocks/rockspecs from this server only (overrides
  105. any entries in the config file).
  106. --only-sources <url> Restrict downloads to paths matching the given URL.
  107. --namespace <namespace>
  108. Specify the rocks server namespace to use.
  109. --lua-dir <prefix> Which Lua installation to use.
  110. --lua-version <ver> Which Lua version to use.
  111. --tree <tree> Which tree to operate on.
  112. --local Use the tree in the user's home directory.
  113. To enable it, see 'luarocks help path'.
  114. --global Use the system tree when `local_by_default` is `true`.
  115. --verbose Display verbose output of commands executed.
  116. --timeout <seconds> Timeout on network operations, in seconds.
  117. 0 means no timeout (wait forever). Default is 30.
  118. --pin Create a luarocks.lock file listing the exact versions
  119. of each dependency found for this rock (recursively),
  120. and store it in the rock's directory. Ignores any
  121. existing luarocks.lock file in the rock's sources.
  122.  
  123. Commands:
  124. help Show help for commands.
  125. completion Output a shell completion script.
  126. build Build/compile a rock.
  127. config Query information about the LuaRocks configuration.
  128. doc Show documentation for an installed rock.
  129. download Download a specific rock file from a rocks server.
  130. init Initialize a directory for a Lua project using
  131. LuaRocks.
  132. install Install a rock.
  133. lint Check syntax of a rockspec.
  134. list List currently installed rocks.
  135. make Compile package in current directory using a rockspec.
  136. new_version Auto-write a rockspec for a new version of a rock.
  137. pack Create a rock, packing sources or binaries.
  138. path Return the currently configured package path.
  139. purge Remove all installed rocks from a tree.
  140. remove Uninstall a rock.
  141. search Query the LuaRocks servers.
  142. show Show information about an installed rock.
  143. test Run the test suite in the current directory.
  144. unpack Unpack the contents of a rock.
  145. upload Upload a rockspec to the public rocks repository.
  146. which Tell which file corresponds to a given module name.
  147. write_rockspec Write a template for a rockspec file.
  148.  
  149. Variables:
  150. Variables from the "variables" table of the configuration file can be
  151. overridden with VAR=VALUE assignments.
  152.  
  153. Configuration:
  154. Lua:
  155. Version : 5.3
  156. Interpreter: /usr/bin/lua53 (not found)
  157. LUA_DIR : /usr (ok)
  158. ****************************************
  159. Use the command
  160.  
  161. luarocks config lua_dir <dir>
  162.  
  163. to fix the location
  164. ****************************************
  165. LUA_BINDIR : /usr/bin (ok)
  166. LUA_INCDIR : (not found)
  167. LUA_LIBDIR : (not found)
  168.  
  169. Configuration files:
  170. System : /usr/local/etc/luarocks/config-5.3.lua (not found)
  171. User : /root/.luarocks/config-5.3.lua (not found)
  172.  
  173. Rocks trees in use:
  174. /root/.luarocks ("user")
  175.  
  176. /usr/local/bin #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement