alpine

ERROR: unsatisfiable constraints using apk in dockerfile

混江龙づ霸主 提交于 2020-01-31 06:25:12
问题 I'm trying to install postgis into a postgres container. Dockerfile: FROM postgres:9.6.4-alpine RUN apk update \ && apk add -u postgresql-9.6-postgis-2.4 postgresql-9.6-postgis-2.4-scripts \ && rm -rf /var/lib/apt/lists/* COPY ./scripts/postgis.sh /docker-entrypoint-initdb.d/postgis.sh postgis.sh: #!/bin/sh for DB in $(psql -t -c "SELECT datname from pg_database where datname = 'backend'"); do echo "Loading PostGIS extensions into $DB" "${psql[@]}" --dbname="$DB" <<-'EOSQL' CREATE EXTENSION

ERROR: unsatisfiable constraints when installing PostGIS on the Alpine Docker image

◇◆丶佛笑我妖孽 提交于 2020-01-29 17:50:22
问题 Ok, so the task seems pretty easy! Use an Alpine image (as it is light-weight and secure) to perform some PostgreSQL DB creation/migrations. I'm using the following Dockerfile using the code here: FROM alpine:latest RUN apk add -U postgresql # install PostGIS ENV POSTGIS_VERSION 2.5.2 ENV POSTGIS_SHA256 225aeaece00a1a6a9af15526af81bef2af27f4c198de820af1367a792ee1d1a9 RUN set -ex \ \ && apk add --no-cache --virtual .fetch-deps \ ca-certificates \ openssl \ tar \ \ && wget -O postgis.tar.gz

ERROR: unsatisfiable constraints when installing PostGIS on the Alpine Docker image

梦想的初衷 提交于 2020-01-29 17:47:11
问题 Ok, so the task seems pretty easy! Use an Alpine image (as it is light-weight and secure) to perform some PostgreSQL DB creation/migrations. I'm using the following Dockerfile using the code here: FROM alpine:latest RUN apk add -U postgresql # install PostGIS ENV POSTGIS_VERSION 2.5.2 ENV POSTGIS_SHA256 225aeaece00a1a6a9af15526af81bef2af27f4c198de820af1367a792ee1d1a9 RUN set -ex \ \ && apk add --no-cache --virtual .fetch-deps \ ca-certificates \ openssl \ tar \ \ && wget -O postgis.tar.gz

standard_init_linux.go:211:exec user process caused “no such file or directory” with alpine linux and python

浪尽此生 提交于 2020-01-25 08:34:10
问题 I have a directory which contains the docker file, a attack.py and a requirements.txt. Using that, I created the following dockerfile: FROM arm64v8/python:3.7-alpine COPY qemu-arm-static /usr/bin COPY ./ app-ids WORKDIR /app-ids RUN pip install --no-cache-dir -r requirements.txt CMD["python","./attack.py"] However, the pip install line throws: standard_init_linux.go:211:exec user process caused "no such file or directory" I can't figure out why. Using commands like ls, pwd and so on in an

No Such Host: Docker daemon can't access kubernetes registry but wget on the same node can connect to the registry

拈花ヽ惹草 提交于 2020-01-24 20:47:26
问题 I have an Alpine Linux based node on a single node kubernetes cluster(for testing). I have a private docker registry installed within my cluster at docker-registry.default:5000 . I can login to the alpine node and use wget and access my private docker registry. kubectl exec -it pod/nuclio-dashboard-5c5c48947b-lpgx8 -- /bin/sh / # wget -qO- https://docker:mypassword@docker-registry.default:5000/v2/_catalog {"repositories":["nuclio/processor-helloworld3"]} But I can't seem to access it using

pip install ortools: No matching distribution - Alpine

对着背影说爱祢 提交于 2020-01-16 20:56:26
问题 In a docker I try to run pip install ortools and it can't be found. Other pip install packages work flawlessly. I use "FROM python:3.6.8-alpine" in my Dockerfile bash-4.4# pip install ortools Collecting ortools ERROR: Could not find a version that satisfies the requirement ortools (from versions: none) ERROR: No matching distribution found for ortools bash-4.4# pip install --upgrade pip Requirement already up-to-date: pip in /usr/local/lib/python3.6/site-packages (19.1.1) Root cause: Gooogle

No such file or directory “limits.h” when installing Pillow on Alpine Linux

自闭症网瘾萝莉.ら 提交于 2020-01-11 15:39:10
问题 I'm running alpine-linux on a Raspberry Pi 2. I'm trying to install Pillow via this command: pip install pillow This is the output from the command: Installing collected packages: pillow Running setup.py install for pillow Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-gNq0WA/pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-nDKwei-record

Running geckodriver in an Alpine docker container

倖福魔咒の 提交于 2020-01-11 06:55:11
问题 I'm trying to run GeckoDriver v0.26.0 inside an Alpine 3.10 docker container, specifically python:3.6.6-alpine3.10 . After figuring some things out, I've hit a wall: / # geckodriver --version Error relocating /usr/bin/geckodriver: __register_atfork: symbol not found Error relocating /usr/bin/geckodriver: __res_init: symbol not found What am I missing? How I got here First spin up the docker container: docker run -it python:3.6.9-alpine3.10 /bin/sh Then try installing GeckoDriver / # wget

Docker: Using apt-key with alpine image

限于喜欢 提交于 2020-01-06 04:56:06
问题 I'm trying to use alpine (nodeJS) docker image, but I do get the error /bin/sh: apt-key: not found . What do I have to add? FROM node:8.6-alpine RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6 回答1: You could use something as follows: apk add --no-cache gnupg gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 0C49F3730359A14518585931BC711F9BA15703C6 回答2: There’s no apt-key on Alpine, this is something from Debian. 来源: https:/

Cannot exchange AccessToken from Google API inside Docker container

ぃ、小莉子 提交于 2020-01-04 06:32:38
问题 I have a web app written in Go, use oauth2 (package golang.org/x/oauth2 ) to sign user in by Google (follow this tutorial https://developers.google.com/identity/sign-in/web/server-side-flow). When I test app on local, it works fine but when I deploy app and run inside a Docker container (base on alpine:latest , run binary file), it has an error: Post https://accounts.google.com/o/oauth2/token: x509: certificate signed by unknown authority Here is my code to exchange the accessToken: ctx =