Skip to content
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

Test: Testing OL8 images in Ci #133

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions images/build-stage/3.6/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
FROM oraclelinux:8-slim

FROM python:3.6-slim-stretch
RUN microdnf install -y python36 &&\
microdnf clean all

RUN apt-get update && apt-get upgrade -qy && \
apt-get install --no-install-recommends -qy build-essential gcc && \
apt-get clean
RUN pip3 install --upgrade pip && pip3 cache purge

CMD ["python3"]
9 changes: 5 additions & 4 deletions images/build-stage/3.8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
FROM oraclelinux:8-slim

FROM python:3.8-slim
RUN microdnf install -y python38 &&\
microdnf install -y python38-pip &&\
microdnf clean all

RUN apt-get update && apt-get upgrade -qy && \
apt-get install --no-install-recommends -qy build-essential gcc && \
apt-get clean
CMD ["python3"]
7 changes: 4 additions & 3 deletions images/runtime/3.6/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
# limitations under the License.
#

FROM python:3.6-slim-stretch
FROM oraclelinux:8-slim

RUN apt-get update && apt-get upgrade -qy && apt-get clean
RUN addgroup --system --gid 1000 --system fn && adduser --system --uid 1000 --ingroup fn fn
RUN microdnf install -y python36 &&\
microdnf clean all
RUN groupadd --system --gid 1000 fn && adduser --system --uid 1000 --gid fn fn
12 changes: 9 additions & 3 deletions images/runtime/3.8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@
# limitations under the License.
#

FROM python:3.8-slim
#FROM docker-remote.artifactory.oci.oraclecorp.com/python:3.8-slim
FROM oraclelinux:8-slim

RUN apt-get update && apt-get upgrade -qy && apt-get clean
RUN addgroup --system --gid 1000 fn && adduser --system --uid 1000 --ingroup fn fn
#RUN apt-get update && apt-get upgrade -qy && apt-get clean
RUN microdnf install -y python38 &&\
microdnf install -y python38-pip &&\
microdnf clean all

#RUN addgroup --system --gid 1000 fn && adduser --system --uid 1000 --ingroup fn fn
RUN groupadd --system --gid 1000 fn && adduser --system --uid 1000 --gid fn fn