Skip to content

Commit

Permalink
update to latest LTS again
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelneale committed Aug 22, 2014
1 parent a994f2f commit 3c32be0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM ubuntu:14.04

RUN echo "1.574" > .lts-version-number
RUN echo "1.576" > .lts-version-number

RUN apt-get update && apt-get install -y wget git curl zip
RUN apt-get update && apt-get install -y --no-install-recommends openjdk-7-jdk
RUN apt-get update && apt-get install -y maven=3.0.5-1 ant=1.9.3-2build1 ruby rbenv make
RUN apt-get update && apt-get install -y maven ant ruby rbenv make

RUN wget -q -O - http://pkg.jenkins-ci.org/debian-stable/jenkins-ci.org.key | sudo apt-key add -
RUN echo deb http://pkg.jenkins-ci.org/debian-stable binary/ >> /etc/apt/sources.list
Expand Down

6 comments on commit 3c32be0

@mdirkse
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't get it, on the website it says the latest LTS (and indeed the one we use) is 1.565.1. Why does the image use 1.576?

@michaelneale
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh that is a stupid mistake - fat fingering. It takes it from the stable package so that is totally incorrect. Sorry will fix (ie those numbers are misleading).

@michaelneale
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mdirkse this is using the debian packaging - and as the builds on docker as based on pull requests to their official build system - it isn't always able to keep up - but in this case I just typed the wrong number in :(

Trying to think of a better way of tackling this... thanks for pointing this out.

@vdupain
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be better to do this:

 echo $(dpkg -s jenkins | grep Version | cut -d " " -f 2) > .lts-version-number

after installing jenkins package instead of hardcoded the lts version number?

@michaelneale
Copy link
Member Author

@michaelneale michaelneale commented on 3c32be0 Aug 27, 2014 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@michaelneale
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vdupain what about:

wget ... jenkins.deb
dpkg -i --force-depends $VERSION.deb

or similar:
dpkg -i downloaded_package.deb
apt-get -f install

these both are bad - first one uses force, second one will actually fail first (so need to ignore that) - but allow the version of the deb to be installed to be explicit ?

Could you open this as an issue on the repo (vs a comment here).

Please sign in to comment.