alpine

How do I install python on alpine linux?

柔情痞子 提交于 2021-02-18 20:13:01
问题 How do I install python3 and python3-pip on an alpine based image (without using a python image)? $ apk add --update python3.8 python3-pip ERROR: unsatisfiable constraints: python3-pip (missing): required by: world[python3-pip] python3.8 (missing): required by: world[python3.8] 回答1: This is what I use in a Dockerfile for an alpine image: # Install python/pip ENV PYTHONUNBUFFERED=1 RUN apk add --update --no-cache python3 && ln -sf python3 /usr/bin/python RUN python3 -m ensurepip RUN pip3

How do I install python on alpine linux?

家住魔仙堡 提交于 2021-02-18 20:08:05
问题 How do I install python3 and python3-pip on an alpine based image (without using a python image)? $ apk add --update python3.8 python3-pip ERROR: unsatisfiable constraints: python3-pip (missing): required by: world[python3-pip] python3.8 (missing): required by: world[python3.8] 回答1: This is what I use in a Dockerfile for an alpine image: # Install python/pip ENV PYTHONUNBUFFERED=1 RUN apk add --update --no-cache python3 && ln -sf python3 /usr/bin/python RUN python3 -m ensurepip RUN pip3

Php7 Redis Client on Alpine OS

丶灬走出姿态 提交于 2021-02-18 13:37:07
问题 I crafted a docker image using alpine 3.5 as base Image. I want my php apllication running inside container to communicate with a redis server.But I don't find any php7-redis client in Alpine. Is there a workway around it ?I tried to use pecl to install redis but there is no pecl package in alpine.I tried with pear but pear doesn't have redis package. Any thoughts on this issue ? 回答1: You can find your solution here https://pkgs.alpinelinux.org/package/edge/community/x86_64/php7-redis 回答2:

Php7 Redis Client on Alpine OS

一笑奈何 提交于 2021-02-18 13:36:12
问题 I crafted a docker image using alpine 3.5 as base Image. I want my php apllication running inside container to communicate with a redis server.But I don't find any php7-redis client in Alpine. Is there a workway around it ?I tried to use pecl to install redis but there is no pecl package in alpine.I tried with pear but pear doesn't have redis package. Any thoughts on this issue ? 回答1: You can find your solution here https://pkgs.alpinelinux.org/package/edge/community/x86_64/php7-redis 回答2:

Alpine Linux fonts

自作多情 提交于 2021-02-09 07:24:29
问题 How to install fonts for all languages? This is what I do, but no Japanese fonts in Chrome. From this image: https://github.com/Zenika/alpine-chrome/blob/master/Dockerfile FROM zenika/alpine-chrome USER root RUN apk add --no-cache msttcorefonts-installer fontconfig RUN update-ms-fonts # Installs latest Chromium package. RUN apk add --no-cache \ msttcorefonts-installer fontconfig \ font-noto \ font-noto-adlam \ font-noto-adlamunjoined \ font-noto-arabic \ font-noto-armenian \ font-noto-avestan

Catching SIGTERM from alpine image

元气小坏坏 提交于 2021-02-07 20:24:07
问题 I was trying to catch SIGTERM signal from a docker instance (basically when docker stop is called) but couldn't find a way since I have different results for each try I performed. Following is the setup I have Dockerfile FROM gitlab/gitlab-runner:alpine COPY ./start.sh /start.sh ENTRYPOINT ["/start.sh"] start.sh #!/bin/bash deregister_runner() { echo "even if nothing happened, something happened" exit } trap deregister_runner SIGTERM while true; do sleep 10 done Now I build the docker image $

Installing GCC from source on Alpine

时光毁灭记忆、已成空白 提交于 2021-02-07 05:28:17
问题 While trying to install GCC 6.4.0 on Alpine, I run into: checking for the correct version of gmp.h... yes checking for the correct version of mpfr.h... yes checking for the correct version of mpc.h... yes checking for the correct version of the gmp/mpfr/mpc libraries... no But in /usr/lib , which seems to be the standard lookup directory, I have: libgmp.a libgmp.so libgmp.so.10 libgmp.so.10.3.2 libmpc.so.3 libmpc.so.3.0.0 libmpfr.so.4 libmpfr.so.4.1.5 What could be wrong? 回答1: The quickest

How can we install google-chrome-stable on alpine image in dockerfile using dpkg?

為{幸葍}努か 提交于 2021-02-06 19:57:02
问题 I am trying to install google-chrome-stable on alpine image using dpkg. However, the dpkg is installed but it does not install google-chrome-stable and return this error instead? Is there a way to install google-chrome-stable in alpine image either using dpkg or other way? dpkg: regarding google-chrome-stable_current_amd64.deb containing google-chrome-stable:amd64, pre-dependency problem: google-chrome-stable:amd64 pre-depends on dpkg (>= 1.14.0) dpkg: error processing archive google-chrome

In Docker image names what is the difference between Alpine, Jessie, Stretch, and Buster?

岁酱吖の 提交于 2021-02-05 20:46:31
问题 I am just looking at docker images in https://hub.docker.com/_/node/ For every version, the images are categorized into Alpine, Jessie, Stretch, Buster etc. What's their meaning? 回答1: Those are the names of the OS in the container in which Node will be running. Alpine is for Alpine Linux, Jessie and Stretch are versions of Debian. If you scroll down on the documentation link you provided, you'll find a section describing what Alpine is and why you might want to use it. 回答2: In docker-Context

Use asyncpg python module in alpine docker image

て烟熏妆下的殇ゞ 提交于 2021-01-29 16:36:56
问题 I'm trying to build an image based on python:3-8.alpine , using the python module asyncpg . Here is a part of my Dockerfile: FROM python:3.8-alpine RUN apk add gcc RUN apk add python3-dev RUN pip3 install asyncpg I added gcc and python3-dev because I think I need them to be able to build asyncpg according to the documentation : https://magicstack.github.io/asyncpg/current/installation.html (but i'm not sure of that, I think I should be able to install without building this module) But I have