This repository was archived by the owner on Dec 17, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed
Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM lambdalinux/baseimage-lambda:2017.03-000
2+
3+ CMD ["/sbin/my_init" ]
4+
5+ COPY [ \
6+ "./docker-extras/etc-sudoers.d-docker" , \
7+ "/tmp/docker-build/" \
8+ ]
9+
10+ RUN \
11+ # yum
12+ yum update && \
13+ yum install bzip2 && \
14+ yum install python27-PyYAML && \
15+ yum install python27-mako && \
16+ yum install sudo && \
17+ yum install tar && \
18+ \
19+ # setup sudo
20+ usermod -a -G wheel ll-user && \
21+ cp /tmp/docker-build/etc-sudoers.d-docker /etc/sudoers.d/docker && \
22+ chmod 440 /etc/sudoers.d/docker && \
23+ \
24+ # for python debugging (uncomment when required)
25+ # yum install gcc48 && \
26+ # yum install python27-devel && \
27+ # yum install python27-pip && \
28+ # su -l ll-user -c "pip-2.7 install --user ipdb==0.8 ipython==5.3.0" && \
29+ \
30+ # install github-release
31+ curl -L https://github.com/aktau/github-release/releases/download/v0.6.2/linux-amd64-github-release.tar.bz2 -o /tmp/docker-build/linux-amd64-github-release.tar.bz2 && \
32+ pushd /tmp/docker-build && \
33+ tar xjvf linux-amd64-github-release.tar.bz2 && \
34+ cp bin/linux/amd64/github-release /usr/bin && \
35+ popd && \
36+ \
37+ # cleanup
38+ rm -rf /tmp/docker-build && \
39+ yum clean all && \
40+ rm -rf /var/cache/yum/* && \
41+ rm -rf /tmp/* && \
42+ rm -rf /var/tmp/*
43+
You can’t perform that action at this time.
0 commit comments