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

Upgrade to Trusty + Python3 #70

Closed
wants to merge 4 commits into from
Closed

Upgrade to Trusty + Python3 #70

wants to merge 4 commits into from

Conversation

christianromney
Copy link

Second attempt. Again, applied mpeterson's patch which elegantly enables uni/multiverse and updated Dockerfile to 14.04. Additionally, changed shebang lines in my_init and setuser to use python3 (new default in Trusty), and removed unused, deprecated posixfile import.

Smoke tested locally and pushed to docker index at https://index.docker.io/u/christianromney/baseimage/ for broader testing and acceptance.

mpeterson and others added 4 commits May 1, 2014 19:55
Instead of copying over a hardcoded file we just uncomment the correct lines via two simple sed commands.
Ubuntu 14.04 LTS defaults to python3. This required
updating both my_init and setuser. Also, my_init
referenced the deprecated posixfile module, which
was removed in python3. It was not used anyway, so
I simply removed the import.

For the curious, posixfile was deprecated by
fcntl.lockf, which does the same thing, but
more
portably.

https://docs.python.org/2/library/fcntl.html#fcntl.lockf

Signed-off-by: Christian Romney <[email protected]>
Signed-off-by: Christian Romney <[email protected]>
@christianromney
Copy link
Author

docker image id is 7d11830f76c2

@mpeterson mpeterson mentioned this pull request May 10, 2014
@mpeterson
Copy link
Contributor

I've created #71 which integrates your changes but however includes contributions made by other persons (so we don't leave the credits out).

It also adds things myself that are needed for it to work correctly.

@mpeterson
Copy link
Contributor

For instance a needed change to syslogng defaults

@FooBarWidget
Copy link
Member

Let's move to #71.

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