Supply a Docker image for test execution #135

Closed
opened 2019-06-02 10:30:00 -05:00 by pkolbus · 4 comments
pkolbus commented 2019-06-02 10:30:00 -05:00 (Migrated from github.com)

Description

The test scripts (especially all.sh) have a number of dependencies. Supplying a Dockerfile and helper scripts would make it easier for contributors (running Linux at least) to set up a complete environment for running tests.

https://github.com/ARMmbed/mbedtls/pull/2314 provides a good basis for this.

Issue request type

[ ] Question
[X] Enhancement
[ ] Bug
<!-- ************************************** WARNING ************************************** The ciarcom bot parses this header automatically. Any deviation from the template may cause the bot to automatically correct this header or may result in a warning message, requesting updates. Please ensure that nothing follows the Issue request type section, all issue details are within the Description section and no changes are made to the template format (as detailed below). ************************************************************************************* --> ### Description <!-- Required Add detailed description of what you are reporting. Good example: https://os.mbed.com/docs/latest/reference/workflow.html Things to consider sharing: - What target does this relate to? - What toolchain (name + version) are you using? - What tools (name + version - is it mbed-cli, online compiler or IDE) are you using? - What is the SHA of Mbed OS (git log -n1 --oneline)? - Steps to reproduce. (Did you publish code or a test case that exhibits the problem?) --> The test scripts (especially `all.sh`) have a number of dependencies. Supplying a Dockerfile and helper scripts would make it easier for contributors (running Linux at least) to set up a complete environment for running tests. https://github.com/ARMmbed/mbedtls/pull/2314 provides a good basis for this. ### Issue request type <!-- Required Please add only one X to one of the following types. Do not fill multiple types (split the issue otherwise.) Please note this is not a GitHub task list, indenting the boxes or changing the format to add a '.' or '*' in front of them would change the meaning incorrectly. The only changes to be made are to add a description text under the description heading and to add a 'x' to the correct box. --> [ ] Question [X] Enhancement [ ] Bug
ciarmcom commented 2019-06-02 10:45:51 -05:00 (Migrated from github.com)

Internal Jira reference: https://jira.arm.com/browse/IOTCRYPT-786

*Internal Jira reference: https://jira.arm.com/browse/IOTCRYPT-786*
adbridge commented 2019-11-04 06:44:55 -06:00 (Migrated from github.com)

Apologies, this was closed in error by the automated bot - re-opening.

Apologies, this was closed in error by the automated bot - re-opening.
hug-dev commented 2019-12-22 06:16:32 -06:00 (Migrated from github.com)

For future reference, as I came up to this issue when wanting to add a Mbed Crypto container for our own project, the following Dockerfile will install Mbed Crypto version 2.0.0 in /tmp/ inside the container:

FROM ubuntu:latest

RUN apt-get update && \
    apt-get install -y make gcc python3 python wget

WORKDIR /tmp
RUN wget https://github.com/ARMmbed/mbed-crypto/archive/mbedcrypto-2.0.0.tar.gz
RUN tar xf mbedcrypto-2.0.0.tar.gz
RUN cd mbed-crypto-mbedcrypto-2.0.0 \
		&& make
For future reference, as I came up to this issue when wanting to add a Mbed Crypto container for our own project, the following Dockerfile will install Mbed Crypto version `2.0.0` in `/tmp/` inside the container: ``` FROM ubuntu:latest RUN apt-get update && \ apt-get install -y make gcc python3 python wget WORKDIR /tmp RUN wget https://github.com/ARMmbed/mbed-crypto/archive/mbedcrypto-2.0.0.tar.gz RUN tar xf mbedcrypto-2.0.0.tar.gz RUN cd mbed-crypto-mbedcrypto-2.0.0 \ && make ```
gilles-peskine-arm commented 2023-05-24 14:16:03 -05:00 (Migrated from github.com)

The Docker images that the maintainer team uses are now publicly available in https://github.com/Mbed-TLS/mbedtls-test/tree/master/resources/docker_files

The Docker images that the maintainer team uses are now publicly available in https://github.com/Mbed-TLS/mbedtls-test/tree/master/resources/docker_files
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-ARMmbed/mbed-crypto#135
No description provided.