Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
20dd9eb
Added docker `--security-opt seccomp=unconfined` parameter as default
minosgalanakis Jan 12, 2022
97b3ba3
Set ubuntu-16.04 Dockerfile as baseline for ubuntu-18.04 alignment
minosgalanakis Jan 12, 2022
9d8894f
Updated ARMLMD_LICENSE_FILE environment variable
minosgalanakis Jan 13, 2022
ced6663
Updated ubuntu-18.04 Dockerfile for abi-dumper, abi-compliance-checker
minosgalanakis Jan 12, 2022
d61658c
Updated ubuntu-18.04 Dockerfile to remove the workaround for GnuTLS 3.7
minosgalanakis Jan 13, 2022
0f0e47d
Updated ubuntu-18.04 Dockerfile to use latest pip/setuptools
minosgalanakis Jan 13, 2022
5c49542
Added ubuntu-20.04 Dockerfile
minosgalanakis Jan 14, 2022
7e74103
Updated dockerfile_builder to incude 20.04 image
minosgalanakis Jan 14, 2022
c0bf392
Updated ubuntu-18.04/20.04 Dockerfiles
minosgalanakis Jan 25, 2022
58938a3
Ammended the removal of a valid comment from ubuntu-18.04 Dockerfile
minosgalanakis Feb 8, 2022
45a5fce
Updated ubuntu-20.04 Dockerfile
minosgalanakis Feb 8, 2022
ef1f053
Removed mypy and pylint dependencies
minosgalanakis Feb 8, 2022
74ea266
Revert "Added docker `--security-opt seccomp=unconfined` parameter as…
minosgalanakis Feb 8, 2022
36b60be
Dockerfiles: Set the HOME to /var/lib/ws
minosgalanakis Feb 8, 2022
a15b48d
Dockerfiles: Set the HOME to /var/lib/builds
minosgalanakis Feb 14, 2022
77a8b87
Added docker `--security-opt seccomp=unconfined` parameter as default
minosgalanakis Jan 12, 2022
8f7f013
Set ubuntu-16.04 Dockerfile as baseline for ubuntu-18.04 alignment
minosgalanakis Jan 12, 2022
d7c6581
Updated ARMLMD_LICENSE_FILE environment variable
minosgalanakis Jan 13, 2022
99862af
Updated ubuntu-18.04 Dockerfile for abi-dumper, abi-compliance-checker
minosgalanakis Jan 12, 2022
7c33af4
Updated ubuntu-18.04 Dockerfile to remove the workaround for GnuTLS 3.7
minosgalanakis Jan 13, 2022
d679cbb
Updated ubuntu-18.04 Dockerfile to use latest pip/setuptools
minosgalanakis Jan 13, 2022
7348d4f
Added ubuntu-20.04 Dockerfile
minosgalanakis Jan 14, 2022
5ba7751
Updated dockerfile_builder to incude 20.04 image
minosgalanakis Jan 14, 2022
4a2ce10
Updated ubuntu-18.04/20.04 Dockerfiles
minosgalanakis Jan 25, 2022
77f40ed
Condition Open CI changes based on jenkins URL
Jan 3, 2022
e57ee29
Naming the test results explicitly at githubNotify
Feb 2, 2022
59dcb3e
Updated ubuntu Dockerfiles
Feb 8, 2022
2978eb9
Add "TF Open CI" or "Internal CI" to the mail subject to distinguish
Feb 10, 2022
e1a6125
Merge pull request #31 from ARMmbed/dev/mg/update-docker-files
gilles-peskine-arm Feb 22, 2022
05a84c0
Condition Open CI changes based on jenkins URL
Jan 3, 2022
312d4e4
Naming the test results explicitly at githubNotify
Feb 2, 2022
57694d6
Updated ubuntu Dockerfiles
Feb 8, 2022
7e2f062
Add "TF Open CI" or "Internal CI" to the mail subject to distinguish
Feb 10, 2022
df795db
Merge branch 'leo-mbedtls-open-ci-notify-github' of github.com:arthur…
Feb 22, 2022
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
2 changes: 2 additions & 0 deletions resources/docker_files/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ sudo docker run --network=host --rm -i -t ubuntu-18.04
```
Above, ```-i``` is for interactive mode and ```-t``` is for emulating a tty. ```--rm``` tells docker to cleanup the container after exit. (See note above regarding `--network=host`.) All images launch ```bash``` on startup. Hence, user is on a ```bash``` shell when image is started in the interactive mode.

Note that the additional parameter `--security-opt seccomp=unconfined` which is disabling the ASLR for the zeroize test, is now set by default.

Use ```run.sh``` for enabling ```git``` and mounting a host workspace inside docker. Example:
```sh
$ ./run.sh /home/mazimkhan/github/mazimkhan ubuntu-18.04
Expand Down
4 changes: 2 additions & 2 deletions resources/docker_files/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
#
# Copyright (c) 2017-2021, ARM Limited, All Rights Reserved
# Copyright (c) 2017-2022, ARM Limited, All Rights Reserved
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
Expand Down Expand Up @@ -56,5 +56,5 @@ echo " Mounting $SSH_CFG_PATH --> /home/user/.ssh"
echo " Mounting $MOUNT_DIR --> /var/lib/ws"
echo "****************************************************"

