dockerfiles
tmc / dockerfiles Goto Github PK
View Code? Open in Web Editor NEWmy dockerfiles
my dockerfiles
dockerfiles
This may be a documentation issue (if I just need to have done something else), or an issue with the container.
Running with the recommended "sudo docker pull base/chef-server ; sudo docker run -d -p 443:443 base/chef-server", the server spins up, but errors when I enter the correct default administrative login.
If I attach, I get the following errors constantly (tens to hundreds per second)
2014-07-19_22:20:40.45343 =ERROR REPORT==== 19-Jul-2014::22:20:40 ===
2014-07-19_22:20:40.45345 Unable to start database connection: {error,
2014-07-19_22:20:40.45352 {{badmatch,{error,econnrefused}},
2014-07-19_22:20:40.45354 [{pgsql_sock,init,1,
2014-07-19_22:20:40.45359 [{file,"src/pgsql_sock.erl"},
2014-07-19_22:20:40.45361 {line,51}]},
2014-07-19_22:20:40.45364 {gen_server,init_it,6,
2014-07-19_22:20:40.45368 [{file,"gen_server.erl"},{line,304}]},
2014-07-19_22:20:40.45370 {proc_lib,init_p_do_apply,3,
2014-07-19_22:20:40.45379 [{file,"proc_lib.erl"},
2014-07-19_22:20:40.45386 {line,227}]}]}}
My physical machine already has a running postgres instance, if that matters or not.
It looks like it's expecting something for a database, and not connecting. Is there some db config I'm missing, or is this legitimately a container-side issue?
Hi
Some many people including me been waiting for a new release of the docker image of base/archlinux
Is there any chance to know if you will update the image at sometime?
Thanks!
PS: Comments about it on https://registry.hub.docker.com/u/base/archlinux/
Running the following fails due to certificate error:
$ pacman --noconfirm -Sy archlinux-keyring
$ pacman --noconfirm -Syu
$ pacman-db-upgrade
$ pacman --noconfirm -S WHATEVER
error: failed to update core (download library error)
error: failed retrieving file 'extra.db' from mirrors.kernel.org : error setting certificate verify locations:
CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: none
Hi
I'm trying to build my own docker base image from an ArchLinux (64bit, latest release (2014.11.01), all updates done via pacman -Syu
).
I'm using is the official script which I found here: https://registry.hub.docker.com/u/base/archlinux/ --> https://github.com/docker/docker/blob/master/contrib/mkimage-arch.sh .
I'm executing this script (together with the mkimage-arch-pacman.conf
) from a "real" ArchLinux (VirtualBox) as root.
I always get the error:
.....
==> Updating trust database...
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0 valid: 1 signed: 5 trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1 valid: 5 signed: 61 trust: 0-, 0q, 0n, 5m, 0f, 0u
gpg: depth: 2 valid: 60 signed: 4 trust: 60-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2015-03-31
umount: /var/tmp/rootfs-archlinux-fORD04yCL0/dev: target is busy
(In some cases useful info about processes that
use the device is found by lsof(8) or fuser(1).)
umount: /var/tmp/rootfs-archlinux-fORD04yCL0: target is busy
(In some cases useful info about processes that
use the device is found by lsof(8) or fuser(1).)
mount: udev is already mounted or /var/tmp/rootfs-archlinux-fORD04yCL0/dev busy
udev is already mounted on /var/tmp/rootfs-archlinux-fORD04yCL0/dev
udev is already mounted on /var/tmp/rootfs-archlinux-fORD04yCL0/dev
==> ERROR: failed to setup API filesystems in chroot /var/tmp/rootfs-archlinux-fORD04yCL0
It looks like the error happens in line 39
in the mkimage-arch.sh
script:
arch-chroot $ROOTFS /bin/sh -c "haveged -w 1024; pacman-key --init; pkill haveged; pacman -Rs --noconfirm haveged; pacman-key --populate archlinux"
I really have no idea what I should/could do about this. I tried googling it, I tried asking in archlinux and docker IRC but nobody could help me.
I'm not a linux guru so I have no idea what could be wrong in this script, as far as I can see it looks fine to me.
Also I almost can't believe, that the official script contains an error.
Maybe my ArchLinux needs to be set up in a special way or something like that?
Thanks in advance for any help!
Reference post:
https://forums.docker.com/t/creating-base-image-from-archlinux-script-not-working/
#base/archlinux
FROM scratch
MAINTAINER Travis Cline <[email protected]>
ADD archlinux-2014.07.03.tar.xz /
$ docker build -t "ml-coursera:dockerfile" .
Sending build context to Docker daemon 3.072 kB
Step 0 : FROM scratch
--->
Step 1 : MAINTAINER Travis Cline <[email protected]>
---> Running in fc3e3f93af20
---> 0849d1e02a79
Removing intermediate container fc3e3f93af20
Step 2 : ADD archlinux-2014.07.03.tar.xz /
archlinux-2014.07.03.tar.xz: no such file or directory
Hi,
Since yours is the "base" (therefore semi-oficial) container for Archlinux and due to the shellshock bash fixes, I think the containers for arch (and dev) should be updated to ensure minimal security risks.
Thanks in advance.
Hi! I am having some problems trying to generate a docker container with chefserver using the dockerfile provided. I have clone the repo and when I try to generate the container (command 'docker build -t chefserver chef-server/'
) it sticks in STEP 9 doing the chef-server-ctl reconfigure. The last line it shows is '[2014-08-04T11:17:00+00:00] INFO: link[/opt/chef-server/service/rabbitmq] created'
.
I had tried to install chef-server manually in some containers and it got stuck also doing the chef-server-ctl in 'ruby_block[supervise_rabbitmq_sleep]'
. It's two actions later in chef execution but I think both tries stop in that point but I see two lines before when building the container.
Any help with the issue? I have been able to run chef-server pulling the image from docker hub but I was wondering to install it and build manually the container.
Thanks!
Hi @tmc,
would you mind updating the ArchLinux system? ArchLinux got major changes during the past year, which often required manual changes. So the current docker image is unusable in terms of compatibility.
Although you're not in debt to do this, it would help the docker infrastructure. The problem is, that this image is available on docker hub via base/archlinux
. Albeit base
is not an official name on docker hub, most people get tricked into thinking, cause no real official image is available.
Although you're not liable, I'd request to update the docker images.
If any PRs would help, I'd be glad helping you with this.
All packages:
[root@arch /]# pacman -Q | wc -l
96
Upgrade process: Look at
[root@dcbde0a4afbf /]# pacman -Syu
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Starting full system upgrade...
:: Replace dirmngr with core/gnupg? [Y/n]
:: Replace libdbus with core/dbus? [Y/n]
:: Replace lzo2 with core/lzo? [Y/n]
resolving dependencies...
looking for inter-conflicts...
Packages (108): acl-2.2.52-3 archlinux-keyring-20161201-1 attr-2.4.47-2 bash-4.4.005-1 ca-certificates-20160507-1 ca-certificates-cacert-20140824-4 ca-certificates-mozilla-3.27.2-1
ca-certificates-utils-20160507-1 coreutils-8.26-1 cracklib-2.9.6-1 curl-7.51.0-2 db-5.3.28-3 dbus-1.10.14-1 device-mapper-2.02.168-1 dhcpcd-6.11.3-1 diffutils-3.5-1
dirmngr-1.1.1-2 [removal] e2fsprogs-1.43.3-1 expat-2.2.0-2 file-5.29-1 filesystem-2016.12-2 findutils-4.6.0-2 gawk-4.1.4-2 gcc-libs-6.2.1-1 gdbm-1.12-2 gettext-0.19.8.1-2
glib2-2.50.2-1 glibc-2.24-2 gmp-6.1.1-1 gnupg-2.1.16-1 gnutls-3.4.17-1 gpgme-1.7.1-2 grep-2.26-1 gzip-1.8-2 hwids-20161103-1 iana-etc-20161101-1 icu-58.2-1 inetutils-1.9.4-5
iproute2-4.8.0-1 iptables-1.6.0-1 iputils-20161105.1f2bb12-1 kbd-2.0.3-1 kmod-23-1 krb5-1.13.7-1 less-487-1 libarchive-3.2.1-2 libassuan-2.4.3-1 libcap-2.25-1 libdbus-1.8.6-1 [removal]
libelf-0.167-1 libffi-3.2.1-2 libgcrypt-1.7.3-1 libgpg-error-1.25-1 libidn-1.33-1 libksba-1.3.4-2 libldap-2.4.44-2 libmnl-1.0.4-1 libnftnl-1.0.6-1 libpsl-0.15.0-6 libsasl-2.1.26-8
libseccomp-2.3.1-1 libsecret-0.18.5-1 libssh2-1.8.0-1 libsystemd-232-6 libtasn1-4.9-2 libtirpc-1.0.1-2 libunistring-0.9.6-2 libusb-1.0.21-1 libutil-linux-2.28.2-2
linux-api-headers-4.7-1 logrotate-3.10.0-1 lz4-1:1.7.4.2-1 lzo-2.09-1 lzo2-2.08-1 [removal] mpfr-3.1.5-1 nano-2.7.1-1 ncurses-6.0+20161203-1 netctl-1.12-2 nettle-3.3-1 npth-1.3-1
openresolv-3.8.1-1 openssl-1.0.2.j-1 p11-kit-0.23.2-1 pacman-5.0.1-4 pacman-mirrorlist-20161211-1 pam-1.3.0-1 pcre-8.39-2 perl-5.24.0-2 pinentry-1.0.0-1 popt-1.16-8 procps-ng-3.3.12-1
psmisc-22.21-3 readline-7.0.001-1 run-parts-4.8.1-1 sed-4.2.2-4 shadow-4.4-3 sqlite-3.15.2-1 systemd-232-6 systemd-sysvcompat-232-6 tar-1.29-2 texinfo-6.3-1 tzdata-2016j-1
usbutils-008-1 util-linux-2.28.2-2 vi-1:070224-2 which-2.21-2 xz-5.2.2-2 zlib-1:1.2.8-7
Total Download Size: 40.92 MiB
Total Installed Size: 406.42 MiB
Net Upgrade Size: 148.92 MiB
:: Proceed with installation? [Y/n] ^C
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.