alpine

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

混江龙づ霸主 提交于 2019-12-22 06:38:03
问题 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:

How do I build a static Go binary for the Docker Alpine image?

半世苍凉 提交于 2019-12-21 17:02:07
问题 I want to build a Go 1.9.2 binary and run it on the Docker Alpine image. The Go code I wrote doesn't call any C code. It also uses the net package. Unfortunately it hasn't been as simple as it sounds as Go doesn't seem to quite build static binaries all the time. When I try to execute the binary I often get cryptic messages for why the binary didn't execute. There's quite a bit of information on the internet about this but most of it ends up with people using trial an error to make their

Redis cluster with docker swarm using docker compose

时光怂恿深爱的人放手 提交于 2019-12-21 13:09:25
问题 I'm just learning docker and all of its goodness like swarm and compose. My intention is to create a Redis cluster in docker swarm. Here is my compose file - version: '3' services: redis: image: redis:alpine command: ["redis-server","--appendonly yes","--cluster-enabled yes","--cluster-node-timeout 60000","--cluster-require-full-coverage no"] deploy: replicas: 5 restart_policy: condition: on-failure ports: - 6379:6379 - 16379:16379 networks: host: external: true If I add the network: - host

How do I run Apache 2 on Alpine in Docker?

浪子不回头ぞ 提交于 2019-12-21 03:33:26
问题 According to Alpine wiki I have to run rc-service apache2 start after installation of Apache 2. However, there's no rc-service in the Alpine running inside the container. How do I get the service command to run inside Docker container? 回答1: gliderlabs/docker-alpine issue 183 illustrate the docker Alpine image has no service or rc-service . You can see instead nimmis/docker-alpine-apache based on nimmis/docker-alpine-micro, which includes a runit, used to handle starting and shutting down

How to upgrade npm to npm@5 on the latest node docker image?

牧云@^-^@ 提交于 2019-12-20 18:41:46
问题 Locally, I have successfully installed npm@5 via: $ npm install npm@5 -g $ npm -v $ 5.0.0 And locally, I can run the npm setup just fine (it's basically npm i && tsc ) $ npm run setup updated 102 packages in 3.499s Yet now I also have a Dockerfile based upon the node:7.10-alpine image which breaks if I try to install npm@5 there. My Dockerfile looks like this: FROM node:7.10-alpine WORKDIR /usr/hive-updater/ ENV LAST_UPDATED=2016-12-08 NPM_CONFIG_LOGLEVEL=warn TERM=xterm PATH="$PATH:/usr/hive

Alpine Add Package from Edge repository

点点圈 提交于 2019-12-20 10:44:28
问题 If I'm using Alpine 3.8, how can I add a specific package from the Alpine Edge repository? Is this even supported? There is no equivalent of backports, from what I can see. I want to add the new version of this: https://pkgs.alpinelinux.org/package/edge/community/armhf/librdkafka And not the older version in the 3.8 repo: https://pkgs.alpinelinux.org/package/v3.8/community/s390x/librdkafka 回答1: You could specify the exact repo to apk, using the --repository parameter. In your case: apk add

How do I run a Bash script in an Alpine Docker container?

依然范特西╮ 提交于 2019-12-18 13:53:14
问题 I have a directory containing only two files, Dockerfile and sayhello.sh : . ├── Dockerfile └── sayhello.sh The Dockerfile reads FROM alpine COPY sayhello.sh sayhello.sh CMD ["sayhello.sh"] and sayhello.sh contains simply echo hello The Dockerfile builds successfully: kurtpeek@Sophiemaries-MacBook-Pro ~/d/s/trybash> docker build --tag trybash . Sending build context to Docker daemon 3.072 kB Step 1/3 : FROM alpine ---> 665ffb03bfae Step 2/3 : COPY sayhello.sh sayhello.sh ---> Using cache --->

Installed Go binary not found in path on Alpine Linux Docker

牧云@^-^@ 提交于 2019-12-18 10:05:27
问题 I've got a Go binary I'm trying to run on the Alpine Docker image. This works fine for the Docker Go binary. docker run -it alpine:3.3 sh apk add --no-cache curl DOCKER_BUCKET=get.docker.com DOCKER_VERSION=1.9.1 curl -fSL "https://${DOCKER_BUCKET}/builds/Linux/x86_64/docker-$DOCKER_VERSION" -o /usr/local/bin/docker chmod +x /usr/local/bin/docker docker help Usage: docker [OPTIONS] COMMAND [arg...] ... However, for the Go binary I want to install. RACK_BUCKET=ec4a542dbf90c03b9f75

Why does it take ages to install Pandas on Alpine Linux

我与影子孤独终老i 提交于 2019-12-17 15:22:09
问题 I've noticed that installing Pandas and Numpy (it's dependency) in a Docker container using the base OS Alpine vs. CentOS or Debian takes much longer. I created a little test below to demonstrate the time difference. Aside from the few seconds Alpine takes to update and download the build dependencies to install Pandas and Numpy, why does the setup.py take around 70x more time than on Debian install? Is there any way to speed up the install using Alpine as the base image or is there another

Alpine variants of PHP and Apache/httpd in Docker

只谈情不闲聊 提交于 2019-12-13 11:40:35
问题 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