Docker dev images refreshed
by Peter MacKinnon
On the heels of some important changes in Ivy support, I have updated
the following rawhide docker images (stacked from leanest to largest):
pmackinn/xmvn-ivy-rawhide 2.131GB
pmackinn/hadoop-dev-rawhide 2.742GB
pmackinn/hbase-dev-rawhide 3.431GB
These include Miko?aj's javapackages-tools-3.5.0-2 update which has made
the ivy-xmvn tooling even more seamless. Now, any Ivy-based project
build on Fedora can refer to a new system-wide ivysettings.xml file
which contains several xmvn resolution modes.
1. local mode, activated with -Divy.mode=local. First try Ivy local
repository, then system repository through XMvn.
2. bootstrap mode, activated with -Divy.mode=bootstrap. First try Ivy
local repository, then system repository through XMvn, finally
public remote repositories (download artifacts from the Internet).
This mode is useful when building packages for which not all
dependencies have yet been packaged for Fedora.
3. upstream mode, active by default (-Divy.mode=upstream works too).
Mimic upstream behaviour (local first, then remote). Never tries to
resolve from system repos.
For example,
ant -Divy.mode=local
-Dyour.project.ivysettings.file=/etc/ivy/ivysettings.xml ...
Thus, project modifications should be less invasive for Ivy resolver
settings, assuming those settings are assigned to an addressable property.
The images also have yum updates from this morning.
\Pete
--
Peter MacKinnon
MRG Grid/Big Data
Red Hat Inc.
Raleigh, NC
10 years, 3 months
Docker bootstrap image for xmvn-based development
by Peter MacKinnon
Hello friends,
I was looking for a way to quickly reuse a "cleanish" rawhide dev environment for some of the packaging work for Hive and Pig.
Basically something to validate the uncommon BuildRequires accurately. To that end, I've thrown together a docker Fedora
x86_64 image that is pre-populated with Mikołaj's latest xmvn which carries resolver support for Ivy based projects
(e.g., Hive and Pig).
I'm not suggesting that this is superior to local mock chroot workflows and potential caching techniques, just an interesting
alternative. xmvn plus maven-local currently have about 344 dependencies to install so it's nice to quickly get over that
initial hump as much as possible.
$ sudo yum install docker-io
$ docker pull pmackinn/xmvn-ivy-rawhide
$ docker run -i -t pmackinn/xmvn-ivy-rawhide /bin/bash
bash-4.2# uname -a && rpm -q xmvn maven-local && java -version
Linux e0ea9047b430 3.12.7-300.fc20.x86_64 #1 SMP Fri Jan 10 15:35:31 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
xmvn-1.5.0-0.15.gitc02edb5.noarch
maven-local-3.4.2-3.fc21.noarch
java version "1.7.0_45"
OpenJDK Runtime Environment (fedora-2.4.3.1.fc21-x86_64 u45-b15)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)
bash-4.2#
From there you can make your own images, copy files out, etc. Basically have at it.
I'll probably refresh that image every few days or so.
Hope it's of use.
\Pete
https://index.docker.io/u/pmackinn/xmvn-ivy-rawhide/
http://docs.docker.io/en/latest/use/basics/
--
Peter MacKinnon
MRG Grid/Big Data
Red Hat Inc.
Raleigh, NC
10 years, 3 months