alpine

ERROR: unsatisfiable constraints - on php:7-fpm-alpine

拥有回忆 提交于 2019-12-05 08:48:42
I'm looking at setting up laravel on an fpm-alpine container. Running into a snag where the below Dockerfile is producing some errors... FROM php:7-fpm-alpine # install extensions needed for Laravel RUN apk --update add \ php7-mysqli \ php7-mcrypt \ php7-mbstring \ rm /var/cache/apk/* Errors produced are: Building fpm Step 1 : FROM php:7-fpm-alpine ---> 9e6811cb8bac Step 2 : RUN apk --update add php7-mysqli php7-mcrypt php7-mbstring rm /var/cache/apk/* ---> Running in 87364957eb57 fetch http://dl-cdn.alpinelinux.org/alpine/v3.3/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org

alpine package py-pip missing

丶灬走出姿态 提交于 2019-12-04 22:26:32
Im trying to install python pip in my alpine using Docker compose file but get the following error. ERROR: unsatisfiable constraints: py-pip (missing): required by: world[py-pip] ERROR: Service 'web' failed to build: The command '/bin/sh -c apk add py-pip' returned a non-zero code: 1 Do update first: apk add --update py-pip Or: apk update apk add py-pip user2601130 For python3 on alpine edge: apk add py3-setuptools For me --no-cache option worked. apk add --no-cache py-pip 来源: https://stackoverflow.com/questions/44633903/alpine-package-py-pip-missing

Add mod_rewrite to Docker image httpd:alpine

≡放荡痞女 提交于 2019-12-04 18:06:28
I have almost no experience with Alpine Linux, to be honest, but I like its approach and therefore want to change that. I'm also relatively new to Docker, so please bear with me if this is a "stupid" question. What I would like to achieve is building upon the httpd:alpine image and extending the HTTPd to my needs. That would include activating the mod_rewrite module and copying a custom .htaccess into the image. Here is what I have so far: FROM httpd:alpine # Copy .htaccess into DocumentRoot COPY ./.htaccess /var/www/html/ RUN apk update RUN apk upgrade RUN apk add apache2-utils RUN a2enmod

How to deploy a Laravel Web Application on Alpine Linux using Docker?

做~自己de王妃 提交于 2019-12-04 07:39:13
I am successfully deploying a Laravel Web Application on ECS using a base image from PHP, in particular 7.3-apache-stretch from https://hub.docker.com/_/php/ Being well aware of the discussion about Alpine Linux Images in Docker (granting significative reductions in the final image dimension), I wanted to give it a run, to see how it performed. Unfortunately, while with the CLI version it was very easy (using 7.3-cli-alpine3.9 ), there is no apache-enabled version. What I would need is a Dockerfile to use as a base for my developments. Apache Only Browsing SO, I found How do I run Apache 2 on

Why is the Java 11 base Docker image so large? (openjdk:11-jre-slim)

天涯浪子 提交于 2019-12-04 07:24:09
问题 Java 11 is announced to be the most recent LTS version. So, we're trying to start new services based on this Java version. However, the base Docker image for Java 11 is much larger than the equivalent for Java 8: openjdk:8-jre-alpine: 84 MB openjdk:11-jre-slim: 283 MB (I'm considering only the official OpenJDK and the most lightweight images for each Java version.) Deeper digging uncovered the following "things": the openjdk:11-jre-slim image uses the base image debian:sid-slim . This brings

GDB failed to load so files and errors No such file or directory

左心房为你撑大大i 提交于 2019-12-04 06:14:25
问题 I am loading a core file into GDB inside a docker container with alpine linux. Initially my gdb complained about binary not found, then i followed this discussion gdb During startup program exited with code 127 and installed libc6-compat, even though I have a 64-bit linux and my interpreter for the binary is 64-bit [Requesting program interpreter: /lib64/ld-linux-x86-64.so.2] That actually worked but now i get the same error for the .so files. I can see that .so files are in the path set on

Alpine 3.3, Python 2.7.11, urllib2 causing SSL: CERTIFICATE_VERIFY_FAILED

安稳与你 提交于 2019-12-04 02:56:02
问题 I have this small Dockerfile FROM alpine:3.3 RUN apk --update add python CMD ["python", "-c", "import urllib2; response = urllib2.urlopen('https://www.python.org')"] Building it with docker build -t alpine-py/01 . and then running it with docker run -it --rm alpine-py/01 creates the following output Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen return opener.open(url, data, timeout) File "/usr/lib/python2.7

Docker image with python & alpine failure due missing compiler error

醉酒当歌 提交于 2019-12-04 02:44:58
I'm looking for a docker image with both python3 and a crontab. When I use python:latest as a base, I have no cron, but all required python packages install without problem. When I use alpine as a base I have the (busybox) cron working, but are unable to install specific python package due to compiler error. The same applies when I use python:alpine . Collecting pynacl>=1.0.1 (from paramiko->-r required_python_packages.txt (line 6)) Downloading PyNaCl-1.1.2.tar.gz (3.1MB) Complete output from command python setup.py egg_info: No working compiler found, or bogus compiler options passed to the

Alpine variants of PHP and Apache/httpd in Docker

爷,独闯天下 提交于 2019-12-03 12:22:58
I am experimenting with Docker and want to move from a local MAMP stack to Docker. Of course I stumbled upon the official php:7.0 image but I want to use Apache as well so it seems as if php:7.0-apache is the way to go. However I saw that there is an image called php:7.0-alpine which is much slimmer while there are two versions for Apache as well namely httpd:2.4 and httpd:2.4-alpine . Is there any suggested combination to use both Apache and PHP (either separated or combined) while still having small image sizes? Furthermore I would like to know where I can review the available modules in the

Installing numpy on Docker Alpine

China☆狼群 提交于 2019-12-03 10:50:29
问题 I'm trying to install numpy in a docker container based on Alpine 3.1. I'm using the following Dockerfile: FROM alpine:3.1 RUN apk add --update make cmake gcc g++ gfortran RUN apk add --update python py-pip python-dev RUN pip install cython RUN pip install numpy This runs fine until pip install numpy when I get the following error: error: Command "gcc -fno-strict-aliasing -Os -fomit-frame-pointer -DNDEBUG -Os -fomit-frame-pointer -fPIC -Inumpy/core/include -Ibuild/src.linux-x86_64-2.7/numpy