Dokkuアプリを起動するときにapt-get
のパッケージをインストールしようとしています。apt-getはdocker + dokkuのカスタムsources.listを使用してパッケージを見つけることができません
クイックコンテキスト:私はDokku、<the-app>/.buildpacks
で使用してい
Buildpacks:私はインストールしたい
https://github.com/auricapps/heroku-buildpack-apt
https://github.com/heroku/heroku-buildpack-python
パッケージ、<the-app>/Aptfile
:
libxml2-dev
libxmlsec1-dev
libxslt1-dev
pkg-config
python3-dev
zlib1g-dev
トラブルシューティングには、私はソースリポジトリが/etc/apt/sources.list
とで利用できないことに気付きました私はHeroku Apt buildpackをビルドして、カスタムソースリストを使用できるようにしました。 Hereはカスタムビルドパックであり、Sourcefile
を追加してカスタムsources.list
を許可するために行った変更はhereです。私は含めてい
ソース、<the-app>/Sourcefile
:
deb http://archive.ubuntu.com/ubuntu trusty main restricted
deb-src http://archive.ubuntu.com/ubuntu trusty main restricted
deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu trusty-updates main restricted
deb http://archive.ubuntu.com/ubuntu trusty universe
deb-src http://archive.ubuntu.com/ubuntu trusty universe
deb http://archive.ubuntu.com/ubuntu trusty-updates universe
deb-src http://archive.ubuntu.com/ubuntu trusty-updates universe
deb http://archive.ubuntu.com/ubuntu trusty multiverse
deb-src http://archive.ubuntu.com/ubuntu trusty multiverse
deb http://archive.ubuntu.com/ubuntu trusty-updates multiverse
deb-src http://archive.ubuntu.com/ubuntu trusty-updates multiverse
deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu trusty-security main
deb-src http://security.ubuntu.com/ubuntu trusty-security main
deb http://security.ubuntu.com/ubuntu trusty-security universe
deb-src http://security.ubuntu.com/ubuntu trusty-security universe
問題:
はしかし、まだapt-get install
として喜びはまだ私がインストールしたいパッケージを見つけることができなかったことを語り合う場です。
Counting objects: 127, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (117/117), done.
Writing objects: 100% (127/127), 18.22 KiB | 0 bytes/s, done.
Total 127 (delta 51), reused 0 (delta 0)
-----> Cleaning up...
-----> Building security-test from herokuish...
-----> Adding BUILD_ENV to build environment...
-----> Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used.
Detected buildpacks: multi python
-----> Multipack app detected
remote: ownloading Buildpack: https://github.com/auricapps/heroku-buildpack-apt
=====> Detected Framework: Apt
-----> Found Sourcefile, temporarily using it as sources.list
...
remote: etching .debs for libxml2-dev
Reading package lists...
Building dependency tree...
remote: E: Unable to locate package libxml2-dev
remote: etching .debs for libxmlsec1-dev
Reading package lists...
Building dependency tree...
remote: E: Unable to locate package libxmlsec1-dev
remote: etching .debs for libxslt1-dev
Reading package lists...
Building dependency tree...
remote: E: Unable to locate package libxslt1-dev
remote: etching .debs for pkg-config
Reading package lists...
Building dependency tree...
remote: E: Unable to locate package pkg-config
remote: etching .debs for python3-dev
Reading package lists...
Building dependency tree...
remote: E: Unable to locate package python3-dev
remote: etching .debs for zlib1g-dev
Reading package lists...
Building dependency tree...
remote: E: Unable to locate package zlib1g-dev
...
ヒント/ヒントどうもありがとう!
ドッカーファイルを含めてください。 – BMitch
Dockerファイルは[herokuish](https://github.com/gliderlabs/herokuish)の上に構築するためにデフォルトを使用するDokkuアプリですので、Dockerfileは[こちら](https://github.com/gliderlabs/)になりますherokuish/blob/master/Dockerfile)。 –
なぜそれらをマシンのソースリストに直接追加しないのですか?アプリだけではない? – xploshioOn