Last active
November 7, 2018 00:21
-
-
Save ll911/b78c50835714147229cf3d471928c403 to your computer and use it in GitHub Desktop.
OpenShift Atomic Python Base
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: image.openshift.io/v1 | |
| kind: ImageStream | |
| metadata: | |
| name: atomic-python-core | |
| spec: | |
| lookupPolicy: | |
| local: false | |
| tags: | |
| - annotations: null | |
| from: | |
| kind: DockerImage | |
| name: docker-registry.default.svc:5000/dbc-bcdc-tools/atomic-python-core | |
| generation: null | |
| importPolicy: {} | |
| name: latest | |
| referencePolicy: | |
| type: "" | |
| status: | |
| dockerImageRepository: "" | |
| --- | |
| apiVersion: build.openshift.io/v1 | |
| kind: BuildConfig | |
| metadata: | |
| labels: | |
| app: atomic-python-core | |
| name: atomic-python-core | |
| spec: | |
| failedBuildsHistoryLimit: 5 | |
| output: | |
| to: | |
| kind: ImageStreamTag | |
| name: atomic-python-core:latest | |
| source: | |
| dockerfile: |- | |
| FROM registry.access.redhat.com/rhel7-atomic | |
| ARG PYV=2.7.15 | |
| RUN microdnf --enablerepo=rhel-7-server-rpms \ | |
| install make automake gcc gcc-c++ kernel-devel openssl-devel bzip2-devel xml-commons git postgresql-devel libxslt libxslt-devel libxml2 libxml2-devel xalan-j2 unzip wget --nodocs \ | |
| && wget https://www.python.org/ftp/python/${PYV}/Python-${PYV}.tgz \ | |
| && tar xf Python-${PYV}.tgz && cd Python-${PYV} \ | |
| && ./configure --prefix=/usr/local --enable-unicode=ucs4 --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib" \ | |
| && make && make install \ | |
| && microdnf clean all | |
| type: Dockerfile | |
| strategy: | |
| dockerStrategy: | |
| from: | |
| kind: DockerImage | |
| name: registry.access.redhat.com/rhel7-atomic | |
| type: Docker | |
| successfulBuildsHistoryLimit: 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment