alpine

How do I compile the time.c on Alpine?

可紊 提交于 2019-12-13 03:26:53
问题 I don't like the built-in time utility in Alpine Linux and would like to improve it for my needs -- I want to edit the time.c and compile it to a binary. I have done the apk add build-base to install the gcc and have copypasted the time.c from Github, but when I do the gcc /tmp/time.c -o /tmp/time I get the: /tmp/time.c:34:10: fatal error: libbb.h: No such file or directory #include "libbb.h" ^~~~~~~~~ So I copypasted it too but it relies on dozens more header files. I saw somewhere that I

Gradle build fails in jenkins:alpine container: UnsatisfiedLinkError: linux-amd64/libnative-platform.so: libstdc++.so.6:

倾然丶 夕夏残阳落幕 提交于 2019-12-12 19:14:46
问题 Recently I started using Jenkins in a Docker container with Oracle Java 8. When building a project with Gradle I get this error message: UnsatisfiedLinkError: linux-amd64/libnative-platform.so: libstdc++.so.6: cannot open shared object file: No such file or directory In Jenkins I selected "Force GRADLE_USER_HOME to use workspace" with no luck at all. The file libnative-platform.so is in the directory expected but gradle won't work. I tried installing Gradle in the container and same result.

Lightweight GCC for Alpine

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 18:30:22
问题 Is there a lightweight GCC distribution that I can install in Alpine? I am trying to make a small Docker image. For that reason, I am using Alpine as the base image (5MB). The standard GCC install dwarfs this in comparison (>100MB). So is there a lightweight GCC distribution that I can install on Alpine? Note: Clang is much worse (475MB last I checked). 回答1: There isn't such an image available, AFAIK, but you can make GCC slimmer by deleting unneeded GCC binaries. It very much depends on what

Alpine unsatisfiable constraints: missing packages

邮差的信 提交于 2019-12-12 13:22:44
问题 I am trying to create a docker image based on alpine:3.7 , but I get errors while installing some packages with apk add . Example: ERROR: unsatisfiable constraints: apache2-suexec (missing): required by: world[apache2-suexec-custom] host (missing): required by: world[host] lpr (missing): required by: world[lpr] time (missing): required by: world[time] The cause is that these packages do not exist in alpine repositories yet. How can I solve these issues? Is there any repository from which I

node-serialport failing on alpine linux

☆樱花仙子☆ 提交于 2019-12-12 09:38:10
问题 I am working on a small nodejs (nodejs v4.3) project that is using node-serialport https://github.com/voodootikigod/node-serialport. I wrapped it in a docker image. First I successfully used debian as a base image but it had a total size of about 600MB. Then I switched to alpine linux https://hub.docker.com/_/alpine/ and achieved 100MB of image size. However the nodejs project stopped working with alpine as base image. Here are some logs: Install node-serialport log: > serialport@2.0.6

How do I install libgit2 on Alipne linux

不羁岁月 提交于 2019-12-12 02:45:17
问题 I am new to Docker and trying to use an Alpine docker image for my project. I am getting the following error when I am try to build the project. gopkg.in/libgit2/git2go.v22 # pkg-config --cflags libgit2 pkg-config: exec: "pkg-config": executable file not found in $PATH I think I need to install libgit2 but I am not able to: bash-4.3# apk add libgit2 ERROR: unsatisfiable constraints: libgit2 (missing): required by: world[libgit2] Thanks for any help. -dj 回答1: libgit2 is not present in either

undefined references to `strerror_s' while building lua-openssl on alpine image

戏子无情 提交于 2019-12-11 19:56:44
问题 I am trying to build an openresty alpine image with lua-openssl like so FROM openresty/openresty:alpine-fat # Set the version ENV RESTY_CONFIG_OPTIONS_MORE "--with-ngx_http_ssl_module" EXPOSE 80 EXPOSE 443 RUN ls /usr/local/openresty/nginx/logs COPY lualib /usr/local/openresty/nginx/lualib RUN chown -R nobody:root /usr/local/openresty/nginx/lualib RUN apk add --update \ openssl openssl-dev \ lua5.3 luajit-dev lua-socket \ git RUN git clone https://github.com/zhaozg/lua-openssl.git /usr/local

precompiled golang on alpine

六月ゝ 毕业季﹏ 提交于 2019-12-11 17:04:52
问题 I'm trying to write a dockerfile that uses alpine and takes advantage of a precompiled golang. docker run -it alpine:latest wget https://dl.google.com/go/go1.12.9.linux-amd64.tar.gz --no-check-certificate tar -C /usr/local/ -xzf go1*.tar.gz I'm getting /bin/sh/: ./go: not found cd /usr/local/go/bin/ ./go It works fine on my ubuntu laptop so I'm unsure what the difference is here. I did a quick google and I could not find anything clear that points to something missing. 回答1: Alpine is built

PostgreSQL unterminated quoted identifier

夙愿已清 提交于 2019-12-11 14:56:18
问题 I have this groovy code which drops a remote postgres schema from commandline: def dropSchema = "psql --dbname=postgres://$user:$pass@localhost:$port/$targetDb -c \"DROP SCHEMA ${applicationName}_${uid} CASCADE;\"".execute() This code is working fine when it's run on a windows machine, but when it's on a Linux distribution, it gives me these errors: psql: warning: extra command-line argument "appName_uid" ignored psql: warning: extra command-line argument "CASCADE;"" ignored ERROR:

Unable to run node-gdal on Alpine Linux: “__printf_chk: symbol not found”

给你一囗甜甜゛ 提交于 2019-12-11 06:07:26
问题 I'm trying to add Gitlab CI for my project using node-gdal (Node.js bindings for GDAL). CI configuration is based on Alpine Linux docker image due to performance reasons but I'm unable to get it working. Gitlab CI job fails while running Node.js script that requires node-gdal with the following error: internal/modules/cjs/loader.js:718 return process.dlopen(module, path.toNamespacedPath(filename)); ^ Error: Error relocating /builds/project-0/node_modules/gdal/lib/binding/node-v64-linux-x64