foundationdb icon indicating copy to clipboard operation
foundationdb copied to clipboard

Dockerfile Instructionss

Open panghy opened this issue 8 years ago • 5 comments

Not sure if there's a place that is documenting the build steps but we have been using the Dockerfile under build and one critical step that's missing is the need to have

export CC=/opt/x-toolchain/bin/x86_64-nptl-linux-gnu-gcc export CXX=/opt/x-toolchain/bin/x86_64-nptl-linux-gnu-g++

For it to work.

panghy avatar Mar 22 '18 18:03 panghy

We are in the process of defining a Linux-build Dockerfile for the repository which does not have the aforementioned toolchain requirement. PR https://github.com/apple/foundationdb/pull/122

AlvinMooreSr avatar Mar 29 '18 17:03 AlvinMooreSr

Cool, thanks

panghy avatar Apr 08 '18 22:04 panghy

We have since added the Linux build instructions (#156). We moved the CC setting stuff into the docker image, so I don't think you need that any more. I guess let us know if things are working out for you and if we can then close the issue.

alecgrieser avatar Apr 19 '18 18:04 alecgrieser

I had problems building the docker image.

First time:-

Step 2/16 : RUN sed -i -e 's/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' -e 's/us\.old/old/g' /etc/apt/sources.list && apt-get clean && apt-get update
 ---> Running in ffdd24efda9d

Err http://old-releases.ubuntu.com vivid InRelease

Err http://old-releases.ubuntu.com vivid-updates InRelease

Err http://old-releases.ubuntu.com vivid-security InRelease

Err http://old-releases.ubuntu.com vivid Release.gpg
  Temporary failure resolving 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com vivid-updates Release.gpg
  Temporary failure resolving 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com vivid-security Release.gpg
  Temporary failure resolving 'old-releases.ubuntu.com'
Reading package lists...
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/vivid/InRelease

W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/vivid-updates/InRelease

W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/vivid-security/InRelease

W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/vivid/Release.gpg  Temporary failure resolving 'old-releases.ubuntu.com'

W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/vivid-updates/Release.gpg  Temporary failure resolving 'old-releases.ubuntu.com'

W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/vivid-security/Release.gpg  Temporary failure resolving 'old-releases.ubuntu.com'

W: Some index files failed to download. They have been ignored, or old ones used instead.
 ---> 2109a922a6f2

Second time:

Sending build context to Docker daemon 49.66 kB
Step 1/16 : FROM ubuntu:15.04
 ---> d1b55fd07600
Step 2/16 : RUN sed -i -e 's/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' -e 's/us\.old/old/g' /etc/apt/sources.list && apt-get clean && apt-get updatehe
 ---> 2109a922a6f2
Step 3/16 : RUN apt-get --no-install-recommends install -y --force-yes bzip2 ca-certificates=20141019 adduser apt base-files base-passwd bash binutils build-essential cpp cpp-4.9 dpkg dos2unix fakeroot findutils g++=4:4.9.2-2ubuntu2 g++-4.9=4.9.2-10ubuntu13 gawk=1:4.1.1+dfsg-1 gcc-5-base gcc=4:4.9.2-2ubuntu2 gcc-4.9=4.9.2-10ubuntu13 gcc-4.9-base:amd64=4.9.2-10ubuntu13 gcc-5-base:amd64=5.1~rc1-0ubuntu1 gdb git golang golang-go golang-go-linux-amd64 golang-src grep gzip hostname java-common libasan1 liblsan0 libtsan0 libubsan0 libcilkrts5 libgcc-4.9-dev libstdc++-4.9-dev libgl1-mesa-dri libgl1-mesa-glx libmono-system-xml-linq4.0-cil libmono-system-data-datasetextensions4.0-cil libstdc++-4.9-pic locales login m4 make makedev mawk mono-dmcs npm openjdk-8-jdk passwd python-distlib python-gevent python-greenlet python-html5lib python-minimal python-pip python-pkg-resources python-requests python-setuptools python-six python-urllib3 python-yaml python2.7 python2.7-minimal rpm rpm2cpio ruby ruby2.1 rubygems-integration sed tar texinfo tzdata-java udev unzip util-linux valgrind vim wget golang-go.tools curl sphinx-common gnupga-certificates
E: Unable to locate package binutils
E: Unable to locate package build-essential
E: Unable to locate package cpp
E: Unable to locate package cpp-4.9
E: Couldn't find any package by regex 'cpp-4.9'
E: Unable to locate package dos2unix
E: Unable to locate package fakeroot
E: Version '4:4.9.2-2ubuntu2' for 'libpam0g-util' was not found
E: Version '4:4.9.2-2ubuntu2' for 'libpam0g-dev' was not found
E: Version '4:4.9.2-2ubuntu2' for 'libgpm2' was not found
E: Version '4:4.9.2-2ubuntu2' for 'dpkg' was not found
E: Version '4:4.9.2-2ubuntu2' for 'dialog' was not found
E: Version '4:4.9.2-2ubuntu2' for 'mono-gac' was not found
E: Version '4:4.9.2-2ubuntu2' for 'libalien-wxwidgets-perl' was not found
E: Version '4:4.9.2-2ubuntu2' for 'libgtk2-perl-doc' was not found
E: Version '4:4.9.2-2ubuntu2' for 'e2fsprogs' was not found
E: Version '4:4.9.2-2ubuntu2' for 'libpam0g' was not found
E: Version '4:4.9.2-2ubuntu2' for 'grep' was not found
E: Version '4:4.9.2-2ubuntu2' for 'rgrep' was not found
E: Version '4:4.9.2-2ubuntu2' for 'manpages-pl' was not found
E: Version '4:4.9.2-2ubuntu2' for 'libgcrypt20' was not found
E: Version '4:4.9.2-2ubuntu2' for 'libgpg-error0' was not found
E: Version '4:4.9.2-2ubuntu2' for 'rng-tools' was not found
E: Version '4:4.9.2-2ubuntu2' for 'gnome-utils' was not found
E: Version '4:4.9.2-2ubuntu2' for 'libterm-readline-gnu-perl' was not found
E: Version '4:4.9.2-2ubuntu2' for 'libgtk2-perl' was not found
E: Version '4:4.9.2-2ubuntu2' for 'libqtgui4-perl' was not foundPackage bzip2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Version '4:4.9.2-2ubuntu2' for 'zlib1g' was not found
E: Version '4:4.9.2-2ubuntu2' for 'gzip' was not found
E: Version '4:4.9.2-2ubuntu2' for 'gpgv' was not found
E: Version '4:4.9.2-2ubuntu2' for 'gnupg' was not found
[etc]

Chaz6 avatar Apr 20 '18 07:04 Chaz6

@Chaz6, please open a separate issue if this is still a problem. Closing this one as the original issue is resolved.

hgray1 avatar Apr 23 '18 21:04 hgray1