generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 84
Docker Images #113
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
Merged
Merged
Docker Images #113
Changes from 27 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
8ed387c
edit Dockerfile with ecr account url
RogerZhongAWS b792fa3
Update base-images.yml
RogerZhongAWS 1518e7a
Update Dockerfile
RogerZhongAWS f197c3c
Update Dockerfile
RogerZhongAWS 79d87b5
Update base-images.yml
RogerZhongAWS e39ff93
separate boost install into two steps
RogerZhongAWS 264a386
use dockerfile from device client integration test repo
RogerZhongAWS a033806
add missing line in dockerfile
RogerZhongAWS 9a017bb
Update base-images.yml
RogerZhongAWS 8850975
ubi8 and amazonlinux docker images
RogerZhongAWS a1b6fd6
update cmake and python packages
RogerZhongAWS 2f990de
fix errors
RogerZhongAWS e8c420c
copy old dockerfile
RogerZhongAWS 893aeda
fix openssl
RogerZhongAWS ee873d7
optimize Dockerfiles
RogerZhongAWS aa39ddb
fix amazonlinux dockerfile
RogerZhongAWS 3dcc81b
all base and release images
RogerZhongAWS d1cf456
oss compliance script
RogerZhongAWS 327f1b8
add attribution doc, fix script
RogerZhongAWS 021d8cb
update boost to 1.81, fixed build scripts
RogerZhongAWS 713fc21
build new base images
RogerZhongAWS 78443cb
add libatomic, fix binary copy step
RogerZhongAWS 426c1a8
cd to working directory
RogerZhongAWS 676ca7e
Delete build-from-source-package-licenses.txt
RogerZhongAWS a479c87
add staged fedora builds, fixed oss script
RogerZhongAWS 66c368d
fix typo in workflow
RogerZhongAWS d0329d2
add needs specifier for previous stage
RogerZhongAWS 2d0d520
combined ubuntu and debian, restructured repo
RogerZhongAWS 7d3570a
delete debian Dockerfile
RogerZhongAWS eefd750
restarting image builds
RogerZhongAWS 2b92bcf
switch to public repo
RogerZhongAWS 277cb99
fix docker login
RogerZhongAWS 2ed38ef
fix login command
RogerZhongAWS e4db995
fix repo full name
RogerZhongAWS 70c12ea
fix syntax error
RogerZhongAWS 9c96be1
update README
RogerZhongAWS File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,26 @@ | ||
| ARG OS | ||
| ARG BASE_IMAGE | ||
| FROM ${BASE_IMAGE} AS deploy | ||
|
|
||
| ############################################################################### | ||
| # Copy and build local proxy | ||
| ############################################################################### | ||
| COPY . /root/aws-iot-securetunneling-localproxy | ||
| RUN mkdir -p /root/aws-iot-securetunneling-localproxy/build \ | ||
| && cd /root/aws-iot-securetunneling-localproxy/build \ | ||
| && cmake .. \ | ||
| && make | ||
|
|
||
| FROM ${OS} AS minimum_size | ||
|
|
||
| COPY --from=deploy /root/aws-iot-securetunneling-localproxy/build/bin/localproxy /root/bin/localproxy | ||
|
|
||
| COPY ./.github/docker-images/oss-compliance /root/oss-compliance | ||
| RUN HOME_DIR=/root \ | ||
| && cd ${HOME_DIR}/oss-compliance \ | ||
| && chmod +x ${HOME_DIR}/oss-compliance/generate-oss-compliance.sh \ | ||
| && chmod +x ${HOME_DIR}/oss-compliance/test/test-oss-compliance.sh \ | ||
| && bash ${HOME_DIR}/oss-compliance/generate-oss-compliance.sh ${HOME_DIR} \ | ||
| && rm -rf ${HOME_DIR}/oss-compliance* | ||
|
|
||
| ENTRYPOINT ["/root/bin"] |
This file contains hidden or 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,55 @@ | ||
| FROM amazonlinux:latest as base | ||
| ARG OPENSSL_CONFIG | ||
|
|
||
| # Install Prerequisites | ||
|
|
||
| RUN yum check-update; yum upgrade -y && \ | ||
| yum install -y git boost-devel autoconf automake \ | ||
| wget libtool curl make gcc-c++ unzip cmake3 python-devel openssl11-devel which | ||
|
|
||
| # Install Dependencies | ||
|
|
||
| RUN ln -s /usr/bin/cmake3 /usr/bin/cmake | ||
| RUN mkdir /home/dependencies | ||
|
|
||
| WORKDIR /home/dependencies | ||
| RUN wget https://www.zlib.net/zlib-1.2.13.tar.gz -O /tmp/zlib-1.2.13.tar.gz && \ | ||
| tar xzvf /tmp/zlib-1.2.13.tar.gz && \ | ||
| cd zlib-1.2.13 && \ | ||
| ./configure && \ | ||
| make && \ | ||
| make install | ||
|
|
||
| WORKDIR /home/dependencies | ||
| RUN wget https://boostorg.jfrog.io/artifactory/main/release/1.81.0/source/boost_1_81_0.tar.gz -O /tmp/boost.tar.gz && \ | ||
| tar xzvf /tmp/boost.tar.gz && \ | ||
| cd boost_1_81_0 && \ | ||
| ./bootstrap.sh && \ | ||
| ./b2 install link=static | ||
|
|
||
| WORKDIR /home/dependencies | ||
| RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/protobuf-all-3.17.3.tar.gz -O /tmp/protobuf-all-3.17.3.tar.gz && \ | ||
| tar xzvf /tmp/protobuf-all-3.17.3.tar.gz && \ | ||
| cd protobuf-3.17.3 && \ | ||
| mkdir build && \ | ||
| cd build && \ | ||
| cmake ../cmake && \ | ||
| make && \ | ||
| make install | ||
|
|
||
| WORKDIR /home/dependencies | ||
| RUN git clone https://github.com/openssl/openssl.git && \ | ||
| cd openssl && \ | ||
| git checkout OpenSSL_1_1_1-stable && \ | ||
| ./config && \ | ||
| make depend && \ | ||
| make all | ||
|
|
||
| WORKDIR /home/dependencies | ||
| RUN git clone --branch v2.13.6 https://github.com/catchorg/Catch2.git && \ | ||
| cd Catch2 && \ | ||
| mkdir build && \ | ||
| cd build && \ | ||
| cmake ../ && \ | ||
| make && \ | ||
| make install |
This file contains hidden or 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,52 @@ | ||
| FROM debian:latest AS base | ||
| # Install Prerequisites | ||
|
|
||
| RUN apt update && apt upgrade -y && \ | ||
| apt install -y git libboost-all-dev autoconf automake \ | ||
| wget libtool curl make g++ unzip cmake libssl-dev python3 | ||
|
|
||
| # Install Dependencies | ||
|
|
||
| RUN mkdir /home/dependencies | ||
|
|
||
| WORKDIR /home/dependencies | ||
| RUN wget https://www.zlib.net/zlib-1.2.13.tar.gz -O /tmp/zlib-1.2.13.tar.gz && \ | ||
| tar xzvf /tmp/zlib-1.2.13.tar.gz && \ | ||
| cd zlib-1.2.13 && \ | ||
| ./configure && \ | ||
| make && \ | ||
| make install | ||
|
|
||
| WORKDIR /home/dependencies | ||
| RUN wget https://boostorg.jfrog.io/artifactory/main/release/1.81.0/source/boost_1_81_0.tar.gz -O /tmp/boost.tar.gz && \ | ||
| tar xzvf /tmp/boost.tar.gz && \ | ||
| cd boost_1_81_0 && \ | ||
| ./bootstrap.sh && \ | ||
| ./b2 install link=static | ||
|
|
||
| WORKDIR /home/dependencies | ||
| RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/protobuf-all-3.17.3.tar.gz -O /tmp/protobuf-all-3.17.3.tar.gz && \ | ||
| tar xzvf /tmp/protobuf-all-3.17.3.tar.gz && \ | ||
| cd protobuf-3.17.3 && \ | ||
| mkdir build && \ | ||
| cd build && \ | ||
| cmake ../cmake && \ | ||
| make && \ | ||
| make install | ||
|
|
||
| WORKDIR /home/dependencies | ||
| RUN git clone https://github.com/openssl/openssl.git && \ | ||
| cd openssl && \ | ||
| git checkout OpenSSL_1_1_1-stable && \ | ||
| ./config && \ | ||
| make depend && \ | ||
| make all | ||
|
|
||
| WORKDIR /home/dependencies | ||
| RUN git clone --branch v2.13.6 https://github.com/catchorg/Catch2.git && \ | ||
| cd Catch2 && \ | ||
| mkdir build && \ | ||
| cd build && \ | ||
| cmake ../ && \ | ||
| make && \ | ||
| make install | ||
This file contains hidden or 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,52 @@ | ||
| FROM fedora:latest AS base | ||
|
|
||
| # Install Prerequisites | ||
|
|
||
| RUN dnf -y update \ | ||
| && dnf -y install \ | ||
| git autoconf automake \ | ||
| which wget libtool libatomic curl make gcc-c++ unzip cmake python3 openssl-devel perl-core | ||
|
|
||
| RUN mkdir /home/dependencies | ||
|
|
||
| WORKDIR /home/dependencies | ||
| RUN wget https://www.zlib.net/zlib-1.2.13.tar.gz -O /tmp/zlib-1.2.13.tar.gz && \ | ||
| tar xzvf /tmp/zlib-1.2.13.tar.gz && \ | ||
| cd zlib-1.2.13 && \ | ||
| ./configure && \ | ||
| make && \ | ||
| make install | ||
|
|
||
| WORKDIR /home/dependencies | ||
| RUN wget https://boostorg.jfrog.io/artifactory/main/release/1.81.0/source/boost_1_81_0.tar.gz -O /tmp/boost.tar.gz && \ | ||
| tar xzvf /tmp/boost.tar.gz && \ | ||
| cd boost_1_81_0 && \ | ||
| ./bootstrap.sh && \ | ||
| ./b2 install link=static | ||
|
|
||
| WORKDIR /home/dependencies | ||
| RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/protobuf-all-3.17.3.tar.gz -O /tmp/protobuf-all-3.17.3.tar.gz && \ | ||
| tar xzvf /tmp/protobuf-all-3.17.3.tar.gz && \ | ||
| cd protobuf-3.17.3 && \ | ||
| mkdir build && \ | ||
| cd build && \ | ||
| cmake ../cmake && \ | ||
| make && \ | ||
| make install | ||
|
|
||
| WORKDIR /home/dependencies | ||
| RUN git clone https://github.com/openssl/openssl.git && \ | ||
| cd openssl && \ | ||
| git checkout OpenSSL_1_1_1-stable && \ | ||
| ./config && \ | ||
| make depend && \ | ||
| make all | ||
|
|
||
| WORKDIR /home/dependencies | ||
| RUN git clone --branch v2.13.6 https://github.com/catchorg/Catch2.git && \ | ||
| cd Catch2 && \ | ||
| mkdir build && \ | ||
| cd build && \ | ||
| cmake ../ && \ | ||
| make && \ | ||
| make install |
This file contains hidden or 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,52 @@ | ||
| FROM redhat/ubi8:latest AS base | ||
shangabl marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| # Install Prerequisites | ||
|
|
||
| RUN yum -y update \ | ||
| && yum -y install \ | ||
| git autoconf automake \ | ||
| wget libtool libatomic curl make gcc-c++ unzip cmake python3 openssl-devel | ||
|
|
||
| RUN mkdir /home/dependencies | ||
|
|
||
| WORKDIR /home/dependencies | ||
| RUN wget https://www.zlib.net/zlib-1.2.13.tar.gz -O /tmp/zlib-1.2.13.tar.gz && \ | ||
| tar xzvf /tmp/zlib-1.2.13.tar.gz && \ | ||
| cd zlib-1.2.13 && \ | ||
| ./configure && \ | ||
| make && \ | ||
| make install | ||
|
|
||
| WORKDIR /home/dependencies | ||
| RUN wget https://boostorg.jfrog.io/artifactory/main/release/1.81.0/source/boost_1_81_0.tar.gz -O /tmp/boost.tar.gz && \ | ||
| tar xzvf /tmp/boost.tar.gz && \ | ||
| cd boost_1_81_0 && \ | ||
| ./bootstrap.sh && \ | ||
| ./b2 install link=static | ||
|
|
||
| WORKDIR /home/dependencies | ||
| RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/protobuf-all-3.17.3.tar.gz -O /tmp/protobuf-all-3.17.3.tar.gz && \ | ||
| tar xzvf /tmp/protobuf-all-3.17.3.tar.gz && \ | ||
| cd protobuf-3.17.3 && \ | ||
| mkdir build && \ | ||
| cd build && \ | ||
| cmake ../cmake && \ | ||
| make && \ | ||
| make install | ||
|
|
||
| WORKDIR /home/dependencies | ||
| RUN git clone https://github.com/openssl/openssl.git && \ | ||
| cd openssl && \ | ||
| git checkout OpenSSL_1_1_1-stable && \ | ||
| ./config && \ | ||
| make depend && \ | ||
| make all | ||
|
|
||
| WORKDIR /home/dependencies | ||
| RUN git clone --branch v2.13.6 https://github.com/catchorg/Catch2.git && \ | ||
| cd Catch2 && \ | ||
| mkdir build && \ | ||
| cd build && \ | ||
| cmake ../ && \ | ||
| make && \ | ||
| make install | ||
This file contains hidden or 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,54 @@ | ||
| ARG OS | ||
| FROM ${OS} AS base | ||
|
|
||
| # Install Prerequisites | ||
|
|
||
| RUN apt update && apt upgrade -y && \ | ||
| apt install -y git libboost-all-dev autoconf automake \ | ||
| wget libtool curl make g++ unzip cmake libssl-dev python3 | ||
|
|
||
| # Install Dependencies | ||
|
|
||
| RUN mkdir /home/dependencies | ||
|
|
||
| WORKDIR /home/dependencies | ||
| RUN wget https://www.zlib.net/zlib-1.2.13.tar.gz -O /tmp/zlib-1.2.13.tar.gz && \ | ||
| tar xzvf /tmp/zlib-1.2.13.tar.gz && \ | ||
| cd zlib-1.2.13 && \ | ||
| ./configure && \ | ||
| make && \ | ||
| make install | ||
|
|
||
| WORKDIR /home/dependencies | ||
| RUN wget https://boostorg.jfrog.io/artifactory/main/release/1.81.0/source/boost_1_81_0.tar.gz -O /tmp/boost.tar.gz && \ | ||
| tar xzvf /tmp/boost.tar.gz && \ | ||
| cd boost_1_81_0 && \ | ||
| ./bootstrap.sh && \ | ||
| ./b2 install link=static | ||
|
|
||
| WORKDIR /home/dependencies | ||
| RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/protobuf-all-3.17.3.tar.gz -O /tmp/protobuf-all-3.17.3.tar.gz && \ | ||
| tar xzvf /tmp/protobuf-all-3.17.3.tar.gz && \ | ||
| cd protobuf-3.17.3 && \ | ||
| mkdir build && \ | ||
| cd build && \ | ||
| cmake ../cmake && \ | ||
| make && \ | ||
| make install | ||
|
|
||
| WORKDIR /home/dependencies | ||
| RUN git clone https://github.com/openssl/openssl.git && \ | ||
| cd openssl && \ | ||
| git checkout OpenSSL_1_1_1-stable && \ | ||
| ./config && \ | ||
| make depend && \ | ||
| make all | ||
|
|
||
| WORKDIR /home/dependencies | ||
| RUN git clone --branch v2.13.6 https://github.com/catchorg/Catch2.git && \ | ||
| cd Catch2 && \ | ||
| mkdir build && \ | ||
| cd build && \ | ||
| cmake ../ && \ | ||
| make && \ | ||
| make install |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.