sudo docker run --network=host --rm -i -t -u $USR_ID:$USR_GRP -w /var/lib/ws -v $MOUNT_DIR:/var/lib/ws -v $SSH_CFG_PATH:/home/user/.ssh --cap-add SYS_PTRACE ${IMAGE}
sudo docker run --network=host --rm -i -t -u $USR_ID:$USR_GRP -w /var/lib/ws -v $MOUNT_DIR:/var/lib/ws -v $SSH_CFG_PATH:/home/user/.ssh --cap-add SYS_PTRACE --security-opt seccomp=unconfined ${IMAGE}

15 changes: 7 additions & 8 deletions resources/docker_files/ubuntu-16.04/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ubuntu-16.04/Dockerfile
#
# Copyright (c) 2018-2021, ARM Limited, All Rights Reserved
# Copyright (c) 2018-2022, ARM Limited, All Rights Reserved
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
Expand Down Expand Up @@ -28,6 +28,10 @@ FROM ubuntu:16.04
ARG DEBIAN_FRONTEND=noninteractive
WORKDIR /opt/src

# Note: scripts/min_requirements.py need a writable
# destination for installing python dependencies
ENV HOME=/var/lib/builds

# Support for i386:
# - for 32-bit builds+tests of Mbed TLS
# - required to install Arm Compiler 5.06 (armcc)
Expand Down Expand Up @@ -117,7 +121,8 @@ RUN wget -q https://developer.arm.com/-/media/Files/downloads/compiler/DS500-PA-

ENV ARMC5_BIN_DIR=/usr/local/ARM_Compiler_5.06u3/bin/
ENV PATH=$PATH:/usr/local/ARM_Compiler_5.06u3/bin
ENV [email protected]
ARG [email protected]:[email protected]:[email protected]:[email protected]
ENV ARMLMD_LICENSE_FILE=${ARMLMD_LICENSE_FILE}

# Install ARM Compiler 6.6
RUN mkdir temp && cd temp && \
Expand Down Expand Up @@ -254,12 +259,6 @@ RUN git clone --branch 1.1 https://github.com/lvc/abi-dumper.git && \
RUN python3 -m pip install 'pip<21' --upgrade | cat && \
python3 -m pip config set global.progress_bar off && \
python3 -m pip install setuptools --upgrade && \
# For pylint we want a known version, as later versions may add checks at
# any time, making CI results unpredictable.
python3 -m pip install pylint==2.4.4 && \
# For mypy, use the earliest version that works with our code base.
# See https://github.com/ARMmbed/mbedtls/pull/3953 .
python3 -m pip install mypy==0.780 && \
true

# Set locale for ARMCC to work
Expand Down
Loading