Commit 5c5bb852 authored by beuc's avatar beuc

SDK-1.6: attempt at a ubuntu 8.04 environment

Need to split the 'repo' phase in a more recent container
parent 01cfcf3b
wd/
\ No newline at end of file
wd/
8.04/
8.04-template.tar.gz
8.04-template.tar.gz
8.04/
\ No newline at end of file
FROM ubuntu:10.04
FROM ubuntu:8.04
MAINTAINER Sylvain Beucler <[email protected]>
COPY dependencies.sh /usr/src/dependencies.sh
RUN /usr/src/dependencies.sh
......
.PHONY: all
all:
.PHONY: all docker-template
all: docker-template
#rm -rf 8.04/
#tar xf 8.04-template.tar.gz
#cp -a dependencies.sh 8.04/
#chroot 8.04/ ./dependencies.sh
docker build -t android-rebuilds:sdk-1.6.0 .
if [ ! -e wd/ ]; then mkdir wd/; fi
chown 1000:1000 wd/
cp -a build.sh wd/
docker run -v "$$(pwd)/wd:/home/android/wd" android-rebuilds:sdk-1.6.0 /home/android/wd/build.sh
sys-img:
docker build -t android-rebuilds:sdk-1.6.0 .
if [ ! -e wd/ ]; then mkdir wd/; fi
chown 1000:1000 wd/
cp -a build-sys-img.sh wd/
docker run -v "$$(pwd)/wd:/home/android/wd" android-rebuilds:sdk-1.6.0 /home/android/wd/build-sys-img.sh
docker-template:
if [ -z "$$(docker image list -q ubuntu:8.04)" ]; then \
$(MAKE) 8.04-template.tar.gz; \
docker image import 8.04-template.tar.gz ubuntu:8.04; \
fi
8.04-template.tar.gz:
debootstrap --keyring ./ubuntu-archive-keyring-2008.03.04.gpg hardy 8.04/ http://old-releases.ubuntu.com/ubuntu/
tar -czf 8.04-template.tar.gz -C 8.04/ .
rm -rf 8.04-template/
......@@ -6,10 +6,10 @@ echo 'APT::Install-Recommends "false";' > /etc/apt/apt.conf.d/00InstallRecommend
# clean-up non-free sources
# AFAICS we need to update the base image as of 2018-11-20 as it's already partially upgraded
cat <<EOF > /etc/apt/sources.list
deb http://old-releases.ubuntu.com/ubuntu/ lucid main universe
deb http://old-releases.ubuntu.com/ubuntu/ lucid-updates main universe
#deb http://security.ubuntu.com/ubuntu/ lucid-security main universe
#deb http://old-releases.ubuntu.com/ubuntu/ lucid-backports main universe
deb http://old-releases.ubuntu.com/ubuntu/ hardy main universe
deb http://old-releases.ubuntu.com/ubuntu/ hardy-updates main universe
#deb http://security.ubuntu.com/ubuntu/ hardy-security main universe
#deb http://old-releases.ubuntu.com/ubuntu/ hardy-backports main universe
EOF
#dpkg --add-architecture i386
apt-get update
......@@ -54,7 +54,7 @@ apt-get install -y git-core gnupg flex bison gperf build-essential zip \
x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \
libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \
libxml2-utils xsltproc
ln -s /usr/lib32/mesa/libGL.so.1 /usr/lib32/mesa/libGL.so
#ln -s /usr/lib32/mesa/libGL.so.1 /usr/lib32/mesa/libGL.so
# Repo
apt-get install -y curl ca-certificates git-core libcurl4-openssl-dev
......
......@@ -46,9 +46,21 @@ EOF
ar x git_1.7.4.1-3_amd64.deb
tar xf data.tar.gz
mv usr/bin/git* ~/bin/
#mv usr/lib/git-core /usr/lib/
rm -rf $tmpdir/
)
# fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
# fatal: error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)
# => curl (or python/ssl?) lacks the GlobalSign_Root_CA_-_R2.crt certificate
# curl: (35) error:0D0C50A1:asn1 encoding routines:ASN1_item_verify:unknown message digest algorithm
# => even with GlobalSign_Root_CA_-_R2.crt, curl/libssl lacks some algos
# => --no-clone-bundle
# error: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt while accessing https://gerrit.googlesource.com/git-repo/info/refs
# => cat GlobalSign_Root_CA_-_R2.crt >> /etc/ssl/certs/ca-certificates.crt
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
......
Source:
http://old-releases.ubuntu.com/ubuntu/pool/main/u/ubuntu-keyring/ubuntu-keyring_2008.03.04.tar.gz
ubuntu-keyring-2008.03.04/keyrings/ubuntu-archive-keyring.gpg
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment