alpine

Gitlab-ci alpine image : Host key verification failed

試著忘記壹切 提交于 2019-12-11 04:28:52
问题 In gitlab I build my job with a maven image , then copy the jar to the ssh server -> it works fine. For a php project, I try to use alpine image . But I get rejected with ' Host key verification failed '. The server and the key are the same. Not working : image: alpine:latest stages: - deploy deploy: before_script: - apk add --update openssh-client bash - eval $(ssh-agent -s) - bash -c 'ssh-add <(echo "$SSH_PRIVATE_KEY")' stage: deploy script: - ssh root@devsb01 "ls" Working : image: maven:3

Copy ffmpeg bins in multistage docker build

别等时光非礼了梦想. 提交于 2019-12-11 00:16:27
问题 I'm trying to install ffmpeg via a multistage docker build Here is the ffmpeg image that contains the ffmpeg binaries FROM jrottenberg/ffmpeg Here is the pm2 image that I need to run my web server FROM keymetrics/pm2:8-alpine I copy the bins into the current image, and I can see that ffmpeg, ffserver, and ffprobe all exist in /usr/local/bin. COPY --from=0 /usr/local /usr/local The copy command appears to succeed, since those files exist when I run the container interactively. $# which ffmpeg

How to pass through environment variables in docker run through an env file?

烂漫一生 提交于 2019-12-10 19:16:55
问题 Given this Dockerfile: FROM alpine:3.7 ENV LAST_UPDATED=2018-02-22 ARG XDG_CACHE_HOME=/tmp/cache/ RUN apk update && \ apk add libxslt && \ apk add sed && \ apk add py-pip && \ apk add mariadb-client && \ apk add bash bash-doc bash-completion && \ pip install httpie && \ rm -rf /var/cache/apk/* WORKDIR /usr/deleter/ COPY delete.sh ./ ENTRYPOINT ["/usr/deleter/delete.sh"] I expected to be able to pass multiple variables through an .env file with the key=value format. $ cat stage.env MYSQL

pip install wheel randomly fails

别等时光非礼了梦想. 提交于 2019-12-10 18:58:32
问题 I have a python project that I have packaged locally as a wheel, and I want to install this wheel in a virtual environment in a docker container, based off python:alpine3.7. My problem is that sometimes i works, and sometimes it fails to resolve the dependencies in the wheel, seemingly at random. The dependencies for the wheel is: _install_requires = [ 'numpy>=1.15.0', 'pandas>=0.21.0', 'scipy>=1.0.0', 'scikit-learn>=0.19.2' ] And my dockerfile is as follows: FROM python:alpine3.7 # install

Looking for a package in Alpine linux for installing numpy

拥有回忆 提交于 2019-12-10 18:06:34
问题 I've been searching all over the internet to find numpy package for the Alpine linux, did not find any, so Ii tried to install it from the source by cloning git, faced with numerous problems! so it came to my mind to ask the community about whether there is any package in Alpine linux distro in order to install numpy as part of it?! 回答1: so as it is mentioned in comments for the first post, the steps are as follows: apk add --update py-pip pip install numpy 回答2: you can find py-numpy by

Install php7-gd in alpine

夙愿已清 提交于 2019-12-10 14:05:34
问题 This is my Dockerfile FROM php:7.1-fpm-alpine RUN docker-php-ext-install mysqli RUN echo "http://dl-4.alpinelinux.org/alpine/edge/community/" >> /etc/apk/repositories && apk update && \ apk upgrade && \ apk add --update \ php7-gd mysqli is ok, but it does not load GD library. I also find gd.so in alpine container, please check the image: Please help 回答1: You should not mix Alpine Linux 3.4, Alpine Linux edge and PHP compiled from source. Solution 1 Use the official latest release of Alpine

Getting apt-get on an alpine container

妖精的绣舞 提交于 2019-12-10 13:25:50
问题 I have to install a few dependencies on my docker container, I want to use python:3.6-alpine version to have it as light as possible, but apk package manager which comes with alpine is giving me trouble so I would like to get the apt-get package manager. I tried: apk add apt-get and it didnt work. how can I get it on the container? 回答1: Using multiple package systems is usually a very bad idea, for many reasons. Packages are likely to collide and break and you'll end up with much greater mess

Docker containers: how do they work together?

前提是你 提交于 2019-12-10 07:16:04
问题 I have started working with docker and built a working example as seen in https://codeable.io/wordpress-developers-intro-docker. I need a quite small footprint of the docker containers since the deployment will be on an emebedded system. But I have no clue about how this fits together. There are two Dockerfiles, one for Nginx: FROM nginx:1.9-alpine COPY nginx.conf /etc/nginx/conf.d/default.conf The nginx.conf is defined as: server { server_name _; listen 80 default_server; root /var/www/html;

Issue installing MongoDB on alpine

纵饮孤独 提交于 2019-12-08 14:49:29
RUN echo 'http://dl-cdn.alpinelinux.org/alpine/v3.6/community' >> /etc/apk/repositories RUN apk update RUN apk add mongodb==3.4.4-r0 RUN mongo --version it show errors ERROR: unsatisfiable constraints: so:libboost_chrono-mt.so.1.62.0 (missing): required by: mongodb-3.4.4-r0[so:libboost_chrono-mt.so.1.62.0] so:libboost_filesystem-mt.so.1.62.0 (missing): required by: mongodb-3.4.4-r0[so:libboost_filesystem-mt.so.1.62.0] so:libboost_iostreams-mt.so.1.62.0 (missing): required by: mongodb-3.4.4-r0[so:libboost_iostreams-mt.so.1.62.0] so:libboost_program_options-mt.so.1.62.0 (missing): required by:

How do I install XDebug on docker's official php-fpm-alpine image?

故事扮演 提交于 2019-12-08 14:38:02
问题 I'm using wordpress:php7.1-fpm-alpine which is based on php:7.1-fpm-alpine (https://github.com/docker-library/wordpress/blob/master/php7.1/fpm-alpine/Dockerfile). I've tried RUN pecl install xdebug-2.5.0 && docker-php-ext-enable xdebug which results in an error when building: Step 19/19 : RUN pecl install xdebug-2.5.0 && docker-php-ext-enable xdebug ---> Running in 52c988e12cb2 downloading xdebug-2.5.0.tgz ... Starting to download xdebug-2.5.0.tgz (267,640 bytes) .............................