Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.

Commit 7b740c3

Browse files
committed
idp2/3_core
1 parent 14e429e commit 7b740c3

File tree

4 files changed

+28
-4
lines changed

4 files changed

+28
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
*~
2+
__pycache__

idp2_core/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
FROM continuumio/miniconda3:4.111
1+
FROM continuumio/miniconda3:4.1.11
22

33
MAINTAINER Robert Cohn <[email protected]>
44

5+
ENV ACCEPT_INTEL_PYTHON_EULA=yes
6+
57
RUN conda config --add channels intel \
6-
&& conda create -n idp intelpython2_core=2017.0.0 python=2
8+
&& conda create -y -q -n idp intelpython2_core=2017.0.0 python=2
79

810
ENV PATH /opt/conda/envs/idp/bin:$PATH

idp3_core/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
FROM continuumio/miniconda3:4.111
1+
FROM continuumio/miniconda3:4.1.11
22

33
MAINTAINER Robert Cohn <[email protected]>
44

5+
ENV ACCEPT_INTEL_PYTHON_EULA=yes
6+
57
RUN conda config --add channels intel \
6-
&& conda create -n idp intelpython3_core=2017.0.0 python=3
8+
&& conda create -y -q -n idp intelpython3_core=2017.0.0 python=3
79

810
ENV PATH /opt/conda/envs/idp/bin:$PATH

tests/test_build.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import getpass
2+
import os
3+
import subprocess
4+
5+
def get_proxies():
6+
proxies = ''
7+
for var in ['http_proxy','https_proxy','no_proxy']:
8+
if var in os.environ:
9+
proxies += ' --build-arg %s=%s' % (var,os.environ[var])
10+
return proxies
11+
12+
def do_build(dir):
13+
tag = '%s/%s' % (getpass.getuser(),dir)
14+
subprocess.check_call('docker build %s -t %s --file %s/Dockerfile .' % (get_proxies(),tag,dir),shell=True)
15+
subprocess.check_call('docker run -t %s python -c 1' % tag ,shell=True)
16+
17+
def test_builds():
18+
for dir in ['idp2_core','idp3_core']:
19+
do_build(dir)

0 commit comments

Comments
 (0)