-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ensure that al2 image is actually al2
- Loading branch information
1 parent
31307c8
commit ed40c19
Showing
3 changed files
with
53 additions
and
2 deletions.
There are no files selected for viewing
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,47 @@ | ||
FROM amazonlinux:2 | ||
|
||
|
||
############################################################################### | ||
# Install prereqs | ||
############################################################################### | ||
RUN yum -y update \ | ||
&& yum -y install \ | ||
tar \ | ||
git \ | ||
sudo \ | ||
# Python | ||
python3 \ | ||
python3-devel \ | ||
python3-pip \ | ||
make \ | ||
cmake3 \ | ||
gcc \ | ||
gcc-c++ \ | ||
which \ | ||
&& yum clean all \ | ||
&& rm -rf /var/cache/yum \ | ||
&& cmake --version \ | ||
&& ctest --version | ||
|
||
############################################################################### | ||
# Python/AWS CLI | ||
############################################################################### | ||
RUN python3 -m pip install setuptools virtualenv \ | ||
&& python3 -m pip install --upgrade awscli \ | ||
&& aws --version | ||
|
||
############################################################################### | ||
# Install pre-built CMake | ||
############################################################################### | ||
WORKDIR /tmp | ||
RUN curl -sSL https://d19elf31gohf1l.cloudfront.net/_binaries/cmake/cmake-3.13-manylinux1-x64.tar.gz -o cmake.tar.gz \ | ||
&& tar xvzf cmake.tar.gz -C /usr/local \ | ||
&& cmake --version \ | ||
&& rm -f /tmp/cmake.tar.gz | ||
|
||
############################################################################### | ||
# Install entrypoint | ||
############################################################################### | ||
ADD entrypoint.sh /usr/local/bin/builder | ||
RUN chmod a+x /usr/local/bin/builder | ||
ENTRYPOINT ["/usr/local/bin/builder"] |
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
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