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

Commit 9c34015

Browse files
authored
Merge pull request #1 from manics/python3
Ice 3.6.5 Python 3
2 parents 64d39a0 + 0b3bcfd commit 9c34015

File tree

3 files changed

+33
-40
lines changed

3 files changed

+33
-40
lines changed

Dockerfile

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,26 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
77
RUN echo 'APT::Install-Recommends 0;' > /etc/apt/apt.conf.d/01norecommends \
88
&& echo 'APT::Install-Suggests 0;' >> /etc/apt/apt.conf.d/01norecommends
99

10-
ADD build_ice.sh /
11-
# Install ice from source
12-
RUN bash build_ice.sh
13-
# Zeroc IcePy
14-
RUN pip install zeroc-ice==3.6.4
10+
RUN apt-get update && \
11+
apt-get install -y -q\
12+
unzip \
13+
wget \
14+
build-essential \
15+
db5.3-util \
16+
libbz2-dev \
17+
libdb++-dev \
18+
libdb-dev \
19+
libexpat-dev \
20+
libmcpp-dev \
21+
libssl-dev \
22+
mcpp \
23+
python3-dev \
24+
python3-pip \
25+
python3-setuptools \
26+
python3-wheel \
27+
software-properties-common \
28+
zlib1g-dev
1529

16-
RUN pip install wheel
1730
RUN mkdir /dist
1831
ADD build.sh /
1932
CMD ["/build.sh"]

build.sh

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
#!/bin/sh
22

3-
set -eu
3+
set -eux
44

5-
ICE_VERSION=${1:-"3.6.4"}
5+
ICE_VERSION=${1:-"3.6.5"}
66

7-
pip download "zeroc-ice==$ICE_VERSION"
7+
# Build ice cpp from source
8+
wget -q https://github.com/zeroc-ice/ice/archive/v$ICE_VERSION.tar.gz
9+
tar xzf v$ICE_VERSION.tar.gz
10+
cd ice-$ICE_VERSION/cpp
11+
12+
make --silent && make install --silent
13+
14+
tar -zcf /dist/Ice-$ICE_VERSION-ubuntu1804-amd64.tar.gz /opt/Ice-3.6.5/
15+
16+
# Zeroc IcePy
17+
pip3 download "zeroc-ice==$ICE_VERSION"
818
tar -zxf "zeroc-ice-$ICE_VERSION.tar.gz"
919
cd "zeroc-ice-$ICE_VERSION"
10-
python setup.py bdist_wheel
11-
12-
tar cf - /opt/Ice-$ICE_VERSION/ | xz -z - > dist/Ice-$ICE_VERSION-ubuntu1804-amd64.tar.xz
20+
python3 setup.py bdist_wheel
1321

1422
cp dist/* /dist/

build_ice.sh

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)