Skip to content

[RFC] Add 3.5/alpine variant #74

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

Merged
merged 6 commits into from
Dec 31, 2015
Merged

[RFC] Add 3.5/alpine variant #74

merged 6 commits into from
Dec 31, 2015

Conversation

ncopa
Copy link
Contributor

@ncopa ncopa commented Dec 29, 2015

This is a continuation of #71 which was deleted by mistake.

I have made incremental changes for displaying the progress. I can merge the patches into a single before we merge it into docker-library if wanted.

@ncopa
Copy link
Contributor Author

ncopa commented Dec 29, 2015

Seems that the tests are failing due to missing bash and readline. Those were intentionally excluded so I guess we need to fix the test suite.

@tianon
Copy link
Member

tianon commented Dec 30, 2015

Figured I'd just PR my comments so they're easier to discuss and/or incorporate: ncopa#1 😄

tianon and others added 2 commits December 30, 2015 15:40
…ge size in half by keeping fetch and compile in the same layer so the Python source goes away properly

Before: ~163.2 MB
After: ~89.05 MB
Adjust whitespace for better symmetry between Dockerfiles and cut image size in half by keeping fetch and compile in the same layer so the Python source goes away properly
@tianon
Copy link
Member

tianon commented Dec 31, 2015

I've restarted the CI job now that the test is fixed -- this LGTM (going to wait for CI to come back green though)

@tianon
Copy link
Member

tianon commented Dec 31, 2015

Oh right, readline. We'll need to do something with that test, but I don't think this is worth holding up on account of that. 👍

tianon added a commit that referenced this pull request Dec 31, 2015
[RFC] Add 3.5/alpine variant
@tianon tianon merged commit f20e921 into docker-library:master Dec 31, 2015
@tianon
Copy link
Member

tianon commented Dec 31, 2015

Hmm, it does only add ~2.75 MB to install. Still worth considering just adding it, since it's a core Python module -- does installing it after the fact enable the core module, or does it have to be built in during Python source compilation time? If it's hard or impossible to add after the fact, then I think we need to just include it unilaterally, but if we can add it afterwards without too much trouble, then we're fine and need to fix the test.

@tianon
Copy link
Member

tianon commented Dec 31, 2015

$ docker run -it --rm python:alpine sh
/ # apk add --no-cache readline
fetch http://dl-4.alpinelinux.org/alpine/v3.3/main/x86_64/APKINDEX.tar.gz
fetch http://dl-4.alpinelinux.org/alpine/v3.3/community/x86_64/APKINDEX.tar.gz
(1/1) Installing readline (6.3.008-r4)
Executing busybox-1.24.1-r7.trigger
OK: 13 MiB in 18 packages
/ # python
Python 3.5.1 (default, Dec 31 2015, 22:51:08) 
[GCC 5.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import readline
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named 'readline'
>>> 

😞 😢

BUT! The silver lining is that we already have the deps of readline installed, so it only takes up an extra ~638.9 kB. 👍 🤘

tianon added a commit to infosiftr/stackbrew that referenced this pull request Jan 7, 2016
- `docker`: alpine:3.3 (docker-library/docker#7)
- `drupal`: 8.0.2
- `java`: explicit `JAVA_HOME` (docker-library/openjdk#61)
- `php`: 5.5.31, 5.6.17, 7.0.2; fix edge case in `docker-php-ext-enable` (docker-library/php#172)
- `postgres`: 9.5.0; set `PGDATA` perms to `0700` (docker-library/postgres#110)
- `python`: add `alpine` variant for 3.5 (docker-library/python#74)
- `rabbitmq`: fix SSL bugs (docker-library/rabbitmq#55, docker-library/rabbitmq#56)
- `wordpress`: 4.4.1
RichardScothern pushed a commit to RichardScothern/official-images that referenced this pull request Jun 14, 2016
- `docker`: alpine:3.3 (docker-library/docker#7)
- `drupal`: 8.0.2
- `java`: explicit `JAVA_HOME` (docker-library/openjdk#61)
- `php`: 5.5.31, 5.6.17, 7.0.2; fix edge case in `docker-php-ext-enable` (docker-library/php#172)
- `postgres`: 9.5.0; set `PGDATA` perms to `0700` (docker-library/postgres#110)
- `python`: add `alpine` variant for 3.5 (docker-library/python#74)
- `rabbitmq`: fix SSL bugs (docker-library/rabbitmq#55, docker-library/rabbitmq#56)
- `wordpress`: 4.4.1
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.

2 participants