Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add clang-format 7.0.1 to CI image #1719

Merged

Conversation

palmerlao
Copy link
Contributor

@palmerlao palmerlao commented Jan 20, 2019

This installs clang-format 7.0.1 (it seems to me 7.x.x is considered "stable" LLVM).

➜  vowpal_wabbit git:(palmerlao/update-ci-image) ✗ docker run -ti fb9f8e9fdc77 clang-format --version
clang-format version 7.0.1 (tags/RELEASE_701/final)
➜  vowpal_wabbit git:(palmerlao/update-ci-image) ✗ docker run -ti fb9f8e9fdc77 g++ --version
g++ (Ubuntu 4.9.4-2ubuntu1~14.04.1) 4.9.4
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

➜  vowpal_wabbit git:(palmerlao/update-ci-image) ✗ docker run -ti fb9f8e9fdc77 cmake --version
cmake version 3.2.2

CMake suite maintained and supported by Kitware (kitware.com/cmake).

@palmerlao
Copy link
Contributor Author

Also, is cpprestsdk still used?

@jackgerrits
Copy link
Member

Yes, this image is also used as a base for the reinforcement_learning repo where cpprestsdk is used.

Traditionally we've targeted older versions of linux to ensure compatibility. I think there will be less resistance to simply installing a newer clang-format on the 14.04 image if that is possible.

@jackgerrits
Copy link
Member

What is involved in getting the required version of clang-format into the current ubuntu image?

@palmerlao
Copy link
Contributor Author

Probably one of

  • adding a PPA
  • downloading an LLVM 6 archive

I'll try one of them tonight

@JohnLangford
Copy link
Member

Status on this? It would be nice to avoid needing the latest and greatest to build VW.

@palmerlao
Copy link
Contributor Author

palmerlao commented Jan 24, 2019 via email

@JohnLangford
Copy link
Member

JohnLangford commented Jan 25, 2019 via email

@palmerlao palmerlao changed the title Build with Ubuntu 18.04 as base Add clang-format 7.0.1 to CI image Jan 27, 2019
@@ -1,8 +1,7 @@
FROM ubuntu:14.04 AS build

# Upgrade cmake to 3.2
RUN apt-get update
RUN apt-get install -y software-properties-common python-software-properties debconf-utils
RUN apt-get update && apt-get install -y software-properties-common python-software-properties debconf-utils
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't understand very well why this change was necessary, but without it, running docker build - < .pipelines/Dockerfile gave me an error on this step that looked like apt-get update hadn't been run. Combining the two lines made it work again.

The Docker documentation indicates that this seems to be the preferable way to run apt-get update.

@palmerlao
Copy link
Contributor Author

Friendly reminder @JohnLangford

Is this something you all are still interested in? The change is a fair bit smaller now and I think uses the same versions of other software as before.

@JohnLangford JohnLangford merged commit 45fe53b into VowpalWabbit:master Feb 2, 2019
@JohnLangford
Copy link
Member

Yep merged, thanks :-) (I was just locked on the COLT deadline until yesterday.)

@palmerlao palmerlao deleted the palmerlao/update-ci-image branch February 4, 2019 18:06
jackdoe pushed a commit to lucjb/vowpal_wabbit that referenced this pull request Mar 7, 2019
* Make Dockerfile build again

* Download clang-format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants