-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modify to update OSs and to install Python 3.7 for Apama 10.5
- Loading branch information
Showing
20 changed files
with
200 additions
and
7 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM centos:7 as builder | ||
|
||
RUN yum install -y gcc openssl-devel bzip2-devel libffi-devel wget make | ||
RUN wget -O /root/Python-3.7.4.tar.xz https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tar.xz && (cd /root; tar xf Python-3.7.4.tar.xz) | ||
RUN (cd /root/Python-3.7.4; ./configure --enable-optimizations --enable-shared && make -j 8 build_all && make altinstall) | ||
|
||
FROM centos:7 | ||
|
||
# Copy built python to fresh image | ||
COPY --from=builder /usr/local /usr/local | ||
ENV AP_PYTHONHOME=/usr/local | ||
|
||
# Add sample project to image | ||
COPY core /opt/apamacore | ||
COPY project /opt/project | ||
COPY launch.sh /opt/launch.sh | ||
|
||
# Launch image with correct settings to run project | ||
ENTRYPOINT ["/opt/launch.sh"] | ||
CMD ["correlator", "--config", "/opt/project"] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM debian:bullseye | ||
|
||
# Install python from main repository | ||
RUN apt-get update && apt-get install -y python3.7 libpython3.7 | ||
ENV AP_PYTHONHOME=/usr | ||
|
||
# Add sample project to image | ||
COPY core /opt/apamacore | ||
COPY project /opt/project | ||
COPY launch.sh /opt/launch.sh | ||
|
||
# Launch image with correct settings to run project | ||
ENTRYPOINT ["/opt/launch.sh"] | ||
CMD ["correlator", "--config", "/opt/project"] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM debian:buster | ||
|
||
# Install python from main repository | ||
RUN apt-get update && apt-get install -y python3.7 libpython3.7 | ||
ENV AP_PYTHONHOME=/usr | ||
|
||
# Add sample project to image | ||
COPY core /opt/apamacore | ||
COPY project /opt/project | ||
COPY launch.sh /opt/launch.sh | ||
|
||
# Launch image with correct settings to run project | ||
ENTRYPOINT ["/opt/launch.sh"] | ||
CMD ["correlator", "--config", "/opt/project"] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM debian:jessie as builder | ||
|
||
# download and build Python | ||
RUN apt-get update && apt-get install -y libssl-dev zlib1g-dev libncurses5-dev libncursesw5-dev libreadline-dev libsqlite3-dev libgdbm-dev libdb5.3-dev libbz2-dev libexpat1-dev liblzma-dev tk-dev wget libffi-dev | ||
RUN wget -O /root/Python-3.7.4.tar.xz https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tar.xz && (cd /root; tar xf Python-3.7.4.tar.xz) | ||
RUN (cd /root/Python-3.7.4; ./configure --enable-optimizations --enable-shared && make -j 8 build_all && make altinstall) | ||
|
||
FROM debian:jessie | ||
|
||
# Copy built python to fresh image | ||
COPY --from=builder /usr/local /usr/local | ||
ENV AP_PYTHONHOME=/usr/local | ||
|
||
# Add sample project to image | ||
COPY core /opt/apamacore | ||
COPY project /opt/project | ||
COPY launch.sh /opt/launch.sh | ||
|
||
# Launch image with correct settings to run project | ||
ENTRYPOINT ["/opt/launch.sh"] | ||
CMD ["correlator", "--config", "/opt/project"] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM opensuse/leap:15.0 as builder | ||
|
||
# download and build Python | ||
RUN zypper --non-interactive install readline-devel sqlite3-devel libbz2-devel zlib-devel libopenssl-devel wget tar gcc make xz libffi-devel | ||
RUN wget -O /root/Python-3.7.4.tar.xz https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tar.xz && (cd /root; tar xf Python-3.7.4.tar.xz) | ||
RUN (cd /root/Python-3.7.4; ./configure --enable-optimizations --enable-shared && make -j 8 build_all && make altinstall) | ||
|
||
ENV AP_PYTHONHOME=/usr/local | ||
|
||
# Add sample project to image | ||
COPY core /opt/apamacore | ||
COPY project /opt/project | ||
COPY launch.sh /opt/launch.sh | ||
|
||
# Launch image with correct settings to run project | ||
ENTRYPOINT ["/opt/launch.sh"] | ||
CMD ["correlator", "--config", "/opt/project"] | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM opensuse/tumbleweed | ||
|
||
# Add Python from default repository | ||
RUN zypper --non-interactive install python3 | ||
ENV AP_PYTHONHOME=/usr | ||
|
||
# Add sample project to image | ||
COPY core /opt/apamacore | ||
COPY project /opt/project | ||
COPY launch.sh /opt/launch.sh | ||
|
||
# Launch image with correct settings to run project | ||
ENTRYPOINT ["/opt/launch.sh"] | ||
CMD ["correlator", "--config", "/opt/project"] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM ubuntu:bionic | ||
|
||
# Install python from main repository | ||
RUN apt-get update && apt-get install -y python3.7 libpython3.7 | ||
ENV AP_PYTHONHOME=/usr | ||
|
||
# Add sample project to image | ||
COPY core /opt/apamacore | ||
COPY project /opt/project | ||
COPY launch.sh /opt/launch.sh | ||
|
||
# Launch image with correct settings to run project | ||
ENTRYPOINT ["/opt/launch.sh"] | ||
CMD ["correlator", "--config", "/opt/project"] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM ubuntu:cosmic | ||
|
||
# Install python from main repository | ||
RUN apt-get update && apt-get install -y python3.7 libpython3.7 | ||
ENV AP_PYTHONHOME=/usr | ||
|
||
# Add sample project to image | ||
COPY core /opt/apamacore | ||
COPY project /opt/project | ||
COPY launch.sh /opt/launch.sh | ||
|
||
# Launch image with correct settings to run project | ||
ENTRYPOINT ["/opt/launch.sh"] | ||
CMD ["correlator", "--config", "/opt/project"] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM ubuntu:disco | ||
|
||
# Install python from main repository | ||
RUN apt-get update && apt-get install -y python3.7 libpython3.7 | ||
ENV AP_PYTHONHOME=/usr | ||
|
||
# Add sample project to image | ||
COPY core /opt/apamacore | ||
COPY project /opt/project | ||
COPY launch.sh /opt/launch.sh | ||
|
||
# Launch image with correct settings to run project | ||
ENTRYPOINT ["/opt/launch.sh"] | ||
CMD ["correlator", "--config", "/opt/project"] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM ubuntu:eoan | ||
|
||
# Install python from main repository | ||
RUN apt-get update && apt-get install -y python3.7 libpython3.7 | ||
ENV AP_PYTHONHOME=/usr | ||
|
||
# Add sample project to image | ||
COPY core /opt/apamacore | ||
COPY project /opt/project | ||
COPY launch.sh /opt/launch.sh | ||
|
||
# Launch image with correct settings to run project | ||
ENTRYPOINT ["/opt/launch.sh"] | ||
CMD ["correlator", "--config", "/opt/project"] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM ubuntu:xenial | ||
|
||
# Install from deadsnakes PPA | ||
RUN apt-get update && apt-get install -y software-properties-common && add-apt-repository ppa:deadsnakes/ppa && apt-get update && apt-get install -y python3.7 libpython3.7 | ||
ENV AP_PYTHONHOME=/usr | ||
|
||
# Add sample project to image | ||
COPY core /opt/apamacore | ||
COPY project /opt/project | ||
COPY launch.sh /opt/launch.sh | ||
|
||
# Launch image with correct settings to run project | ||
ENTRYPOINT ["/opt/launch.sh"] | ||
CMD ["correlator", "--config", "/opt/project"] | ||
|
||
|
This file contains 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