id
stringlengths 1
8
| Commit Hash
stringlengths 40
32.8k
⌀ | Subject
stringlengths 3
165
⌀ | Message
stringlengths 6
462
⌀ | Old Contents
stringlengths 45
32.8k
⌀ | New Contents
stringlengths 67
32.8k
⌀ | Ground truth
stringclasses 11
values |
---|---|---|---|---|---|---|
262 | fd2247cbcee7415a6703cc9221d53f5dbac9accc | Bumped source to 20211130-4c00e06 | Bumped source to 20211130-4c00e06
| FROM docker.pkg.github.com/dock0/arch/arch:20211130-cbf05db
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm base-devel musl vim-minimal tree openssh
ENV EDITOR vim
WORKDIR /opt/build
CMD ["make", "local"]
| FROM docker.pkg.github.com/dock0/arch/arch:20211130-4c00e06
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm base-devel musl vim-minimal tree openssh
ENV EDITOR vim
WORKDIR /opt/build
CMD ["make", "local"]
| maintenance/other |
2103 | d7d82169d11383f225a46cfa76cacb9a993c4135 | Bumped source to 20210629-6b7f787 | Bumped source to 20210629-6b7f787
| FROM docker.pkg.github.com/dock0/arch/arch:20210629-e972d45
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm base-devel musl vim-minimal tree openssh
ENV EDITOR vim
WORKDIR /opt/build
CMD ["make", "local"]
| null | maintenance/other |
374 | 90bde9493ac67b6683c885859581cf52f73b489e | Bumped source to 20201103-c055246 | Bumped source to 20201103-c055246
| FROM docker.pkg.github.com/dock0/amylum_arch/amylum_arch:20201103-c7ca449
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm s6 execline musl-amylum
ADD service /service
ADD init /init
CMD ["/init"]
| FROM docker.pkg.github.com/dock0/amylum_arch/amylum_arch:20201103-c055246
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm s6 execline musl-amylum
ADD service /service
ADD init /init
CMD ["/init"]
| maintenance/other |
2310 | 439ce8e0e4d322ae7d9e702ce1ac38becaacdeb7 | Update Dockerfile | Update Dockerfile
keeping bash. | FROM centos:7.3.1611
MAINTAINER Robert de Bock <robert@meinit.nl>
LABEL Description="Base CentOS OpenSSH server image" CentOS="7.3.1611" OpenSSH="6.6.1p1-33.el7_3" Tini="0.14.0"
ENV TINI_VERSION v0.14.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
EXPOSE 22
RUN yum -y erase bash vim && \
yum -y update && \
yum -y install openssh openssh-server openssh-clients && \
yum -y clean all
ADD start.sh /start.sh
RUN chmod +x /start.sh
RUN chmod +x /tini
ENTRYPOINT ["/tini", "-g", "--"]
CMD /start.sh
| null | code refactoring |
2170 | 3573db30cf61da7cbc7eee0a5234d286576f5665 | add gnu tar for mesos docker fetcher | add gnu tar for mesos docker fetcher
| FROM quay.io/vektorcloud/base:3.4
RUN apk --no-cache add docker \
libstdc++ \
subversion \
curl \
fts \
openjdk8 \
openssl \
binutils \
coreutils \
bash && \
apk --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community add dumb-init
# Mesos Default Options
ENV \
VERSION="1.2.0" \
MESOS_ZK="zk://localhost:2181/mesos" \
MESOS_MASTER="zk://localhost:2181/mesos" \
MESOS_QUORUM="1" \
MESOS_WORK_DIR="/mesos" \
MESOS_LOG_DIR="/mesos/log" \
MESOS_CONTAINERIZERS="mesos,docker" \
MESOS_EXECUTOR_REGISTRATION_TIMEOUT="5mins" \
MESOS_LAUNCHER="linux" \
MESOS_LOGGING_LEVEL="WARNING" \
MESOS_SYSTEMD_ENABLE_SUPPORT="false" \
MESOS_ISOLATION="cgroups/cpu,cgroups/mem,cgroups/pids,namespaces/pid,filesystem/linux,docker/runtime"
COPY mesos/mesos-$VERSION/build /
COPY entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]
| null | feature addition |
2176 | 2feef0bf6c0463a85fffb6443968da5cadc59093 | Bumped source to 20200824-40508fc | Bumped source to 20200824-40508fc
| FROM docker.pkg.github.com/dock0/ssh/ssh:20200824-cae6bbb
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm --needed cpio dnsutils htop lockfile-progs lsof mtr net-tools whois zsh neovim
RUN usermod --shell /usr/bin/zsh $ADMIN
RUN su - $ADMIN -c "git clone git://github.com/akerl/....git /home/$ADMIN/..."
RUN su - $ADMIN -c '.../... conf https://raw.githubusercontent.com/akerl/dotfiles/master/.dotdotdot.conf'
RUN su - $ADMIN -c '.../... supi'
| null | maintenance/other |
44 | b491f955c938e4b688236e7a53153f9514594e90 | update zoo | update zoo
Signed-off-by: Mark McCahill <e3696564e7a7433e50b70b6d9fcacd26c7505e6a@duke.edu>
| # mccahill/r-studio
#
# VERSION 1.4
FROM ubuntu:18.04
MAINTAINER Mark McCahill "mark.mccahill@duke.edu"
RUN apt-get update ; \
apt-get install gnupg2 -y
# get R from a CRAN archive (we want the 3.5 version of R)
RUN echo "deb http://cran.rstudio.com/bin/linux/ubuntu bionic-cran35/" >> /etc/apt/sources.list
RUN DEBIAN_FRONTEND=noninteractive apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
RUN apt-get update ; \
apt-get dist-upgrade -y
# we want OpenBLAS for faster linear algebra as described here: http://brettklamer.com/diversions/statistical/faster-blas-in-r/
RUN apt-get install -y \
apt-utils \
libopenblas-base
RUN apt-get update ; \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
r-base \
r-base-dev \
vim \
less \
net-tools \
inetutils-ping \
curl \
git \
telnet \
nmap \
socat \
software-properties-common \
wget \
sudo
RUN apt-get update ; \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
libcurl4-gnutls-dev \
libgit2-dev \
libxml2-dev \
libssl-dev \
libudunits2-dev \
libpoppler-cpp-dev
# we need TeX for the rmarkdown package in RStudio, and pandoc is also useful
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
texlive \
texlive-base \
texlive-latex-extra \
texlive-pstricks \
pandoc
# R-Studio
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
gdebi-core \
libapparmor1
# RUN DEBIAN_FRONTEND=noninteractive wget https://download2.rstudio.org/rstudio-server-1.1.383-amd64.deb
RUN DEBIAN_FRONTEND=noninteractive wget https://s3.amazonaws.com/rstudio-ide-build/server/trusty/amd64/rstudio-server-1.2.907-amd64.deb
RUN DEBIAN_FRONTEND=noninteractive gdebi --n rstudio-server-1.2.907-amd64.deb
RUN rm rstudio-server-1.2.907-amd64.deb
# update the R packages we will need for knitr
RUN DEBIAN_FRONTEND=noninteractive wget \
https://archive.linux.duke.edu/cran/src/contrib/xfun_0.5.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/knitr_1.22.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/yaml_2.2.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/Rcpp_1.0.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/htmltools_0.3.6.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/caTools_1.17.1.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/bitops_1.0-6.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/digest_0.6.18.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/glue_1.3.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/stringr_1.4.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/markdown_0.9.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/highr_0.8.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/formatR_1.6.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/evaluate_0.13.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/mime_0.6.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/stringi_1.4.3.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/magrittr_1.5.tar.gz
RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
bitops_1.0-6.tar.gz \
caTools_1.17.1.2.tar.gz \
digest_0.6.18.tar.gz \
Rcpp_1.0.1.tar.gz \
htmltools_0.3.6.tar.gz \
yaml_2.2.0.tar.gz \
stringi_1.4.3.tar.gz \
magrittr_1.5.tar.gz \
mime_0.6.tar.gz \
glue_1.3.1.tar.gz \
stringr_1.4.0.tar.gz \
highr_0.8.tar.gz \
formatR_1.6.tar.gz \
evaluate_0.13.tar.gz \
markdown_0.9.tar.gz \
xfun_0.5.tar.gz \
knitr_1.22.tar.gz
RUN rm \
evaluate_0.13.tar.gz \
formatR_1.6.tar.gz \
highr_0.8.tar.gz \
markdown_0.9.tar.gz \
stringi_1.4.3.tar.gz \
magrittr_1.5.tar.gz \
glue_1.3.1.tar.gz \
stringr_1.4.0.tar.gz \
xfun_0.5.tar.gz \
knitr_1.22.tar.gz \
yaml_2.2.0.tar.gz \
Rcpp_1.0.1.tar.gz \
htmltools_0.3.6.tar.gz \
caTools_1.17.1.2.tar.gz \
bitops_1.0-6.tar.gz \
digest_0.6.18.tar.gz \
mime_0.6.tar.gz
# dependency for R XML library
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
libxml2 \
libxml2-dev \
libssl-dev
# R packages we need for devtools - and we need devtools to be able to update the rmarkdown package
RUN DEBIAN_FRONTEND=noninteractive wget \
https://archive.linux.duke.edu/cran/src/contrib/processx_3.3.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/ps_1.3.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/callr_3.2.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/crayon_1.3.4.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/assertthat_0.2.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/cli_1.1.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/desc_1.2.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/prettyunits_1.0.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/backports_1.1.3.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/rprojroot_1.3-2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/withr_2.1.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/pkgbuild_1.0.3.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/rlang_0.3.3.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/rstudioapi_0.10.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/pkgload_1.0.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/rcmdcheck_1.3.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/remotes_2.0.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/xopen_1.0.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/clipr_0.5.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/clisymbols_1.2.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/sessioninfo_1.1.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/usethis_1.4.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/sys_3.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/askpass_1.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/openssl_1.3.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/brew_1.0-6.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/Archive/roxygen2/roxygen2_5.0.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/fs_1.2.7.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/gh_1.0.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/rversions_1.0.3.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/git2r_0.25.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/devtools_2.0.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/R6_2.4.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/httr_1.4.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/RCurl_1.95-4.12.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/BH_1.69.0-1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/xml2_1.2.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/curl_3.3.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/jsonlite_1.6.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/ini_0.3.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/downloader_0.4.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/memoise_1.1.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/plyr_1.8.4.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/XML_3.98-1.19.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/whisker_0.3-2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/bitops_1.0-6.tar.gz
RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
ps_1.3.0.tar.gz \
R6_2.4.0.tar.gz \
processx_3.3.0.tar.gz \
callr_3.2.0.tar.gz \
crayon_1.3.4.tar.gz \
assertthat_0.2.1.tar.gz \
cli_1.1.0.tar.gz \
backports_1.1.3.tar.gz \
rprojroot_1.3-2.tar.gz \
desc_1.2.0.tar.gz \
prettyunits_1.0.2.tar.gz \
withr_2.1.2.tar.gz \
pkgbuild_1.0.3.tar.gz \
rlang_0.3.3.tar.gz \
rstudioapi_0.10.tar.gz \
pkgload_1.0.2.tar.gz \
xopen_1.0.0.tar.gz \
sessioninfo_1.1.1.tar.gz \
rcmdcheck_1.3.2.tar.gz \
remotes_2.0.2.tar.gz \
whisker_0.3-2.tar.gz \
git2r_0.25.2.tar.gz \
fs_1.2.7.tar.gz \
ini_0.3.1.tar.gz \
jsonlite_1.6.tar.gz \
sys_3.1.tar.gz \
askpass_1.1.tar.gz \
openssl_1.3.tar.gz \
curl_3.3.tar.gz \
httr_1.4.0.tar.gz \
gh_1.0.1.tar.gz \
clipr_0.5.0.tar.gz \
clisymbols_1.2.0.tar.gz \
usethis_1.4.0.tar.gz \
memoise_1.1.0.tar.gz \
bitops_1.0-6.tar.gz \
RCurl_1.95-4.12.tar.gz \
plyr_1.8.4.tar.gz \
devtools_2.0.1.tar.gz \
brew_1.0-6.tar.gz \
roxygen2_5.0.1.tar.gz \
XML_3.98-1.19.tar.gz \
BH_1.69.0-1.tar.gz \
xml2_1.2.0.tar.gz \
rversions_1.0.3.tar.gz \
downloader_0.4.tar.gz
RUN rm \
ps_1.3.0.tar.gz \
callr_3.2.0.tar.gz \
R6_2.4.0.tar.gz \
processx_3.3.0.tar.gz \
crayon_1.3.4.tar.gz \
assertthat_0.2.1.tar.gz \
cli_1.1.0.tar.gz \
desc_1.2.0.tar.gz \
prettyunits_1.0.2.tar.gz \
backports_1.1.3.tar.gz \
rprojroot_1.3-2.tar.gz \
withr_2.1.2.tar.gz \
pkgbuild_1.0.3.tar.gz \
rlang_0.3.3.tar.gz \
rstudioapi_0.10.tar.gz \
clipr_0.5.0.tar.gz \
clisymbols_1.2.0.tar.gz \
pkgload_1.0.2.tar.gz \
sessioninfo_1.1.1.tar.gz \
xopen_1.0.0.tar.gz \
rcmdcheck_1.3.2.tar.gz \
remotes_2.0.2.tar.gz \
usethis_1.4.0.tar.gz \
ini_0.3.1.tar.gz \
jsonlite_1.6.tar.gz \
memoise_1.1.0.tar.gz \
whisker_0.3-2.tar.gz \
bitops_1.0-6.tar.gz \
RCurl_1.95-4.12.tar.gz \
plyr_1.8.4.tar.gz \
httr_1.4.0.tar.gz \
sys_3.1.tar.gz \
askpass_1.1.tar.gz \
openssl_1.3.tar.gz \
brew_1.0-6.tar.gz \
roxygen2_5.0.1.tar.gz \
BH_1.69.0-1.tar.gz \
XML_3.98-1.19.tar.gz \
xml2_1.2.0.tar.gz \
curl_3.3.tar.gz \
rversions_1.0.3.tar.gz \
git2r_0.25.2.tar.gz \
devtools_2.0.1.tar.gz \
downloader_0.4.tar.gz
# the CRAN install from source fails because a server at MIT will not respond
# install from source
ADD ./conf /r-studio
#RUN R CMD BATCH /r-studio/install-nloptr.R
#RUN rm /install-nloptr.Rout
RUN DEBIAN_FRONTEND=noninteractive wget \
https://archive.linux.duke.edu/cran/src/contrib/nloptr_1.2.1.tar.gz
RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
nloptr_1.2.1.tar.gz
RUN rm \
nloptr_1.2.1.tar.gz
# libraries Eric Green wanted
RUN DEBIAN_FRONTEND=noninteractive wget \
https://archive.linux.duke.edu/cran/src/contrib/lubridate_1.7.4.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/lazyeval_0.2.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/utf8_1.1.4.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/fansi_0.4.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/pillar_1.3.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/pkgconfig_2.0.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/tibble_2.1.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/ggplot2_3.1.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/RColorBrewer_1.1-2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/dichromat_2.0-0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/colorspace_1.4-1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/munsell_0.5.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/labeling_0.3.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/viridisLite_0.3.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/scales_1.0.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/stargazer_5.2.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/reshape2_1.4.3.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/gtable_0.3.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/proto_1.0.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/minqa_1.2.4.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/RcppEigen_0.3.3.5.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/lme4_1.1-21.tar.gz
RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
lubridate_1.7.4.tar.gz \
gtable_0.3.0.tar.gz \
RColorBrewer_1.1-2.tar.gz \
dichromat_2.0-0.tar.gz \
colorspace_1.4-1.tar.gz \
munsell_0.5.0.tar.gz \
labeling_0.3.tar.gz \
viridisLite_0.3.0.tar.gz \
scales_1.0.0.tar.gz \
proto_1.0.0.tar.gz \
reshape2_1.4.3.tar.gz \
lazyeval_0.2.2.tar.gz \
utf8_1.1.4.tar.gz \
fansi_0.4.0.tar.gz \
pillar_1.3.1.tar.gz \
pkgconfig_2.0.2.tar.gz \
tibble_2.1.1.tar.gz \
ggplot2_3.1.0.tar.gz \
stargazer_5.2.2.tar.gz \
minqa_1.2.4.tar.gz \
RcppEigen_0.3.3.5.0.tar.gz \
lme4_1.1-21.tar.gz
RUN rm \
lubridate_1.7.4.tar.gz \
gtable_0.3.0.tar.gz \
RColorBrewer_1.1-2.tar.gz \
dichromat_2.0-0.tar.gz \
colorspace_1.4-1.tar.gz \
munsell_0.5.0.tar.gz \
labeling_0.3.tar.gz \
viridisLite_0.3.0.tar.gz \
scales_1.0.0.tar.gz \
proto_1.0.0.tar.gz \
reshape2_1.4.3.tar.gz \
lazyeval_0.2.2.tar.gz \
utf8_1.1.4.tar.gz \
fansi_0.4.0.tar.gz \
pillar_1.3.1.tar.gz \
pkgconfig_2.0.2.tar.gz \
tibble_2.1.1.tar.gz \
ggplot2_3.1.0.tar.gz \
stargazer_5.2.2.tar.gz \
minqa_1.2.4.tar.gz \
RcppEigen_0.3.3.5.0.tar.gz \
lme4_1.1-21.tar.gz
# more libraries Mine Cetinakya-Rundel asked for
RUN DEBIAN_FRONTEND=noninteractive wget \
https://archive.linux.duke.edu/cran/src/contrib/openintro_1.7.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/bindr_0.1.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/bindrcpp_0.2.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/plogr_0.2.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/purrr_0.3.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/tidyselect_0.2.5.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/dplyr_0.8.0.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/DBI_1.0.0.tar.gz
RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
openintro_1.7.1.tar.gz \
DBI_1.0.0.tar.gz \
plogr_0.2.0.tar.gz \
bindr_0.1.1.tar.gz \
bindrcpp_0.2.2.tar.gz \
purrr_0.3.2.tar.gz \
tidyselect_0.2.5.tar.gz \
dplyr_0.8.0.1.tar.gz
RUN rm \
openintro_1.7.1.tar.gz \
DBI_1.0.0.tar.gz \
bindr_0.1.1.tar.gz \
bindrcpp_0.2.2.tar.gz \
plogr_0.2.0.tar.gz \
purrr_0.3.2.tar.gz \
tidyselect_0.2.5.tar.gz \
dplyr_0.8.0.1.tar.gz
RUN DEBIAN_FRONTEND=noninteractive wget \
https://archive.linux.duke.edu/cran/src/contrib/chron_2.3-53.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/data.table_1.12.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/rematch_1.0.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/cellranger_1.1.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/tidyr_0.8.3.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/googlesheets_0.3.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/hms_0.4.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/readr_1.3.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/selectr_0.4-1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/rvest_0.3.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/pbkrtest_0.4-7.tar.gz
RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
chron_2.3-53.tar.gz \
data.table_1.12.0.tar.gz \
rematch_1.0.1.tar.gz \
cellranger_1.1.0.tar.gz \
tidyr_0.8.3.tar.gz \
hms_0.4.2.tar.gz \
readr_1.3.1.tar.gz \
googlesheets_0.3.0.tar.gz \
selectr_0.4-1.tar.gz \
rvest_0.3.2.tar.gz \
pbkrtest_0.4-7.tar.gz
RUN rm \
chron_2.3-53.tar.gz \
data.table_1.12.0.tar.gz \
rematch_1.0.1.tar.gz \
cellranger_1.1.0.tar.gz \
tidyr_0.8.3.tar.gz \
googlesheets_0.3.0.tar.gz \
hms_0.4.2.tar.gz \
readr_1.3.1.tar.gz \
selectr_0.4-1.tar.gz \
rvest_0.3.2.tar.gz \
pbkrtest_0.4-7.tar.gz
# Shiny
#RUN wget https://download3.rstudio.org/ubuntu-12.04/x86_64/shiny-server-1.5.3.838-amd64.deb
RUN wget https://download3.rstudio.org/ubuntu-14.04/x86_64/shiny-server-1.5.7.907-amd64.deb
RUN DEBIAN_FRONTEND=noninteractive gdebi -n shiny-server-1.5.7.907-amd64.deb
RUN rm shiny-server-1.5.7.907-amd64.deb
RUN R CMD BATCH /r-studio/install-Shiny.R
RUN rm /install-Shiny.Rout
RUN DEBIAN_FRONTEND=noninteractive wget \
https://archive.linux.duke.edu/cran/src/contrib/SparseM_1.77.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/MatrixModels_0.4-1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/quantreg_5.38.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/sp_1.3-1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/maptools_0.9-5.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/haven_2.1.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/ellipsis_0.1.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/forcats_0.4.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/readxl_1.3.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/zip_2.0.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/openxlsx_4.1.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/rio_0.5.16.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/abind_1.4-5.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/carData_3.0-2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/car_3.0-2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/mosaicData_0.17.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/latticeExtra_0.6-28.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/gridExtra_2.3.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/ggdendro_0.1-20.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/mnormt_1.5-5.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/psych_1.8.12.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/generics_0.0.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/broom_0.5.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/reshape_0.8.8.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/progress_1.2.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/GGally_1.4.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/ggstance_0.3.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/ggformula_0.9.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/mosaicCore_0.6.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/ggrepel_0.8.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/base64enc_0.1-3.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/crosstalk_1.0.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/htmlwidgets_1.3.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/png_0.1-7.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/raster_2.8-19.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/viridis_0.5.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/leaflet_2.0.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/mosaic_1.5.0.tar.gz
RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
SparseM_1.77.tar.gz \
MatrixModels_0.4-1.tar.gz \
quantreg_5.38.tar.gz \
sp_1.3-1.tar.gz \
maptools_0.9-5.tar.gz \
ellipsis_0.1.0.tar.gz \
forcats_0.4.0.tar.gz \
haven_2.1.0.tar.gz \
progress_1.2.0.tar.gz \
readxl_1.3.1.tar.gz \
zip_2.0.1.tar.gz \
openxlsx_4.1.0.tar.gz \
rio_0.5.16.tar.gz \
abind_1.4-5.tar.gz \
carData_3.0-2.tar.gz \
car_3.0-2.tar.gz \
mosaicData_0.17.0.tar.gz \
latticeExtra_0.6-28.tar.gz \
gridExtra_2.3.tar.gz \
ggdendro_0.1-20.tar.gz \
mnormt_1.5-5.tar.gz \
psych_1.8.12.tar.gz \
generics_0.0.2.tar.gz \
broom_0.5.1.tar.gz \
reshape_0.8.8.tar.gz \
GGally_1.4.0.tar.gz \
mosaicCore_0.6.0.tar.gz \
ggstance_0.3.1.tar.gz \
ggformula_0.9.1.tar.gz \
ggrepel_0.8.0.tar.gz \
base64enc_0.1-3.tar.gz \
crosstalk_1.0.0.tar.gz \
htmlwidgets_1.3.tar.gz \
png_0.1-7.tar.gz \
raster_2.8-19.tar.gz \
viridis_0.5.1.tar.gz \
leaflet_2.0.2.tar.gz \
mosaic_1.5.0.tar.gz
RUN rm \
SparseM_1.77.tar.gz \
MatrixModels_0.4-1.tar.gz \
quantreg_5.38.tar.gz \
sp_1.3-1.tar.gz \
maptools_0.9-5.tar.gz \
ellipsis_0.1.0.tar.gz \
forcats_0.4.0.tar.gz \
haven_2.1.0.tar.gz \
readxl_1.3.1.tar.gz \
zip_2.0.1.tar.gz \
openxlsx_4.1.0.tar.gz \
rio_0.5.16.tar.gz \
abind_1.4-5.tar.gz \
carData_3.0-2.tar.gz \
car_3.0-2.tar.gz \
mosaicData_0.17.0.tar.gz \
latticeExtra_0.6-28.tar.gz \
gridExtra_2.3.tar.gz \
ggdendro_0.1-20.tar.gz \
mnormt_1.5-5.tar.gz \
psych_1.8.12.tar.gz \
generics_0.0.2.tar.gz \
broom_0.5.1.tar.gz \
reshape_0.8.8.tar.gz \
progress_1.2.0.tar.gz \
GGally_1.4.0.tar.gz \
mosaicCore_0.6.0.tar.gz \
ggstance_0.3.1.tar.gz \
ggformula_0.9.1.tar.gz \
ggrepel_0.8.0.tar.gz \
base64enc_0.1-3.tar.gz \
crosstalk_1.0.0.tar.gz \
htmlwidgets_1.3.tar.gz \
png_0.1-7.tar.gz \
raster_2.8-19.tar.gz \
leaflet_2.0.2.tar.gz \
viridis_0.5.1.tar.gz \
mosaic_1.5.0.tar.gz
# Cliburn Chan requested these:
RUN DEBIAN_FRONTEND=noninteractive wget \
https://archive.linux.duke.edu/cran/src/contrib/RColorBrewer_1.1-2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/maps_3.3.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/zoo_1.8-4.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/gcookbook_2.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/corrplot_0.84.tar.gz
RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
RColorBrewer_1.1-2.tar.gz \
maps_3.3.0.tar.gz \
zoo_1.8-4.tar.gz \
gcookbook_2.0.tar.gz \
corrplot_0.84.tar.gz
RUN rm \
RColorBrewer_1.1-2.tar.gz \
maps_3.3.0.tar.gz \
zoo_1.8-4.tar.gz \
gcookbook_2.0.tar.gz \
corrplot_0.84.tar.gz
# install rmarkdown
RUN R CMD BATCH /r-studio/install-rmarkdown.R
RUN rm /install-rmarkdown.Rout
# Cliburn also wanted these
# but they have mega-dependencies, so intall them the other way
RUN R CMD BATCH /r-studio/install-dendextend.R
RUN rm /install-dendextend.Rout
RUN R CMD BATCH /r-studio/install-igraph.R
RUN rm /install-igraph.Rout
# install sparklyr so we can do Spark via Livy
RUN DEBIAN_FRONTEND=noninteractive wget \
https://archive.linux.duke.edu/cran/src/contrib/config_0.3.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/dbplyr_1.3.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/rappdirs_0.3.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/r2d3_0.2.3.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/forge_0.2.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/sparklyr_1.0.0.tar.gz
RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
config_0.3.tar.gz \
dbplyr_1.3.0.tar.gz \
rappdirs_0.3.1.tar.gz \
r2d3_0.2.3.tar.gz \
forge_0.2.0.tar.gz \
sparklyr_1.0.0.tar.gz
RUN rm \
config_0.3.tar.gz \
dbplyr_1.3.0.tar.gz \
rappdirs_0.3.1.tar.gz \
r2d3_0.2.3.tar.gz \
forge_0.2.0.tar.gz \
sparklyr_1.0.0.tar.gz
# some more TeX so that papaja can be installed and students can create APA templates in Rmarkdown
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
texlive \
texlive-publishers \
texlive-fonts-extra \
texlive-latex-extra \
texlive-humanities \
lmodern
# papaja
RUN R CMD BATCH /r-studio/install-papaja.R
RUN rm /install-papaja.Rout
# install templates and examples from Reed and the Tufte package
RUN DEBIAN_FRONTEND=noninteractive wget \
https://archive.linux.duke.edu/cran/src/contrib/BHH2_2016.05.31.tar.gz
RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
BHH2_2016.05.31.tar.gz
RUN rm \
BHH2_2016.05.31.tar.gz
RUN R CMD BATCH /r-studio/install-reed.R
RUN rm /install-reed.Rout
# a couple dependencies for Eric Greene's tidycensus
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
libproj-dev \
libudunits2-0 \
libudunits2-dev \
software-properties-common
# we need gdal > 2
RUN add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
gdal-bin \
python-gdal \
libgdal-dev
RUN DEBIAN_FRONTEND=noninteractive wget \
https://archive.linux.duke.edu/cran/src/contrib/rgdal_1.4-3.tar.gz \
https://cran.r-project.org/src/contrib/Archive/rgeos/rgeos_0.3-28.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/uuid_0.1-2.tar.gz
RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
rgdal_1.4-3.tar.gz \
rgeos_0.3-28.tar.gz \
uuid_0.1-2.tar.gz
RUN rm \
rgdal_1.4-3.tar.gz \
rgeos_0.3-28.tar.gz \
uuid_0.1-2.tar.gz
RUN R CMD BATCH /r-studio/install-rappdirs.R
RUN rm /install-rappdirs.Rout
RUN DEBIAN_FRONTEND=noninteractive wget \
https://archive.linux.duke.edu/cran/src/contrib/tigris_0.7.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/tidycensus_0.9.tar.gz
RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
tigris_0.7.tar.gz \
tidycensus_0.9.tar.gz
RUN rm \
tigris_0.7.tar.gz \
tidycensus_0.9.tar.gz
# new packages for fall 2018
RUN DEBIAN_FRONTEND=noninteractive wget \
https://archive.linux.duke.edu/cran/src/contrib/tidyverse_1.2.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/promises_1.0.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/future_1.12.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/doMC_1.3.5.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/foreach_1.4.4.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/doParallel_1.0.14.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/furrr_0.1.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/drat_0.1.4.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/tidygraph_1.1.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/here_0.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/rticles_0.7.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/styler_1.1.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/lintr_1.0.3.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/testthat_2.0.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/reprex_0.2.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/microbenchmark_1.4-6.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/modelr_0.1.4.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/globals_0.12.4.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/listenv_0.7.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/iterators_1.0.10.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/enc_0.2.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/rematch2_2.0.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/rex_1.1.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/stringdist_0.9.5.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/praise_1.0.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/profmem_0.5.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/bench_1.0.1.tar.gz
RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
modelr_0.1.4.tar.gz \
prex_0.2.0.tar.gz \
reprex_0.2.1.tar.gz \
tidyverse_1.2.1.tar.gz \
promises_1.0.1.tar.gz \
globals_0.12.4.tar.gz \
listenv_0.7.0.tar.gz \
future_1.12.0.tar.gz \
iterators_1.0.10.tar.gz \
foreach_1.4.4.tar.gz \
doMC_1.3.5.tar.gz \
doParallel_1.0.14.tar.gz \
furrr_0.1.0.tar.gz \
drat_0.1.4.tar.gz \
tidygraph_1.1.2.tar.gz \
here_0.1.tar.gz \
rticles_0.7.tar.gz \
enc_0.2.0.tar.gz \
rematch2_2.0.1.tar.gz \
styler_1.1.0.tar.gz \
rex_1.1.2.tar.gz \
stringdist_0.9.5.1.tar.gz \
praise_1.0.0.tar.gz \
testthat_2.0.1.tar.gz \
lintr_1.0.3.tar.gz \
profmem_0.5.0.tar.gz \
microbenchmark_1.4-6.tar.gz \
bench_1.0.1.tar.gz
RUN rm \
modelr_0.1.4.tar.gz \
profmem_0.5.0.tar.gz \
praise_1.0.0.tar.gz \
rex_1.1.2.tar.gz \
stringdist_0.9.5.1.tar.gz \
enc_0.2.0.tar.gz \
rematch2_2.0.1.tar.gz \
globals_0.12.4.tar.gz \
iterators_1.0.10.tar.gz \
listenv_0.7.0.tar.gz \
tidyverse_1.2.1.tar.gz \
promises_1.0.1.tar.gz \
future_1.12.0.tar.gz \
doMC_1.3.5.tar.gz \
foreach_1.4.4.tar.gz \
doParallel_1.0.14.tar.gz \
furrr_0.1.0.tar.gz \
drat_0.1.4.tar.gz \
tidygraph_1.1.2.tar.gz \
here_0.1.tar.gz \
rticles_0.7.tar.gz \
styler_1.1.0.tar.gz \
lintr_1.0.3.tar.gz \
testthat_2.0.1.tar.gz \
reprex_0.2.1.tar.gz \
microbenchmark_1.4-6.tar.gz \
bench_1.0.1.tar.gz
RUN DEBIAN_FRONTEND=noninteractive wget \
https://archive.linux.duke.edu/cran/src/contrib/pryr_0.1.4.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/profvis_0.3.5.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/RcppArmadillo_0.9.200.7.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/servr_0.13.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/xaringan_0.9.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/rsconnect_0.8.13.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/PKI_0.1-5.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/RJSONIO_1.3-1.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/packrat_0.5.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/highlight_0.4.7.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/pkgdown_1.3.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/bookdown_0.9.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/blogdown_0.11.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/cowplot_0.9.4.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/influenceR_0.1.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/Rook_1.1-1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/rgexf_0.15.3.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/visNetwork_2.0.5.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/DiagrammeR_1.0.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/farver_1.1.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/tweenr_1.0.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/polyclip_1.10-0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/ggforce_0.2.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/RgoogleMaps_1.4.3.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/rjson_0.2.20.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/mapproj_1.2.6.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/jpeg_0.1-8.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/geosphere_1.5-7.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/ggmap_3.0.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/ggraph_1.0.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/shiny_1.2.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/shinyjs_1.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/flexdashboard_0.5.1.1.tar.gz
RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
pryr_0.1.4.tar.gz \
profvis_0.3.5.tar.gz \
RcppArmadillo_0.9.200.7.1.tar.gz \
servr_0.13.tar.gz \
xaringan_0.9.tar.gz \
PKI_0.1-5.1.tar.gz \
RJSONIO_1.3-1.1.tar.gz \
packrat_0.5.0.tar.gz \
rsconnect_0.8.13.tar.gz \
highlight_0.4.7.2.tar.gz \
pkgdown_1.3.0.tar.gz \
bookdown_0.9.tar.gz \
blogdown_0.11.tar.gz \
cowplot_0.9.4.tar.gz \
influenceR_0.1.0.tar.gz \
Rook_1.1-1.tar.gz \
rgexf_0.15.3.tar.gz \
visNetwork_2.0.5.tar.gz \
DiagrammeR_1.0.0.tar.gz \
farver_1.1.0.tar.gz \
tweenr_1.0.1.tar.gz \
polyclip_1.10-0.tar.gz \
ggforce_0.2.1.tar.gz \
jpeg_0.1-8.tar.gz \
RgoogleMaps_1.4.3.tar.gz \
rjson_0.2.20.tar.gz \
mapproj_1.2.6.tar.gz \
geosphere_1.5-7.tar.gz \
ggmap_3.0.0.tar.gz \
ggraph_1.0.2.tar.gz \
shiny_1.2.0.tar.gz \
shinyjs_1.0.tar.gz \
flexdashboard_0.5.1.1.tar.gz
RUN rm \
pryr_0.1.4.tar.gz \
profvis_0.3.5.tar.gz \
RcppArmadillo_0.9.200.7.1.tar.gz \
servr_0.13.tar.gz \
xaringan_0.9.tar.gz \
PKI_0.1-5.1.tar.gz \
RJSONIO_1.3-1.1.tar.gz \
packrat_0.5.0.tar.gz \
r | null | maintenance/other |
connect" | # mccahill/r-studio
#
# VERSION 1.4
FROM ubuntu:18.04
MAINTAINER Mark McCahill "mark.mccahill@duke.edu"
RUN apt-get update ; \
apt-get install gnupg2 -y
# get R from a CRAN archive (we want the 3.5 version of R)
RUN echo "deb http://cran.rstudio.com/bin/linux/ubuntu bionic-cran35/" >> /etc/apt/sources.list
RUN DEBIAN_FRONTEND=noninteractive apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
RUN apt-get update ; \
apt-get dist-upgrade -y
# we want OpenBLAS for faster linear algebra as described here: http://brettklamer.com/diversions/statistical/faster-blas-in-r/
RUN apt-get install -y \
apt-utils \
libopenblas-base
RUN apt-get update ; \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
r-base \
r-base-dev \
vim \
less \
net-tools \
inetutils-ping \
curl \
git \
telnet \
nmap \
socat \
software-properties-common \
wget \
sudo
RUN apt-get update ; \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
libcurl4-gnutls-dev \
libgit2-dev \
libxml2-dev \
libssl-dev \
libudunits2-dev \
libpoppler-cpp-dev
# we need TeX for the rmarkdown package in RStudio, and pandoc is also useful
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
texlive \
texlive-base \
texlive-latex-extra \
texlive-pstricks \
pandoc
# R-Studio
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
gdebi-core \
libapparmor1
# RUN DEBIAN_FRONTEND=noninteractive wget https://download2.rstudio.org/rstudio-server-1.1.383-amd64.deb
RUN DEBIAN_FRONTEND=noninteractive wget https://s3.amazonaws.com/rstudio-ide-build/server/trusty/amd64/rstudio-server-1.2.907-amd64.deb
RUN DEBIAN_FRONTEND=noninteractive gdebi --n rstudio-server-1.2.907-amd64.deb
RUN rm rstudio-server-1.2.907-amd64.deb
# update the R packages we will need for knitr
RUN DEBIAN_FRONTEND=noninteractive wget \
https://archive.linux.duke.edu/cran/src/contrib/xfun_0.5.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/knitr_1.22.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/yaml_2.2.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/Rcpp_1.0.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/htmltools_0.3.6.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/caTools_1.17.1.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/bitops_1.0-6.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/digest_0.6.18.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/glue_1.3.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/stringr_1.4.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/markdown_0.9.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/highr_0.8.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/formatR_1.6.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/evaluate_0.13.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/mime_0.6.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/stringi_1.4.3.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/magrittr_1.5.tar.gz
RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
bitops_1.0-6.tar.gz \
caTools_1.17.1.2.tar.gz \
digest_0.6.18.tar.gz \
Rcpp_1.0.1.tar.gz \
htmltools_0.3.6.tar.gz \
yaml_2.2.0.tar.gz \
stringi_1.4.3.tar.gz \
magrittr_1.5.tar.gz \
mime_0.6.tar.gz \
glue_1.3.1.tar.gz \
stringr_1.4.0.tar.gz \
highr_0.8.tar.gz \
formatR_1.6.tar.gz \
evaluate_0.13.tar.gz \
markdown_0.9.tar.gz \
xfun_0.5.tar.gz \
knitr_1.22.tar.gz
RUN rm \
evaluate_0.13.tar.gz \
formatR_1.6.tar.gz \
highr_0.8.tar.gz \
markdown_0.9.tar.gz \
stringi_1.4.3.tar.gz \
magrittr_1.5.tar.gz \
glue_1.3.1.tar.gz \
stringr_1.4.0.tar.gz \
xfun_0.5.tar.gz \
knitr_1.22.tar.gz \
yaml_2.2.0.tar.gz \
Rcpp_1.0.1.tar.gz \
htmltools_0.3.6.tar.gz \
caTools_1.17.1.2.tar.gz \
bitops_1.0-6.tar.gz \
digest_0.6.18.tar.gz \
mime_0.6.tar.gz
# dependency for R XML library
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
libxml2 \
libxml2-dev \
libssl-dev
# R packages we need for devtools - and we need devtools to be able to update the rmarkdown package
RUN DEBIAN_FRONTEND=noninteractive wget \
https://archive.linux.duke.edu/cran/src/contrib/processx_3.3.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/ps_1.3.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/callr_3.2.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/crayon_1.3.4.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/assertthat_0.2.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/cli_1.1.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/desc_1.2.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/prettyunits_1.0.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/backports_1.1.3.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/rprojroot_1.3-2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/withr_2.1.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/pkgbuild_1.0.3.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/rlang_0.3.3.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/rstudioapi_0.10.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/pkgload_1.0.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/rcmdcheck_1.3.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/remotes_2.0.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/xopen_1.0.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/clipr_0.5.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/clisymbols_1.2.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/sessioninfo_1.1.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/usethis_1.4.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/sys_3.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/askpass_1.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/openssl_1.3.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/brew_1.0-6.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/Archive/roxygen2/roxygen2_5.0.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/fs_1.2.7.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/gh_1.0.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/rversions_1.0.3.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/git2r_0.25.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/devtools_2.0.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/R6_2.4.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/httr_1.4.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/RCurl_1.95-4.12.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/BH_1.69.0-1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/xml2_1.2.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/curl_3.3.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/jsonlite_1.6.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/ini_0.3.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/downloader_0.4.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/memoise_1.1.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/plyr_1.8.4.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/XML_3.98-1.19.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/whisker_0.3-2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/bitops_1.0-6.tar.gz
RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
ps_1.3.0.tar.gz \
R6_2.4.0.tar.gz \
processx_3.3.0.tar.gz \
callr_3.2.0.tar.gz \
crayon_1.3.4.tar.gz \
assertthat_0.2.1.tar.gz \
cli_1.1.0.tar.gz \
backports_1.1.3.tar.gz \
rprojroot_1.3-2.tar.gz \
desc_1.2.0.tar.gz \
prettyunits_1.0.2.tar.gz \
withr_2.1.2.tar.gz \
pkgbuild_1.0.3.tar.gz \
rlang_0.3.3.tar.gz \
rstudioapi_0.10.tar.gz \
pkgload_1.0.2.tar.gz \
xopen_1.0.0.tar.gz \
sessioninfo_1.1.1.tar.gz \
rcmdcheck_1.3.2.tar.gz \
remotes_2.0.2.tar.gz \
whisker_0.3-2.tar.gz \
git2r_0.25.2.tar.gz \
fs_1.2.7.tar.gz \
ini_0.3.1.tar.gz \
jsonlite_1.6.tar.gz \
sys_3.1.tar.gz \
askpass_1.1.tar.gz \
openssl_1.3.tar.gz \
curl_3.3.tar.gz \
httr_1.4.0.tar.gz \
gh_1.0.1.tar.gz \
clipr_0.5.0.tar.gz \
clisymbols_1.2.0.tar.gz \
usethis_1.4.0.tar.gz \
memoise_1.1.0.tar.gz \
bitops_1.0-6.tar.gz \
RCurl_1.95-4.12.tar.gz \
plyr_1.8.4.tar.gz \
devtools_2.0.1.tar.gz \
brew_1.0-6.tar.gz \
roxygen2_5.0.1.tar.gz \
XML_3.98-1.19.tar.gz \
BH_1.69.0-1.tar.gz \
xml2_1.2.0.tar.gz \
rversions_1.0.3.tar.gz \
downloader_0.4.tar.gz
RUN rm \
ps_1.3.0.tar.gz \
callr_3.2.0.tar.gz \
R6_2.4.0.tar.gz \
processx_3.3.0.tar.gz \
crayon_1.3.4.tar.gz \
assertthat_0.2.1.tar.gz \
cli_1.1.0.tar.gz \
desc_1.2.0.tar.gz \
prettyunits_1.0.2.tar.gz \
backports_1.1.3.tar.gz \
rprojroot_1.3-2.tar.gz \
withr_2.1.2.tar.gz \
pkgbuild_1.0.3.tar.gz \
rlang_0.3.3.tar.gz \
rstudioapi_0.10.tar.gz \
clipr_0.5.0.tar.gz \
clisymbols_1.2.0.tar.gz \
pkgload_1.0.2.tar.gz \
sessioninfo_1.1.1.tar.gz \
xopen_1.0.0.tar.gz \
rcmdcheck_1.3.2.tar.gz \
remotes_2.0.2.tar.gz \
usethis_1.4.0.tar.gz \
ini_0.3.1.tar.gz \
jsonlite_1.6.tar.gz \
memoise_1.1.0.tar.gz \
whisker_0.3-2.tar.gz \
bitops_1.0-6.tar.gz \
RCurl_1.95-4.12.tar.gz \
plyr_1.8.4.tar.gz \
httr_1.4.0.tar.gz \
sys_3.1.tar.gz \
askpass_1.1.tar.gz \
openssl_1.3.tar.gz \
brew_1.0-6.tar.gz \
roxygen2_5.0.1.tar.gz \
BH_1.69.0-1.tar.gz \
XML_3.98-1.19.tar.gz \
xml2_1.2.0.tar.gz \
curl_3.3.tar.gz \
rversions_1.0.3.tar.gz \
git2r_0.25.2.tar.gz \
devtools_2.0.1.tar.gz \
downloader_0.4.tar.gz
# the CRAN install from source fails because a server at MIT will not respond
# install from source
ADD ./conf /r-studio
#RUN R CMD BATCH /r-studio/install-nloptr.R
#RUN rm /install-nloptr.Rout
RUN DEBIAN_FRONTEND=noninteractive wget \
https://archive.linux.duke.edu/cran/src/contrib/nloptr_1.2.1.tar.gz
RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
nloptr_1.2.1.tar.gz
RUN rm \
nloptr_1.2.1.tar.gz
# libraries Eric Green wanted
RUN DEBIAN_FRONTEND=noninteractive wget \
https://archive.linux.duke.edu/cran/src/contrib/lubridate_1.7.4.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/lazyeval_0.2.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/utf8_1.1.4.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/fansi_0.4.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/pillar_1.3.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/pkgconfig_2.0.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/tibble_2.1.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/ggplot2_3.1.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/RColorBrewer_1.1-2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/dichromat_2.0-0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/colorspace_1.4-1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/munsell_0.5.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/labeling_0.3.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/viridisLite_0.3.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/scales_1.0.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/stargazer_5.2.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/reshape2_1.4.3.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/gtable_0.3.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/proto_1.0.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/minqa_1.2.4.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/RcppEigen_0.3.3.5.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/lme4_1.1-21.tar.gz
RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
lubridate_1.7.4.tar.gz \
gtable_0.3.0.tar.gz \
RColorBrewer_1.1-2.tar.gz \
dichromat_2.0-0.tar.gz \
colorspace_1.4-1.tar.gz \
munsell_0.5.0.tar.gz \
labeling_0.3.tar.gz \
viridisLite_0.3.0.tar.gz \
scales_1.0.0.tar.gz \
proto_1.0.0.tar.gz \
reshape2_1.4.3.tar.gz \
lazyeval_0.2.2.tar.gz \
utf8_1.1.4.tar.gz \
fansi_0.4.0.tar.gz \
pillar_1.3.1.tar.gz \
pkgconfig_2.0.2.tar.gz \
tibble_2.1.1.tar.gz \
ggplot2_3.1.0.tar.gz \
stargazer_5.2.2.tar.gz \
minqa_1.2.4.tar.gz \
RcppEigen_0.3.3.5.0.tar.gz \
lme4_1.1-21.tar.gz
RUN rm \
lubridate_1.7.4.tar.gz \
gtable_0.3.0.tar.gz \
RColorBrewer_1.1-2.tar.gz \
dichromat_2.0-0.tar.gz \
colorspace_1.4-1.tar.gz \
munsell_0.5.0.tar.gz \
labeling_0.3.tar.gz \
viridisLite_0.3.0.tar.gz \
scales_1.0.0.tar.gz \
proto_1.0.0.tar.gz \
reshape2_1.4.3.tar.gz \
lazyeval_0.2.2.tar.gz \
utf8_1.1.4.tar.gz \
fansi_0.4.0.tar.gz \
pillar_1.3.1.tar.gz \
pkgconfig_2.0.2.tar.gz \
tibble_2.1.1.tar.gz \
ggplot2_3.1.0.tar.gz \
stargazer_5.2.2.tar.gz \
minqa_1.2.4.tar.gz \
RcppEigen_0.3.3.5.0.tar.gz \
lme4_1.1-21.tar.gz
# more libraries Mine Cetinakya-Rundel asked for
RUN DEBIAN_FRONTEND=noninteractive wget \
https://archive.linux.duke.edu/cran/src/contrib/openintro_1.7.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/bindr_0.1.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/bindrcpp_0.2.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/plogr_0.2.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/purrr_0.3.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/tidyselect_0.2.5.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/dplyr_0.8.0.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/DBI_1.0.0.tar.gz
RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
openintro_1.7.1.tar.gz \
DBI_1.0.0.tar.gz \
plogr_0.2.0.tar.gz \
bindr_0.1.1.tar.gz \
bindrcpp_0.2.2.tar.gz \
purrr_0.3.2.tar.gz \
tidyselect_0.2.5.tar.gz \
dplyr_0.8.0.1.tar.gz
RUN rm \
openintro_1.7.1.tar.gz \
DBI_1.0.0.tar.gz \
bindr_0.1.1.tar.gz \
bindrcpp_0.2.2.tar.gz \
plogr_0.2.0.tar.gz \
purrr_0.3.2.tar.gz \
tidyselect_0.2.5.tar.gz \
dplyr_0.8.0.1.tar.gz
RUN DEBIAN_FRONTEND=noninteractive wget \
https://archive.linux.duke.edu/cran/src/contrib/chron_2.3-53.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/data.table_1.12.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/rematch_1.0.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/cellranger_1.1.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/tidyr_0.8.3.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/googlesheets_0.3.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/hms_0.4.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/readr_1.3.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/selectr_0.4-1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/rvest_0.3.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/pbkrtest_0.4-7.tar.gz
RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
chron_2.3-53.tar.gz \
data.table_1.12.0.tar.gz \
rematch_1.0.1.tar.gz \
cellranger_1.1.0.tar.gz \
tidyr_0.8.3.tar.gz \
hms_0.4.2.tar.gz \
readr_1.3.1.tar.gz \
googlesheets_0.3.0.tar.gz \
selectr_0.4-1.tar.gz \
rvest_0.3.2.tar.gz \
pbkrtest_0.4-7.tar.gz
RUN rm \
chron_2.3-53.tar.gz \
data.table_1.12.0.tar.gz \
rematch_1.0.1.tar.gz \
cellranger_1.1.0.tar.gz \
tidyr_0.8.3.tar.gz \
googlesheets_0.3.0.tar.gz \
hms_0.4.2.tar.gz \
readr_1.3.1.tar.gz \
selectr_0.4-1.tar.gz \
rvest_0.3.2.tar.gz \
pbkrtest_0.4-7.tar.gz
# Shiny
#RUN wget https://download3.rstudio.org/ubuntu-12.04/x86_64/shiny-server-1.5.3.838-amd64.deb
RUN wget https://download3.rstudio.org/ubuntu-14.04/x86_64/shiny-server-1.5.7.907-amd64.deb
RUN DEBIAN_FRONTEND=noninteractive gdebi -n shiny-server-1.5.7.907-amd64.deb
RUN rm shiny-server-1.5.7.907-amd64.deb
RUN R CMD BATCH /r-studio/install-Shiny.R
RUN rm /install-Shiny.Rout
RUN DEBIAN_FRONTEND=noninteractive wget \
https://archive.linux.duke.edu/cran/src/contrib/SparseM_1.77.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/MatrixModels_0.4-1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/quantreg_5.38.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/sp_1.3-1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/maptools_0.9-5.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/haven_2.1.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/ellipsis_0.1.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/forcats_0.4.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/readxl_1.3.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/zip_2.0.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/openxlsx_4.1.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/rio_0.5.16.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/abind_1.4-5.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/carData_3.0-2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/car_3.0-2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/mosaicData_0.17.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/latticeExtra_0.6-28.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/gridExtra_2.3.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/ggdendro_0.1-20.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/mnormt_1.5-5.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/psych_1.8.12.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/generics_0.0.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/broom_0.5.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/reshape_0.8.8.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/progress_1.2.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/GGally_1.4.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/ggstance_0.3.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/ggformula_0.9.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/mosaicCore_0.6.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/ggrepel_0.8.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/base64enc_0.1-3.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/crosstalk_1.0.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/htmlwidgets_1.3.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/png_0.1-7.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/raster_2.8-19.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/viridis_0.5.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/leaflet_2.0.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/mosaic_1.5.0.tar.gz
RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
SparseM_1.77.tar.gz \
MatrixModels_0.4-1.tar.gz \
quantreg_5.38.tar.gz \
sp_1.3-1.tar.gz \
maptools_0.9-5.tar.gz \
ellipsis_0.1.0.tar.gz \
forcats_0.4.0.tar.gz \
haven_2.1.0.tar.gz \
progress_1.2.0.tar.gz \
readxl_1.3.1.tar.gz \
zip_2.0.1.tar.gz \
openxlsx_4.1.0.tar.gz \
rio_0.5.16.tar.gz \
abind_1.4-5.tar.gz \
carData_3.0-2.tar.gz \
car_3.0-2.tar.gz \
mosaicData_0.17.0.tar.gz \
latticeExtra_0.6-28.tar.gz \
gridExtra_2.3.tar.gz \
ggdendro_0.1-20.tar.gz \
mnormt_1.5-5.tar.gz \
psych_1.8.12.tar.gz \
generics_0.0.2.tar.gz \
broom_0.5.1.tar.gz \
reshape_0.8.8.tar.gz \
GGally_1.4.0.tar.gz \
mosaicCore_0.6.0.tar.gz \
ggstance_0.3.1.tar.gz \
ggformula_0.9.1.tar.gz \
ggrepel_0.8.0.tar.gz \
base64enc_0.1-3.tar.gz \
crosstalk_1.0.0.tar.gz \
htmlwidgets_1.3.tar.gz \
png_0.1-7.tar.gz \
raster_2.8-19.tar.gz \
viridis_0.5.1.tar.gz \
leaflet_2.0.2.tar.gz \
mosaic_1.5.0.tar.gz
RUN rm \
SparseM_1.77.tar.gz \
MatrixModels_0.4-1.tar.gz \
quantreg_5.38.tar.gz \
sp_1.3-1.tar.gz \
maptools_0.9-5.tar.gz \
ellipsis_0.1.0.tar.gz \
forcats_0.4.0.tar.gz \
haven_2.1.0.tar.gz \
readxl_1.3.1.tar.gz \
zip_2.0.1.tar.gz \
openxlsx_4.1.0.tar.gz \
rio_0.5.16.tar.gz \
abind_1.4-5.tar.gz \
carData_3.0-2.tar.gz \
car_3.0-2.tar.gz \
mosaicData_0.17.0.tar.gz \
latticeExtra_0.6-28.tar.gz \
gridExtra_2.3.tar.gz \
ggdendro_0.1-20.tar.gz \
mnormt_1.5-5.tar.gz \
psych_1.8.12.tar.gz \
generics_0.0.2.tar.gz \
broom_0.5.1.tar.gz \
reshape_0.8.8.tar.gz \
progress_1.2.0.tar.gz \
GGally_1.4.0.tar.gz \
mosaicCore_0.6.0.tar.gz \
ggstance_0.3.1.tar.gz \
ggformula_0.9.1.tar.gz \
ggrepel_0.8.0.tar.gz \
base64enc_0.1-3.tar.gz \
crosstalk_1.0.0.tar.gz \
htmlwidgets_1.3.tar.gz \
png_0.1-7.tar.gz \
raster_2.8-19.tar.gz \
leaflet_2.0.2.tar.gz \
viridis_0.5.1.tar.gz \
mosaic_1.5.0.tar.gz
# Cliburn Chan requested these:
RUN DEBIAN_FRONTEND=noninteractive wget \
https://archive.linux.duke.edu/cran/src/contrib/RColorBrewer_1.1-2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/maps_3.3.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/zoo_1.8-5.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/gcookbook_2.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/corrplot_0.84.tar.gz
RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
RColorBrewer_1.1-2.tar.gz \
maps_3.3.0.tar.gz \
zoo_1.8-5.tar.gz \
gcookbook_2.0.tar.gz \
corrplot_0.84.tar.gz
RUN rm \
RColorBrewer_1.1-2.tar.gz \
maps_3.3.0.tar.gz \
zoo_1.8-5.tar.gz \
gcookbook_2.0.tar.gz \
corrplot_0.84.tar.gz
# install rmarkdown
RUN R CMD BATCH /r-studio/install-rmarkdown.R
RUN rm /install-rmarkdown.Rout
# Cliburn also wanted these
# but they have mega-dependencies, so intall them the other way
RUN R CMD BATCH /r-studio/install-dendextend.R
RUN rm /install-dendextend.Rout
RUN R CMD BATCH /r-studio/install-igraph.R
RUN rm /install-igraph.Rout
# install sparklyr so we can do Spark via Livy
RUN DEBIAN_FRONTEND=noninteractive wget \
https://archive.linux.duke.edu/cran/src/contrib/config_0.3.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/dbplyr_1.3.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/rappdirs_0.3.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/r2d3_0.2.3.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/forge_0.2.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/sparklyr_1.0.0.tar.gz
RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
config_0.3.tar.gz \
dbplyr_1.3.0.tar.gz \
rappdirs_0.3.1.tar.gz \
r2d3_0.2.3.tar.gz \
forge_0.2.0.tar.gz \
sparklyr_1.0.0.tar.gz
RUN rm \
config_0.3.tar.gz \
dbplyr_1.3.0.tar.gz \
rappdirs_0.3.1.tar.gz \
r2d3_0.2.3.tar.gz \
forge_0.2.0.tar.gz \
sparklyr_1.0.0.tar.gz
# some more TeX so that papaja can be installed and students can create APA templates in Rmarkdown
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
texlive \
texlive-publishers \
texlive-fonts-extra \
texlive-latex-extra \
texlive-humanities \
lmodern
# papaja
RUN R CMD BATCH /r-studio/install-papaja.R
RUN rm /install-papaja.Rout
# install templates and examples from Reed and the Tufte package
RUN DEBIAN_FRONTEND=noninteractive wget \
https://archive.linux.duke.edu/cran/src/contrib/BHH2_2016.05.31.tar.gz
RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
BHH2_2016.05.31.tar.gz
RUN rm \
BHH2_2016.05.31.tar.gz
RUN R CMD BATCH /r-studio/install-reed.R
RUN rm /install-reed.Rout
# a couple dependencies for Eric Greene's tidycensus
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
libproj-dev \
libudunits2-0 \
libudunits2-dev \
software-properties-common
# we need gdal > 2
RUN add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
gdal-bin \
python-gdal \
libgdal-dev
RUN DEBIAN_FRONTEND=noninteractive wget \
https://archive.linux.duke.edu/cran/src/contrib/rgdal_1.4-3.tar.gz \
https://cran.r-project.org/src/contrib/Archive/rgeos/rgeos_0.3-28.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/uuid_0.1-2.tar.gz
RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
rgdal_1.4-3.tar.gz \
rgeos_0.3-28.tar.gz \
uuid_0.1-2.tar.gz
RUN rm \
rgdal_1.4-3.tar.gz \
rgeos_0.3-28.tar.gz \
uuid_0.1-2.tar.gz
RUN R CMD BATCH /r-studio/install-rappdirs.R
RUN rm /install-rappdirs.Rout
RUN DEBIAN_FRONTEND=noninteractive wget \
https://archive.linux.duke.edu/cran/src/contrib/tigris_0.7.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/tidycensus_0.9.tar.gz
RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
tigris_0.7.tar.gz \
tidycensus_0.9.tar.gz
RUN rm \
tigris_0.7.tar.gz \
tidycensus_0.9.tar.gz
# new packages for fall 2018
RUN DEBIAN_FRONTEND=noninteractive wget \
https://archive.linux.duke.edu/cran/src/contrib/tidyverse_1.2.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/promises_1.0.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/future_1.12.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/doMC_1.3.5.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/foreach_1.4.4.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/doParallel_1.0.14.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/furrr_0.1.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/drat_0.1.4.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/tidygraph_1.1.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/here_0.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/rticles_0.7.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/styler_1.1.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/lintr_1.0.3.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/testthat_2.0.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/reprex_0.2.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/microbenchmark_1.4-6.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/modelr_0.1.4.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/globals_0.12.4.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/listenv_0.7.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/iterators_1.0.10.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/enc_0.2.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/rematch2_2.0.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/rex_1.1.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/stringdist_0.9.5.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/praise_1.0.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/profmem_0.5.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/bench_1.0.1.tar.gz
RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
modelr_0.1.4.tar.gz \
prex_0.2.0.tar.gz \
reprex_0.2.1.tar.gz \
tidyverse_1.2.1.tar.gz \
promises_1.0.1.tar.gz \
globals_0.12.4.tar.gz \
listenv_0.7.0.tar.gz \
future_1.12.0.tar.gz \
iterators_1.0.10.tar.gz \
foreach_1.4.4.tar.gz \
doMC_1.3.5.tar.gz \
doParallel_1.0.14.tar.gz \
furrr_0.1.0.tar.gz \
drat_0.1.4.tar.gz \
tidygraph_1.1.2.tar.gz \
here_0.1.tar.gz \
rticles_0.7.tar.gz \
enc_0.2.0.tar.gz \
rematch2_2.0.1.tar.gz \
styler_1.1.0.tar.gz \
rex_1.1.2.tar.gz \
stringdist_0.9.5.1.tar.gz \
praise_1.0.0.tar.gz \
testthat_2.0.1.tar.gz \
lintr_1.0.3.tar.gz \
profmem_0.5.0.tar.gz \
microbenchmark_1.4-6.tar.gz \
bench_1.0.1.tar.gz
RUN rm \
modelr_0.1.4.tar.gz \
profmem_0.5.0.tar.gz \
praise_1.0.0.tar.gz \
rex_1.1.2.tar.gz \
stringdist_0.9.5.1.tar.gz \
enc_0.2.0.tar.gz \
rematch2_2.0.1.tar.gz \
globals_0.12.4.tar.gz \
iterators_1.0.10.tar.gz \
listenv_0.7.0.tar.gz \
tidyverse_1.2.1.tar.gz \
promises_1.0.1.tar.gz \
future_1.12.0.tar.gz \
doMC_1.3.5.tar.gz \
foreach_1.4.4.tar.gz \
doParallel_1.0.14.tar.gz \
furrr_0.1.0.tar.gz \
drat_0.1.4.tar.gz \
tidygraph_1.1.2.tar.gz \
here_0.1.tar.gz \
rticles_0.7.tar.gz \
styler_1.1.0.tar.gz \
lintr_1.0.3.tar.gz \
testthat_2.0.1.tar.gz \
reprex_0.2.1.tar.gz \
microbenchmark_1.4-6.tar.gz \
bench_1.0.1.tar.gz
RUN DEBIAN_FRONTEND=noninteractive wget \
https://archive.linux.duke.edu/cran/src/contrib/pryr_0.1.4.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/profvis_0.3.5.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/RcppArmadillo_0.9.200.7.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/servr_0.13.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/xaringan_0.9.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/rsconnect_0.8.13.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/PKI_0.1-5.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/RJSONIO_1.3-1.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/packrat_0.5.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/highlight_0.4.7.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/pkgdown_1.3.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/bookdown_0.9.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/blogdown_0.11.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/cowplot_0.9.4.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/influenceR_0.1.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/Rook_1.1-1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/rgexf_0.15.3.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/visNetwork_2.0.5.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/DiagrammeR_1.0.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/farver_1.1.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/tweenr_1.0.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/polyclip_1.10-0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/ggforce_0.2.1.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/RgoogleMaps_1.4.3.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/rjson_0.2.20.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/mapproj_1.2.6.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/jpeg_0.1-8.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/geosphere_1.5-7.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/ggmap_3.0.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/ggraph_1.0.2.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/shiny_1.2.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/shinyjs_1.0.tar.gz \
https://archive.linux.duke.edu/cran/src/contrib/flexdashboard_0.5.1.1.tar.gz
RUN DEBIAN_FRONTEND=noninteractive R CMD INSTALL \
pryr_0.1.4.tar.gz \
profvis_0.3.5.tar.gz \
RcppArmadillo_0.9.200.7.1.tar.gz \
servr_0.13.tar.gz \
xaringan_0.9.tar.gz \
PKI_0.1-5.1.tar.gz \
RJSONIO_1.3-1.1.tar.gz \
packrat_0.5.0.tar.gz \
rsconnect_0.8.13.tar.gz \
highlight_0.4.7.2.tar.gz \
pkgdown_1.3.0.tar.gz \
bookdown_0.9.tar.gz \
blogdown_0.11.tar.gz \
cowplot_0.9.4.tar.gz \
influenceR_0.1.0.tar.gz \
Rook_1.1-1.tar.gz \
rgexf_0.15.3.tar.gz \
visNetwork_2.0.5.tar.gz \
DiagrammeR_1.0.0.tar.gz \
farver_1.1.0.tar.gz \
tweenr_1.0.1.tar.gz \
polyclip_1.10-0.tar.gz \
ggforce_0.2.1.tar.gz \
jpeg_0.1-8.tar.gz \
RgoogleMaps_1.4.3.tar.gz \
rjson_0.2.20.tar.gz \
mapproj_1.2.6.tar.gz \
geosphere_1.5-7.tar.gz \
ggmap_3.0.0.tar.gz \
ggraph_1.0.2.tar.gz \
shiny_1.2.0.tar.gz \
shinyjs_1.0.tar.gz \
flexdashboard_0.5.1.1.tar.gz
RUN rm \
pryr_0.1.4.tar.gz \
profvis_0.3.5.tar.gz \
RcppArmadillo_0.9.200.7.1.tar.gz \
servr_0.13.tar.gz \
xaringan_0.9.tar.gz \
PKI_0.1-5.1.tar.gz \
RJSONIO_1.3-1.1.tar.gz \
packrat_0.5.0.tar.gz \
r | null | null | null | null | feature addition |
connect" | null | null | null | null | null | maintenance/other |
300 | 1324476da8d000b901c9863b7e324f3010f7db38 | add slapd. | add slapd.
| FROM debian:wheezy
MAINTAINER Semen Pisarev <s.a.pisarev@gmail.com>
ENV DEBIAN_FRONTEND noninteractive
RUN echo "APT::Install-Recommends 0;" >> /etc/apt/apt.conf.d/01norecommends \
&& echo "APT::Install-Suggests 0;" >> /etc/apt/apt.conf.d/01norecommends
ENV IREDMAIL_VERSION 0.9.2
# TODO: Replace hostname
ENV HOSTNAME mx.phoneyou.net
ENV DOCKER_LDAP_DN dc=phoneyou,dc=net
# Local sources (for speed-up)
COPY ./sources.list.163 /etc/apt/sources.list
# Install some necessary packages
RUN echo 'deb http://inverse.ca/debian wheezy wheezy' > \
/etc/apt/sources.list.d/00-inverse-ca.list \
&& apt-key adv --keyserver keys.gnupg.net --recv-key 0x810273C4 \
&& apt-get -q update \
&& apt-get install -y -q \
apt-utils \
&& apt-get install -y -q \
curl \
wget \
bzip2 \
dialog \
openssl \
openldap \
rsync \
python-pygments \
python-ldap \
rsyslog \
dovecot-core \
dovecot-imapd \
dovecot-ldap \
dovecot-lmtpd \
dovecot-managesieved \
dovecot-mysql \
dovecot-pop3d \
dovecot-sieve \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& rm -f /etc/apt/sources.list.d/00-inverse-ca.list
# Set working directory
WORKDIR /opt/iredmail
# Copy files, extract iRedMail, remove archive, copy & configure tools
COPY ./files ./
RUN cp -rl iRedMail-"${IREDMAIL_VERSION}"/* . \
&& rm -rf iRedMail-"${IREDMAIL_VERSION}"* \
&& mkdir -p /opt/itools \
&& cp ./tools/* /opt/itools \
&& mkdir -p /var/vmail/backup \
&& mv ./backup.sh /var/vmail/backup \
&& sed -i 's/dc=phoneyou,dc=net/'"$DOCKER_LDAP_DN"'/' \
/opt/itools/create_mail_user_OpenLDAP.py
# Fake `uname` and `hostname`
RUN mv /bin/uname /bin/uname_ \
&& mv /bin/hostname /bin/hostname_ \
&& cp -l ./hostname ./uname /bin/
# Set hostname
RUN echo $HOSTNAME > /etc/hostname \
&& echo $HOSTNAME > /etc/mailname \
&& mkdir -p /etc/apache2/ \
&& echo 'ServerName '$HOSTNAME > /etc/apache2/httpd.conf
# Make link to Apache log files
RUN rm -rf /var/www/apache2/ \
&& mkdir -p /var/log/apache2/www/ /var/www/ \
&& ln -s /var/log/apache2/www/ /var/www/apache2 \
&& chown -R www-data:www-data /var/www/ /var/log/apache2/
# Make ClamAV socket file (to avoid installation warning)
RUN touch /tmp/clamd.socket \
&& chmod -Rf 766 /tmp/clamd.socket
# Avoid getty errors in log files
RUN sed -ri 's/^[1-6]:[2-6]{2,4}:.*/#\0/' /etc/inittab
# Enable services startup during install,
# run iRedMail installation & remove unneeded,
# disable services startup during install
RUN sed -i 's/ 101/ 0/' /usr/sbin/policy-rc.d \
&& IREDMAIL_DEBUG='NO' \
AUTO_USE_EXISTING_CONFIG_FILE=y \
AUTO_INSTALL_WITHOUT_CONFIRM=y \
AUTO_CLEANUP_REMOVE_SENDMAIL=y \
AUTO_CLEANUP_REMOVE_MOD_PYTHON=y \
AUTO_CLEANUP_REPLACE_FIREWALL_RULES=n \
AUTO_CLEANUP_RESTART_IPTABLES=y \
AUTO_CLEANUP_REPLACE_MYSQL_CONFIG=y \
AUTO_CLEANUP_RESTART_POSTFIX=n \
bash iRedMail.sh \
&& apt-get purge -y -q dialog apt-utils \
&& apt-get autoremove -y -q \
&& apt-get clean -y -q \
&& rm -rf /var/lib/apt/lists/* \
&& sed -i 's/ 0/ 101/' /usr/sbin/policy-rc.d
# Process initial CSV
RUN if [ -e mail_users.csv ]; \
then \
python /opt/itools/create_mail_user_OpenLDAP.py ./mail_users.csv \
&& mv ./mail_users.csv.ldif ldifs/20_mail_users.ldif; \
fi
# Run slapd as root
RUN rm -rf /etc/ldap/slapd.d \
&& sed -i 's/openldap/root/g' /etc/default/slapd
# TODO: Replace ldap password (LDAP_ROOTPW)
# Copy initial ldif and add all ldifs to ldap
RUN cp /opt/iredmail/conf/ldap_init.ldif ldifs/00_ldap_init.ldif \
&& service slapd start \
&& for f in ldifs/*.ldif; \
do \
( ldapadd -D 'cn=Manager,'"$DOCKER_LDAP_DN" -w phoneyou$ldap -f "$f" || \
ldapmodify -v -D 'cn=Manager,'"$DOCKER_LDAP_DN" -w phoneyou$ldap -f "$f" ); \
done
# Encrypy iRedMail.tips
# TODO: Replace tips password (random)
RUN echo 'YWYxNWY5NTMwZjVmNmNhOTNmZDY1Zj' | \
openssl enc -in /opt/iredmail/iRedMail.tips -out /opt/iRedMail.tips.enc \
-e -aes256 -pass stdin
# Schedule backup script
RUN (crontab -l 2>/dev/null; \
echo "0 4 * * * /bin/bash /var/vmail/backup/backup.sh") | \
crontab -
# Force users to change passwords
RUN echo "plugins.append('ldap_force_change_password_in_days')" \
>> /opt/iredapd/settings.py \
&& echo "CHANGE_PASSWORD_DAYS = 365" >> /opt/iredapd/settings.py \
&& echo "CHANGE_PASSWORD_MESSAGE = 'Please change your password in webmail: https://$HOSTNAME/mail/'" \
>> /opt/iredapd/settings.py
WORKDIR /opt
# Remove distr, return `uname` and `hostname`
RUN rm -rf /opt/iredmail /root/.bash_history \
&& rm -f /bin/uname /bin/hostname \
&& mv /bin/uname_ /bin/uname \
&& mv /bin/hostname_ /bin/hostname
# Open Ports:
# Apache: 80/tcp, 443/tcp Postfix: 25/tcp, 587/tcp
# Dovecot: 110/tcp, 143/tcp, 993/tcp, 995/tcp OpenLDAP: 389/tcp, 636/tcp
EXPOSE 80 443 25 587 110 143 993 995 389 636
# Volume for backups
VOLUME /backups
# Start all services
CMD ["/sbin/init","2"]
| FROM debian:wheezy
MAINTAINER Semen Pisarev <s.a.pisarev@gmail.com>
ENV DEBIAN_FRONTEND noninteractive
RUN echo "APT::Install-Recommends 0;" >> /etc/apt/apt.conf.d/01norecommends \
&& echo "APT::Install-Suggests 0;" >> /etc/apt/apt.conf.d/01norecommends
ENV IREDMAIL_VERSION 0.9.2
# TODO: Replace hostname
ENV HOSTNAME mx.phoneyou.net
ENV DOCKER_LDAP_DN dc=phoneyou,dc=net
# Local sources (for speed-up)
COPY ./sources.list.163 /etc/apt/sources.list
# Install some necessary packages
RUN echo 'deb http://inverse.ca/debian wheezy wheezy' > \
/etc/apt/sources.list.d/00-inverse-ca.list \
&& apt-key adv --keyserver keys.gnupg.net --recv-key 0x810273C4 \
&& apt-get -q update \
&& apt-get install -y -q \
apt-utils \
&& apt-get install -y -q \
curl \
wget \
bzip2 \
dialog \
openssl \
slapd \
rsync \
python-pygments \
python-ldap \
rsyslog \
dovecot-core \
dovecot-imapd \
dovecot-ldap \
dovecot-lmtpd \
dovecot-managesieved \
dovecot-mysql \
dovecot-pop3d \
dovecot-sieve \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& rm -f /etc/apt/sources.list.d/00-inverse-ca.list
# Set working directory
WORKDIR /opt/iredmail
# Copy files, extract iRedMail, remove archive, copy & configure tools
COPY ./files ./
RUN cp -rl iRedMail-"${IREDMAIL_VERSION}"/* . \
&& rm -rf iRedMail-"${IREDMAIL_VERSION}"* \
&& mkdir -p /opt/itools \
&& cp ./tools/* /opt/itools \
&& mkdir -p /var/vmail/backup \
&& mv ./backup.sh /var/vmail/backup \
&& sed -i 's/dc=phoneyou,dc=net/'"$DOCKER_LDAP_DN"'/' \
/opt/itools/create_mail_user_OpenLDAP.py
# Fake `uname` and `hostname`
RUN mv /bin/uname /bin/uname_ \
&& mv /bin/hostname /bin/hostname_ \
&& cp -l ./hostname ./uname /bin/
# Set hostname
RUN echo $HOSTNAME > /etc/hostname \
&& echo $HOSTNAME > /etc/mailname \
&& mkdir -p /etc/apache2/ \
&& echo 'ServerName '$HOSTNAME > /etc/apache2/httpd.conf
# Make link to Apache log files
RUN rm -rf /var/www/apache2/ \
&& mkdir -p /var/log/apache2/www/ /var/www/ \
&& ln -s /var/log/apache2/www/ /var/www/apache2 \
&& chown -R www-data:www-data /var/www/ /var/log/apache2/
# Make ClamAV socket file (to avoid installation warning)
RUN touch /tmp/clamd.socket \
&& chmod -Rf 766 /tmp/clamd.socket
# Avoid getty errors in log files
RUN sed -ri 's/^[1-6]:[2-6]{2,4}:.*/#\0/' /etc/inittab
# Enable services startup during install,
# run iRedMail installation & remove unneeded,
# disable services startup during install
RUN sed -i 's/ 101/ 0/' /usr/sbin/policy-rc.d \
&& IREDMAIL_DEBUG='NO' \
AUTO_USE_EXISTING_CONFIG_FILE=y \
AUTO_INSTALL_WITHOUT_CONFIRM=y \
AUTO_CLEANUP_REMOVE_SENDMAIL=y \
AUTO_CLEANUP_REMOVE_MOD_PYTHON=y \
AUTO_CLEANUP_REPLACE_FIREWALL_RULES=n \
AUTO_CLEANUP_RESTART_IPTABLES=y \
AUTO_CLEANUP_REPLACE_MYSQL_CONFIG=y \
AUTO_CLEANUP_RESTART_POSTFIX=n \
bash iRedMail.sh \
&& apt-get purge -y -q dialog apt-utils \
&& apt-get autoremove -y -q \
&& apt-get clean -y -q \
&& rm -rf /var/lib/apt/lists/* \
&& sed -i 's/ 0/ 101/' /usr/sbin/policy-rc.d
# Process initial CSV
RUN if [ -e mail_users.csv ]; \
then \
python /opt/itools/create_mail_user_OpenLDAP.py ./mail_users.csv \
&& mv ./mail_users.csv.ldif ldifs/20_mail_users.ldif; \
fi
# Run slapd as root
RUN rm -rf /etc/ldap/slapd.d \
&& sed -i 's/openldap/root/g' /etc/default/slapd
# TODO: Replace ldap password (LDAP_ROOTPW)
# Copy initial ldif and add all ldifs to ldap
RUN cp /opt/iredmail/conf/ldap_init.ldif ldifs/00_ldap_init.ldif \
&& service slapd start \
&& for f in ldifs/*.ldif; \
do \
( ldapadd -D 'cn=Manager,'"$DOCKER_LDAP_DN" -w phoneyou$ldap -f "$f" || \
ldapmodify -v -D 'cn=Manager,'"$DOCKER_LDAP_DN" -w phoneyou$ldap -f "$f" ); \
done
# Encrypy iRedMail.tips
# TODO: Replace tips password (random)
RUN echo 'YWYxNWY5NTMwZjVmNmNhOTNmZDY1Zj' | \
openssl enc -in /opt/iredmail/iRedMail.tips -out /opt/iRedMail.tips.enc \
-e -aes256 -pass stdin
# Schedule backup script
RUN (crontab -l 2>/dev/null; \
echo "0 4 * * * /bin/bash /var/vmail/backup/backup.sh") | \
crontab -
# Force users to change passwords
RUN echo "plugins.append('ldap_force_change_password_in_days')" \
>> /opt/iredapd/settings.py \
&& echo "CHANGE_PASSWORD_DAYS = 365" >> /opt/iredapd/settings.py \
&& echo "CHANGE_PASSWORD_MESSAGE = 'Please change your password in webmail: https://$HOSTNAME/mail/'" \
>> /opt/iredapd/settings.py
WORKDIR /opt
# Remove distr, return `uname` and `hostname`
RUN rm -rf /opt/iredmail /root/.bash_history \
&& rm -f /bin/uname /bin/hostname \
&& mv /bin/uname_ /bin/uname \
&& mv /bin/hostname_ /bin/hostname
# Open Ports:
# Apache: 80/tcp, 443/tcp Postfix: 25/tcp, 587/tcp
# Dovecot: 110/tcp, 143/tcp, 993/tcp, 995/tcp OpenLDAP: 389/tcp, 636/tcp
EXPOSE 80 443 25 587 110 143 993 995 389 636
# Volume for backups
VOLUME /backups
# Start all services
CMD ["/sbin/init","2"]
| feature addition |
69 | 7ab359c3639d925b641e2e9c6195ddf35acd731b | Bumped source to 20200311-426bedf | Bumped source to 20200311-426bedf
| FROM docker.pkg.github.com/dock0/ssh/ssh:20200311-865905c
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm --needed cpio dnsutils htop lockfile-progs lsof mtr net-tools whois zsh neovim
RUN usermod --shell /usr/bin/zsh $ADMIN
RUN su - $ADMIN -c "git clone git://github.com/akerl/....git /home/$ADMIN/..."
RUN su - $ADMIN -c '.../... conf https://raw.githubusercontent.com/akerl/dotfiles/master/.dotdotdot.conf'
RUN su - $ADMIN -c '.../... supi'
| FROM docker.pkg.github.com/dock0/ssh/ssh:20200311-426bedf
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm --needed cpio dnsutils htop lockfile-progs lsof mtr net-tools whois zsh neovim
RUN usermod --shell /usr/bin/zsh $ADMIN
RUN su - $ADMIN -c "git clone git://github.com/akerl/....git /home/$ADMIN/..."
RUN su - $ADMIN -c '.../... conf https://raw.githubusercontent.com/akerl/dotfiles/master/.dotdotdot.conf'
RUN su - $ADMIN -c '.../... supi'
| maintenance/other |
157 | e6c9219191101a714488539ddf04b5f491b8c973 | add python-pip package, install websocket-client pip package | add python-pip package, install websocket-client pip package
useful for the slack client
| FROM ubuntu:yakkety
MAINTAINER Florian Klink <flokli@flokli.de>
RUN apt-get update && apt-get install -y dirmngr apt-transport-https
RUN apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys 11E9DE8848F2B65222AA75B8D1820DB22A11534E
RUN bash -c "echo 'deb https://weechat.org/ubuntu yakkety main' >/etc/apt/sources.list.d/weechat.list"
RUN bash -c "echo 'deb-src https://weechat.org/ubuntu yakkety main' >>/etc/apt/sources.list.d/weechat.list"
RUN apt-get update && apt-get install -y \
weechat weechat-plugins weechat-scripts \
bitlbee bitlbee-plugin-otr \
rxvt-unicode-256color
RUN locale-gen en_US.UTF-8
RUN locale-gen de_DE.UTF-8
RUN ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
ADD bitlbee.conf /etc/bitlbee/bitlbee.conf
ADD run.sh /run.sh
RUN chmod +x /run.sh
CMD ["/run.sh"]
| FROM ubuntu:yakkety
MAINTAINER Florian Klink <flokli@flokli.de>
RUN apt-get update && apt-get install -y dirmngr apt-transport-https
RUN apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys 11E9DE8848F2B65222AA75B8D1820DB22A11534E
RUN bash -c "echo 'deb https://weechat.org/ubuntu yakkety main' >/etc/apt/sources.list.d/weechat.list"
RUN bash -c "echo 'deb-src https://weechat.org/ubuntu yakkety main' >>/etc/apt/sources.list.d/weechat.list"
RUN apt-get update && apt-get install -y \
weechat weechat-plugins weechat-scripts \
python-pip \
bitlbee bitlbee-plugin-otr \
rxvt-unicode-256color
RUN locale-gen en_US.UTF-8
RUN locale-gen de_DE.UTF-8
RUN ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
ADD bitlbee.conf /etc/bitlbee/bitlbee.conf
RUN pip install websocket-client
ADD run.sh /run.sh
RUN chmod +x /run.sh
CMD ["/run.sh"]
| feature addition |
2135 | 5c7fa385590235d2911fda6c821bd9c0b1c15c9d | Bump debian from 11.3-slim to 11.4-slim in /dev/ci/docker_linux (#107865) | Bump debian from 11.3-slim to 11.4-slim in /dev/ci/docker_linux (#107865)
| # Flutter (https://flutter.dev) Development Environment for Linux
# ===============================================================
#
# This environment passes all Linux Flutter Doctor checks and is sufficient
# for building Android applications and running Flutter tests.
#
# To build iOS applications, a Mac development environment is necessary.
#
# This includes applications and sdks that are needed only by the CI system
# for performing pushes to production, and so this image is quite a bit larger
# than strictly needed for just building Flutter apps.
# Last manual update 2021-09-24 (changing this comment will re-build image)
FROM debian@sha256:f6957458017ec31c4e325a76f39d6323c4c21b0e31572efa006baa927a160891
MAINTAINER Flutter Developers <flutter-dev@googlegroups.com>
RUN apt-get update -y && \
apt-get upgrade -y
# Install basics
RUN apt-get install -y --no-install-recommends \
git \
wget \
curl \
zip \
unzip \
apt-transport-https \
ca-certificates \
gnupg
# Add repo for chrome stable
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
RUN echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | \
tee /etc/apt/sources.list.d/google-chrome.list
# Add repo for gcloud sdk and install it
RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | \
tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | \
apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
RUN apt-get update && apt-get install -y google-cloud-sdk && \
gcloud config set core/disable_usage_reporting true && \
gcloud config set component_manager/disable_update_check true
# Add repo for OpenJDK 8 from JFrog.io
RUN wget -q -O - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | apt-key add -
RUN echo 'deb [arch=amd64] https://adoptopenjdk.jfrog.io/adoptopenjdk/deb bullseye main' | \
tee /etc/apt/sources.list.d/adoptopenjdk.list
# Install the dependencies needed for the rest of the build.
RUN apt-get update && apt-get install -y --no-install-recommends \
adoptopenjdk-8-hotspot \
build-essential \
default-jdk-headless \
gcc \
google-chrome-stable \
lib32stdc++6 \
libglu1-mesa \
libstdc++6 \
locales \
nodejs \
npm \
ruby \
ruby-dev && \
apt-get clean
ENV JAVA_HOME="/usr/lib/jvm/adoptopenjdk-8-hotspot-amd64"
# Install the Android SDK Dependency.
ENV ANDROID_SDK_URL="https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip"
ENV ANDROID_TOOLS_ROOT="/opt/android_sdk"
RUN mkdir -p "${ANDROID_TOOLS_ROOT}"
RUN mkdir -p ~/.android
# Silence warning.
RUN touch ~/.android/repositories.cfg
ENV ANDROID_SDK_ARCHIVE="${ANDROID_TOOLS_ROOT}/archive"
RUN wget --progress=dot:giga "${ANDROID_SDK_URL}" -O "${ANDROID_SDK_ARCHIVE}"
RUN unzip -q -d "${ANDROID_TOOLS_ROOT}" "${ANDROID_SDK_ARCHIVE}"
# Suppressing output of sdkmanager to keep log size down
# (it prints install progress WAY too often).
RUN yes "y" | "${ANDROID_TOOLS_ROOT}/tools/bin/sdkmanager" "tools" > /dev/null
RUN yes "y" | "${ANDROID_TOOLS_ROOT}/tools/bin/sdkmanager" "build-tools;28.0.3" > /dev/null
RUN yes "y" | "${ANDROID_TOOLS_ROOT}/tools/bin/sdkmanager" "platforms;android-30" > /dev/null
RUN yes "y" | "${ANDROID_TOOLS_ROOT}/tools/bin/sdkmanager" "platform-tools" > /dev/null
RUN yes "y" | "${ANDROID_TOOLS_ROOT}/tools/bin/sdkmanager" "cmdline-tools;latest" > /dev/null
RUN yes "y" | "${ANDROID_TOOLS_ROOT}/tools/bin/sdkmanager" "extras;android;m2repository" > /dev/null
RUN yes "y" | "${ANDROID_TOOLS_ROOT}/tools/bin/sdkmanager" "extras;google;m2repository" > /dev/null
RUN yes "y" | "${ANDROID_TOOLS_ROOT}/tools/bin/sdkmanager" "patcher;v4" > /dev/null
RUN rm "${ANDROID_SDK_ARCHIVE}"
ENV PATH="${ANDROID_TOOLS_ROOT}/tools:${PATH}"
ENV PATH="${ANDROID_TOOLS_ROOT}/tools/bin:${PATH}"
# Silence warnings when accepting android licenses.
RUN mkdir -p ~/.android
RUN touch ~/.android/repositories.cfg
# Add npm to path.
ENV PATH="/usr/bin:${PATH}"
# Set locale to en_US
RUN locale-gen en_US "en_US.UTF-8" && DEBIAN_FRONTEND=noninteractive dpkg-reconfigure locales
ENV LANG en_US.UTF-8
# Install dependencies for desktop flutter run
RUN apt-get install -y --no-install-recommends \
clang \
cmake \
libgtk-3-dev \
ninja-build \
pkg-config \
x11-xserver-utils \
xauth \
xvfb && \
apt-get upgrade -y --no-install-recommends && \
apt-get clean
| null | maintenance/other |
342 | 89a9660bad6598b1529e3162a04dd07c80203dd0 | Add bird deb to dockerfile. | Add bird deb to dockerfile.
| FROM fastlynet101/base
MAINTAINER dbarroso@fastly.com
LABEL fastly.net101.name=bird
WORKDIR /root
RUN dpkg -i ./bird_1.6.3-1+xenial+1_amd64.deb
RUN apt-get install -y inotify-tools netcat
RUN mkdir /run/bird
COPY ./run.sh /bin/run.sh
COPY ./birdwatcher /bin/birdwatcher
COPY ./webserver /bin/webserver
ENTRYPOINT ["/bin/run.sh"]
| FROM fastlynet101/base
MAINTAINER dbarroso@fastly.com
LABEL fastly.net101.name=bird
WORKDIR /root
ADD bird_1.6.3-1+xenial+1_amd64.deb /
RUN DEBIAN_FRONTEND=noninteractive dpkg -i /bird_1.6.3-1+xenial+1_amd64.deb
RUN apt-get install -y inotify-tools netcat
RUN mkdir /run/bird
COPY ./run.sh /bin/run.sh
COPY ./birdwatcher /bin/birdwatcher
COPY ./webserver /bin/webserver
ENTRYPOINT ["/bin/run.sh"]
| code refactoring, maintenance/other |
2325 | dc1a5c687b1ec67581b535fe2c48b71eb431d4d4 | Bumped source to 20201214-8c2fdda | Bumped source to 20201214-8c2fdda
| FROM docker.pkg.github.com/dock0/arch/arch:20201214-b82e33b
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm base-devel musl vim-minimal tree openssh
ENV EDITOR vim
WORKDIR /opt/build
CMD ["make", "local"]
| null | Not enough inforamtion |
2284 | 35ad5ec9de7041f4eacbb7b68e711a1524ef6d5b | bump shiny to 1.4.4 | bump shiny to 1.4.4
update shiny md5 hash
|
# docker build --no-cache -t math-server:latest --build-arg http_proxy="http://proxy:8080" --build-arg https_proxy="http://proxy:8080" .
# In case you're building the image behind a proxy, use
# docker build --no-cache -t math-server:latest --build-arg http_proxy="http://proxy:8080" --build-arg https_proxy="http://proxy:8080" .
# 8787 for RStudio
# 8000 for Jupyter
# # docker run -d -p 8787:8787 -p 8000:8000 --name ms1 math-server
FROM centos:7
MAINTAINER felipenoris <felipenoris@users.noreply.github.com>
WORKDIR /root
ENV JULIA_PKGDIR /usr/local/julia/share/julia/site
RUN echo "export PATH=/usr/local/sbin:/usr/local/bin:${PATH}" >> /etc/profile.d/local-bin.sh \
&& echo "export CPATH=/usr/include/glpk" >> /etc/profile.d/glpk-include.sh \
&& source /etc/profile
RUN yum update -y && yum install -y epel-release && yum clean all
RUN yum update -y && yum install -y \
p7zip \
p7zip-plugins \
bison \
bzip2 \
bzip2-devel \
cmake \
curl-devel \
expat-devel \
flex \
gcc \
gcc-c++ \
gcc-gfortran \
gettext-devel \
glibc-devel \
java-1.8.0-openjdk-devel \
lynx \
libcurl \
libcurl-devel \
libedit-devel libffi-devel \
libgcc \
libstdc++-static \
m4 \
make \
man \
nano \
nload \
htop \
openssl \
openssl098e \
openssl-devel \
patch \
perl-ExtUtils-MakeMaker \
svn \
unzip \
valgrind \
sqlite \
sqlite-devel \
vim \
wget \
zlib \
zlib-devel \
zip \
&& yum clean all
# GIT
# http://tecadmin.net/install-git-2-0-on-centos-rhel-fedora/#
ENV GIT_VER 2.9.3
RUN wget https://www.kernel.org/pub/software/scm/git/git-$GIT_VER.tar.gz \
&& tar xf git-$GIT_VER.tar.gz && cd git-$GIT_VER \
&& make -j"$(nproc --all)" prefix=/usr/local all \
&& make prefix=/usr/local -j"$(nproc --all)" install \
&& cd .. && rm -f git-$GIT_VER.tar.gz && rm -rf git-$GIT_VER
# Makes git use https by default
RUN git config --global url."https://".insteadOf git://
# llvm needs CMake 2.8.12.2 or higher
# https://cmake.org/download/
ENV CMAKE_VER_MAJ 3.6
ENV CMAKE_VER_MIN .1
ENV CMAKE_VER $CMAKE_VER_MAJ$CMAKE_VER_MIN
RUN wget https://cmake.org/files/v$CMAKE_VER_MAJ/cmake-$CMAKE_VER.tar.gz \
&& tar xf cmake-$CMAKE_VER.tar.gz && cd cmake-$CMAKE_VER \
&& ./bootstrap && make -j"$(nproc --all)" && make -j"$(nproc --all)" install \
&& cd .. && rm -rf cmake-$CMAKE_VER && rm -f cmake-$CMAKE_VER.tar.gz \
&& echo "export CMAKE_ROOT=/usr/local/share/cmake-$CMAKE_VER_MAJ" > /etc/profile.d/cmake-root.sh \
&& source /etc/profile
# Python 2
# https://github.com/h2oai/h2o-2/wiki/Installing-python-2.7-on-centos-6.3.-Follow-this-sequence-exactly-for-centos-machine-only
ENV PYTHON2_VER_MAJ 2.7
ENV PYTHON2_VER_MIN .11
ENV PYTHON2_VER $PYTHON2_VER_MAJ$PYTHON2_VER_MIN
RUN wget https://www.python.org/ftp/python/$PYTHON2_VER/Python-$PYTHON2_VER.tar.xz \
&& tar xf Python-$PYTHON2_VER.tar.xz \
&& cd Python-$PYTHON2_VER \
&& ./configure --prefix=/usr/local/python$PYTHON2_VER_MAJ --enable-shared --with-cxx-main=/usr/bin/g++ \
&& make -j"$(nproc --all)" \
&& make -j"$(nproc --all)" altinstall \
&& echo "/usr/local/lib" > /etc/ld.so.conf.d/usrLocalLib.conf \
&& ldconfig \
&& cd .. && rm -f Python-$PYTHON2_VER.tar.xz && rm -rf Python-$PYTHON2_VER
# pip for Python 2
RUN curl -O https://bootstrap.pypa.io/get-pip.py \
&& /usr/local/python$PYTHON2_VER_MAJ/bin/python$PYTHON2_VER_MAJ get-pip.py \
&& rm -f get-pip.py
# Python 3
ENV PYTHON3_VER_MAJ 3.5
ENV PYTHON3_VER_MIN .1
ENV PYTHON3_VER $PYTHON3_VER_MAJ$PYTHON3_VER_MIN
RUN wget https://www.python.org/ftp/python/$PYTHON3_VER/Python-$PYTHON3_VER.tar.xz \
&& tar xf Python-$PYTHON3_VER.tar.xz && cd Python-$PYTHON3_VER \
&& ./configure --prefix=/usr/local --enable-shared --with-cxx-main=/usr/bin/g++ \
&& echo "zlib zlibmodule.c -I\$(prefix)/include -L\$(exec_prefix)/lib -lz" >> ./Modules/Setup \
&& make -j"$(nproc --all)" \
&& make -j"$(nproc --all)" altinstall \
&& ln -s /usr/local/bin/python$PYTHON3_VER_MAJ /usr/local/bin/python3 \
&& ln -s /usr/local/bin/pip$PYTHON3_VER_MAJ /usr/local/bin/pip3 \
&& ldconfig \
&& cd .. && rm -f Python-$PYTHON3_VER.tar.xz && rm -rf Python-$PYTHON3_VER
# Upgrade pip
# https://pip.pypa.io/en/stable/installing/#upgrading-pip
RUN pip2 install -U pip
RUN pip3 install -U pip
# LLVM deps
# TODO: check if python-devel is needed
RUN yum -y install \
libedit-devel \
libffi-devel \
swig \
python-devel \
&& yum clean all
# LLVM
# Clang /tools/clang
# CompilerRT /projects/compiler-rt
# libc++ /projects/libcxx
# libc++abi /projects/libcxxabi
# lldb /tools/lldb
ENV LLVM_VER 3.7.1
RUN wget http://llvm.org/releases/$LLVM_VER/llvm-$LLVM_VER.src.tar.xz \
&& wget http://llvm.org/releases/$LLVM_VER/cfe-$LLVM_VER.src.tar.xz \
&& wget http://llvm.org/releases/$LLVM_VER/compiler-rt-$LLVM_VER.src.tar.xz \
&& wget http://llvm.org/releases/$LLVM_VER/libcxx-$LLVM_VER.src.tar.xz \
&& wget http://llvm.org/releases/$LLVM_VER/libcxxabi-$LLVM_VER.src.tar.xz \
&& wget http://llvm.org/releases/$LLVM_VER/lldb-$LLVM_VER.src.tar.xz \
&& mkdir llvm \
&& tar xf llvm-$LLVM_VER.src.tar.xz -C llvm --strip-components=1 \
&& mkdir llvm/tools/clang \
&& tar xf cfe-$LLVM_VER.src.tar.xz -C llvm/tools/clang --strip-components=1 \
&& mkdir llvm/projects/compiler-rt \
&& tar xf compiler-rt-$LLVM_VER.src.tar.xz -C llvm/projects/compiler-rt --strip-components=1 \
&& mkdir llvm/projects/libcxx \
&& tar xf libcxx-$LLVM_VER.src.tar.xz -C llvm/projects/libcxx --strip-components=1 \
&& mkdir llvm/projects/libcxxabi \
&& tar xf libcxxabi-$LLVM_VER.src.tar.xz -C llvm/projects/libcxxabi --strip-components=1 \
&& mkdir llvm/tools/lldb \
&& tar xf lldb-$LLVM_VER.src.tar.xz -C llvm/tools/lldb --strip-components=1 \
&& rm -f *tar.xz
# http://llvm.org/docs/CMake.html
# find / -iname 'ffi.h'
# cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release -DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_ENABLE_PIC=ON -DLLVM_ENABLE_FFI=ON -DFFI_INCLUDE_DIR=/usr/lib64/libffi-3.0.5/include ../llvm
RUN mkdir ~/llvm_build \
&& cd ~/llvm_build \
&& ../llvm/configure --enable-shared
RUN cd ~/llvm_build \
&& make ENABLE_OPTIMIZED=1 DISABLE_ASSERTIONS=1 -j"$(nproc --all)" \
&& make -j"$(nproc --all)" install \
&& ln -s /usr/local/lib/libLLVM-$LLVM_VER.so /usr/local/lib/libLLVM.so \
&& ldconfig \
&& cd .. && rm -rf llvm_build && rm -rf llvm
# node
ENV NODE_VER 6.3.1
RUN wget https://github.com/nodejs/node/archive/v$NODE_VER.tar.gz \
&& tar xf v$NODE_VER.tar.gz && cd node-$NODE_VER \
&& ./configure \
&& make -j"$(nproc --all)" \
&& make -j"$(nproc --all)" install \
&& cd .. && rm -f v$NODE_VER.tar.gz && rm -rf node-$NODE_VER
# reinstall npm with the lastest version
RUN npm cache clean \
&& curl -L https://npmjs.org/install.sh | sh
# Makes npm work behind proxy if http_proxy variable is set
RUN npm config set proxy ${http_proxy} \
&& npm config set https-proxy ${https_proxy} \
&& npm config set registry http://registry.npmjs.org/ \
&& npm set strict-ssl false
# TeX
RUN yum -y install perl-Tk perl-Digest-MD5 && yum clean all
ADD texlive.profile texlive.profile
# non-interactive http://www.tug.org/pipermail/tex-live/2008-June/016323.html
RUN wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz \
&& mkdir install-tl \
&& tar xf install-tl-unx.tar.gz -C install-tl --strip-components=1 \
&& ./install-tl/install-tl -profile ./texlive.profile \
&& rm -rf install-tl && rm -f install-tl-unx.tar.gz
# TODO: replace hardcoded 2015
RUN echo "export PATH=/usr/local/texlive/2015/bin/x86_64-linux:${PATH}" >> /etc/profile.d/local-bin.sh \
&& source /etc/profile
# R
RUN yum -y install \
lapack-devel \
blas-devel \
libicu-devel \
unixodbc-devel \
QuantLib \
QuantLib-devel \
boost \
boost-devel \
libxml2 \
libxml2-devel \
R \
&& yum clean all
# Set default CRAN Mirror
RUN echo 'options(repos = c(CRAN="http://www.vps.fmvz.usp.br/CRAN/"))' >> /usr/lib64/R/library/base/R/Rprofile
# RStudio
ENV RSTUDIO_VER 0.99.902
RUN wget https://download2.rstudio.org/rstudio-server-rhel-$RSTUDIO_VER-x86_64.rpm \
&& echo "aa018deb6c93501caa60e61d0339b338 rstudio-server-rhel-$RSTUDIO_VER-x86_64.rpm" > RSTUDIOMD5 \
&& RESULT=$(md5sum -c RSTUDIOMD5) \
&& echo ${RESULT} > ~/check-rstudio-md5.txt \
&& yum -y install --nogpgcheck rstudio-server-rhel-$RSTUDIO_VER-x86_64.rpm \
&& yum clean all \
&& rm -f rstudio-server-rhel-$RSTUDIO_VER-x86_64.rpm && rm -f RSTUDIOMD5
# Libreoffice
ENV LIBREOFFICE_VER 5.2.0
ENV LIBREOFFICE_VER_MINOR .4
RUN wget http://mirror.nbtelecom.com.br/tdf/libreoffice/stable/$LIBREOFFICE_VER/rpm/x86_64/LibreOffice_${LIBREOFFICE_VER}_Linux_x86-64_rpm.tar.gz \
&& echo "90c9b7b8aa6799ca1140a8d06c874838 LibreOffice_${LIBREOFFICE_VER}_Linux_x86-64_rpm.tar.gz" > LIBREOFFICEMD5 \
&& RESULT=$(md5sum -c LIBREOFFICEMD5) \
&& echo ${RESULT} > ~/check-libreoffice-md5.txt \
&& tar xf LibreOffice_${LIBREOFFICE_VER}_Linux_x86-64_rpm.tar.gz \
&& cd LibreOffice_${LIBREOFFICE_VER}${LIBREOFFICE_VER_MINOR}_Linux_x86-64_rpm/RPMS \
&& yum -y install *.rpm \
&& yum clean all \
&& cd && rm -f LIBREOFFICEMD5 && rm -f LibreOffice_${LIBREOFFICE_VER}_Linux_x86-64_rpm.tar.gz \
&& rm -rf LibreOffice_${LIBREOFFICE_VER}${LIBREOFFICE_VER_MINOR}_Linux_x86-64_rpm
# Shiny
ENV SHINY_VER 1.4.2.786
RUN R -e 'install.packages("shiny")' \
&& wget https://download3.rstudio.org/centos5.9/x86_64/shiny-server-$SHINY_VER-rh5-x86_64.rpm \
&& echo "45160b08eed65c89e0a9d03c58eba595 shiny-server-$SHINY_VER-rh5-x86_64.rpm" > SHINYSERVERMD5 \
&& RESULT=$(md5sum -c SHINYSERVERMD5) \
&& echo ${RESULT} > ~/check-shiny-server-md5.txt \
&& yum -y install --nogpgcheck shiny-server-$SHINY_VER-rh5-x86_64.rpm \
&& yum clean all \
&& cd && rm -f SHINYSERVERMD5 && rm -f shiny-server-$SHINY_VER-rh5-x86_64.rpm
# Julia
ENV JULIA_VER_MAJ 0.4
ENV JULIA_VER_MIN .6
ENV JULIA_VER $JULIA_VER_MAJ$JULIA_VER_MIN
RUN wget https://github.com/JuliaLang/julia/releases/download/v$JULIA_VER/julia-$JULIA_VER-full.tar.gz \
&& tar xf julia-$JULIA_VER-full.tar.gz
ADD julia-Make.user julia-$JULIA_VER/Make.user
ADD cpuid cpuid
RUN cd cpuid && make
RUN cpuid/cpuid >> julia-$JULIA_VER/Make.user
RUN cd julia-$JULIA_VER \
&& make -j"$(nproc --all)" \
&& make -j"$(nproc --all)" install \
&& cd .. && rm -rf julia-$JULIA_VER && rm -f julia-$JULIA_VER-full.tar.gz \
&& ln -s /usr/local/julia/bin/julia /usr/local/bin/julia
# Init package folder on root's home folder
RUN julia -e 'Pkg.init()'
# Jupyter
# Add python2.7 kernel: https://github.com/jupyter/jupyter/issues/71
RUN pip2 install \
IPython \
notebook \
ipykernel \
ipyparallel \
enum34 \
&& /usr/local/python2.7/bin/python2.7 -m ipykernel install
RUN pip3 install \
IPython \
jupyterhub \
notebook \
ipykernel \
ipyparallel \
enum34 \
&& python3 -m ipykernel install
RUN npm install -g configurable-http-proxy
# ipywidgets not working for now...
# ipywidgets
# https://ipywidgets.readthedocs.org/en/latest/dev_install.html
#RUN git clone https://github.com/ipython/ipywidgets
#RUN wget https://github.com/ipython/ipywidgets/archive/4.1.1.tar.gz \
#&& tar xf 4.1.1.tar.gz
#RUN cd ipywidgets-4.1.1 \
#&& pip2 install -v -e . \
#&& pip3 install -v -e . \
#&& cd jupyter-js-widgets \
# && npm install \
# && cd ../widgetsnbextension \
# && npm install \
# && npm run update:widgets \
# && pip2 install -v -e . \
# && pip3 install -v -e .
# RUN rm -rf ipywidgets-4.1.1 && rm -f 4.1.1.tar.gz
# Support for other languages
# https://github.com/ipython/ipython/wiki/IPython-kernels-for-other-languages
# Add Julia kernel
# https://github.com/JuliaLang/IJulia.jl
# https://github.com/JuliaLang/IJulia.jl/issues/341
RUN julia -e 'Pkg.add("IJulia"); using IJulia'
# registers global kernel
RUN cp -r ~/.local/share/jupyter/kernels/julia-$JULIA_VER_MAJ /usr/local/share/jupyter/kernels
# rewrite julia's kernel configuration
ADD julia-kernel.json /usr/local/share/jupyter/kernels/julia-$JULIA_VER_MAJ/kernel.json
# R
# http://irkernel.github.io/installation/
RUN yum -y install czmq-devel && yum clean all
RUN R -e 'install.packages(c("pbdZMQ", "devtools"))' \
&& R -e 'devtools::install_github(paste0("IRkernel/", c("repr", "IRdisplay", "IRkernel")))'
# Optional configuration file for svn
ADD svn-servers /etc/subversion/servers
# coin SYMPHONY
# https://projects.coin-or.org/SYMPHONY
ENV SYMPHONY_VER 5.6
RUN git clone --branch=stable/$SYMPHONY_VER https://github.com/coin-or/SYMPHONY SYMPHONY-$SYMPHONY_VER \
&& cd SYMPHONY-$SYMPHONY_VER \
&& git clone --branch=stable/0.8 https://github.com/coin-or-tools/BuildTools/ \
&& chmod u+x ./BuildTools/get.dependencies.sh \
&& ./BuildTools/get.dependencies.sh fetch --no-third-party \
&& ./configure \
&& make -j"$(nproc --all)" \
&& make -j"$(nproc --all)" install \
&& cd .. && rm -rf SYMPHONY-$SYMPHONY_VER
#################
## LIBS
#################
RUN yum -y install \
freetype-devel \
glpk-devel \
hdf5 \
lcms2-devel \
libjpeg-devel \
libpng \
libpng-devel \
libtiff-devel \
libwebp-devel \
libxslt-devel \
libxml2-devel \
libzip-devel \
pandoc \
tcl-devel \
tk-devel \
&& yum clean all
ADD libs libs
RUN cd libs && make && ./install_libs
RUN cd libs && source ./install_JSAnimation.sh
RUN cd libs && source ./install_excel_readers.sh
# http://ipyparallel.readthedocs.org/en/latest/
RUN ipcluster nbextension enable
####################
## Services
####################
# 8787 for RStudio
# 8000 for Jupyter
EXPOSE 8787 8000
CMD /usr/sbin/sssd && /usr/lib/rstudio-server/bin/rserver && jupyterhub --no-ssl
| null | maintenance/other |
336 | 754b298aa221880457553f715846183812ca2c74 | Update Dockerfile | Update Dockerfile
| FROM ubuntu
MAINTAINER Justin Plock <justin@plock.net>
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y -q wget openjdk-7-jre-headless
RUN mkdir -p /opt/snowizard /var/log/snowizard
RUN wget -q -O /opt/snowizard/snowizard.jar http://repo.maven.apache.org/maven2/com/ge/snowizard/snowizard-service/1.3.0/snowizard-service-1.3.0.jar
ADD ./snowizard-service/snowizard.upstart /etc/init/snowizard.conf
ADD ./snowizard-service/snowizard.yml /etc/snowizard.yml
ADD ./snowizard-service/snowizard.jvm.conf /etc/snowizard.jvm.conf
ENV JAVA_HOME /usr/lib/jvm/java-7-openjdk-amd64
# Snowizard port
EXPOSE 8080
# Administration port
EXPOSE 8180
CMD /usr/bin/java -d64 -server -jar /opt/snowizard/snowizard.jar server /etc/snowizard.yml
| FROM debian:jessie
MAINTAINER Justin Plock <justin@plock.net>
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y -q wget openjdk-7-jre-headless
RUN mkdir -p /opt/snowizard /var/log/snowizard
RUN wget -q -O /opt/snowizard/snowizard.jar http://repo.maven.apache.org/maven2/com/ge/snowizard/snowizard-application/1.4.0/snowizard-application-1.4.0.jar
ADD ./snowizard-service/snowizard.upstart /etc/init/snowizard.conf
ADD ./snowizard-service/snowizard.yml /etc/snowizard.yml
ADD ./snowizard-service/snowizard.jvm.conf /etc/snowizard.jvm.conf
ENV JAVA_HOME /usr/lib/jvm/java-7-openjdk-amd64
# Snowizard port
EXPOSE 8080
# Administration port
EXPOSE 8180
CMD /usr/bin/java -d64 -server -jar /opt/snowizard/snowizard.jar server /etc/snowizard.yml
| maintenance/other |
187 | cb4816475983c013f6d4bf4a8b85cc558e938f09 | Bumped source to 20201210-e8d1594 | Bumped source to 20201210-e8d1594
| null | null | maintenance/other |
2182 | 30510e5c137abca1cf822921dd6277b43cd68e7f | Bump to Postfixadmin v3.0 | Bump to Postfixadmin v3.0
| FROM alpine
MAINTAINER Konstantin Jakobi <konstantin.jakobi@gmail.com>
ENV VERSION=2.93
EXPOSE 80
RUN apk add --no-cache bash curl dovecot mysql-client php-imap php-mysqli \
&& curl --location https://downloads.sourceforge.net/project/postfixadmin/postfixadmin/postfixadmin-${VERSION}/postfixadmin-${VERSION}.tar.gz | tar xzf - \
&& mv postfixadmin* /www \
&& mkdir /config
COPY config.php php.ini run.sh /
CMD /run.sh
| null | maintenance/other |
393 | 84472153dacd449ae661acb55336c950fec05029 | Bumped source to 20200831-140ca1d | Bumped source to 20200831-140ca1d
| FROM docker.pkg.github.com/dock0/ssh/ssh:20200831-24f76e7
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm --needed cpio dnsutils htop lockfile-progs lsof mtr net-tools whois zsh neovim
RUN usermod --shell /usr/bin/zsh $ADMIN
RUN su - $ADMIN -c "git clone git://github.com/akerl/....git /home/$ADMIN/..."
RUN su - $ADMIN -c '.../... conf https://raw.githubusercontent.com/akerl/dotfiles/master/.dotdotdot.conf'
RUN su - $ADMIN -c '.../... supi'
| FROM docker.pkg.github.com/dock0/ssh/ssh:20200831-140ca1d
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm --needed cpio dnsutils htop lockfile-progs lsof mtr net-tools whois zsh neovim
RUN usermod --shell /usr/bin/zsh $ADMIN
RUN su - $ADMIN -c "git clone git://github.com/akerl/....git /home/$ADMIN/..."
RUN su - $ADMIN -c '.../... conf https://raw.githubusercontent.com/akerl/dotfiles/master/.dotdotdot.conf'
RUN su - $ADMIN -c '.../... supi'
| maintenance/other |
237 | a05ffc658881fd7122ac2d772fa8f1abc64d13b8 | Bumped source to 20200402-2cf0be5 | Bumped source to 20200402-2cf0be5
| FROM docker.pkg.github.com/dock0/arch/arch:20200402-3236609
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm \
strace tcpdump openbsd-netcat socat htop \
nmap dnsutils net-tools iputils openssh \
screen tmux man-db lsof psmisc git tree \
vim-minimal inetutils
| FROM docker.pkg.github.com/dock0/arch/arch:20200402-2cf0be5
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm \
strace tcpdump openbsd-netcat socat htop \
nmap dnsutils net-tools iputils openssh \
screen tmux man-db lsof psmisc git tree \
vim-minimal inetutils
| feature addition |
2272 | b258aa7c08677ff9d5089f98f6d3c44e7ffdefac | Bumped source to 20201001-e90cd1b | Bumped source to 20201001-e90cd1b
| FROM docker.pkg.github.com/dock0/amylum_arch/amylum_arch:20201001-7ceb967
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm s6 execline musl-amylum
ADD service /service
ADD init /init
CMD ["/init"]
| null | code refactoring |
227 | 991cad469a3df54802ef8cc8d81f5e95386fcf0e | add ssh client for git ssh access | add ssh client for git ssh access
| FROM alpine:3.4
MAINTAINER G.J.R. Timmer <gjr.timmer@gmail.com>
ARG BUILD_DATE
ARG VCS_REF
LABEL \
nl.timmertech.build-date=${BUILD_DATE} \
nl.timmertech.name=alpine-sdk \
nl.timmertech.vendor=timmertech.nl \
nl.timmertech.vcs-url="https://github.com/GJRTimmer/docker-alpine-sdk.git" \
nl.timmertech.vcs-ref=${VCS_REF} \
nl.timmertech.license=MIT
RUN echo 'http://nl.alpinelinux.org/alpine/edge/main' >> /etc/apk/repositories && \
echo 'http://nl.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories && \
echo 'http://nl.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories && \
apk upgrade --update-cache --no-cache --available && \
apk add --update --no-cache \
bash \
bash-completion \
ca-certificates \
shadow \
wget \
curl \
git \
alpine-sdk \
readline && \
adduser -D -s /bin/bash -G abuild apk && \
passwd --delete apk && \
echo "apk ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/apk && \
chmod 600 /etc/sudoers.d/apk && \
mkdir -p /var/cache/distfiles && \
chgrp abuild /var/cache/distfiles && \
chmod g+w /var/cache/distfiles && \
chown -R apk:abuild /var/cache/distfiles
COPY ./init /init
VOLUME ["/home/apk/data"]
CMD /init
| FROM alpine:3.4
MAINTAINER G.J.R. Timmer <gjr.timmer@gmail.com>
ARG BUILD_DATE
ARG VCS_REF
LABEL \
nl.timmertech.build-date=${BUILD_DATE} \
nl.timmertech.name=alpine-sdk \
nl.timmertech.vendor=timmertech.nl \
nl.timmertech.vcs-url="https://github.com/GJRTimmer/docker-alpine-sdk.git" \
nl.timmertech.vcs-ref=${VCS_REF} \
nl.timmertech.license=MIT
RUN echo 'http://nl.alpinelinux.org/alpine/edge/main' >> /etc/apk/repositories && \
echo 'http://nl.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories && \
echo 'http://nl.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories && \
apk upgrade --update-cache --no-cache --available && \
apk add --update --no-cache \
bash \
bash-completion \
ca-certificates \
shadow \
openssh-client \
wget \
curl \
git \
alpine-sdk \
readline && \
adduser -D -s /bin/bash -G abuild apk && \
passwd --delete apk && \
echo "apk ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/apk && \
chmod 600 /etc/sudoers.d/apk && \
mkdir -p /var/cache/distfiles && \
chgrp abuild /var/cache/distfiles && \
chmod g+w /var/cache/distfiles && \
chown -R apk:abuild /var/cache/distfiles
COPY ./init /init
VOLUME ["/home/apk/data"]
CMD /init
| maintenance/other |
135 | e93e1b76ec79a2195c2b6e53263478dbe9ea1c41 | Update Dockerfile to Rails 5.0.0 | Update Dockerfile to Rails 5.0.0
| FROM rails:4.2.6
MAINTAINER Davide Bove <me@davidebove.com>
ADD ./src /code
WORKDIR /code
ENV BUNDLE_PATH /box
CMD /bin/bash
| FROM rails:5.0.0
MAINTAINER Davide Bove <me@davidebove.com>
ADD ./src /code
WORKDIR /code
ENV BUNDLE_PATH /box
CMD ["/bin/bash"]
| code refactoring |
167 | b88c4b43df7b149aff601c9f43cdff01f6cedac2 | Bumped source to 20210719-5595c72 | Bumped source to 20210719-5595c72
| FROM docker.pkg.github.com/dock0/arch/arch:20210719-e784547
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm \
strace tcpdump openbsd-netcat socat htop \
nmap dnsutils net-tools iputils openssh \
screen tmux man-db lsof psmisc git tree \
vim-minimal inetutils
| FROM docker.pkg.github.com/dock0/arch/arch:20210719-5595c72
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm \
strace tcpdump openbsd-netcat socat htop \
nmap dnsutils net-tools iputils openssh \
screen tmux man-db lsof psmisc git tree \
vim-minimal inetutils
| bug fix |
141 | 12bcf2bedcc6a83102aec2006b18866580fc4126 | Update the base image | Update the base image
| FROM jedisct1/base-dev-rust-nightly:c44316d4a1ad0fe01ae366e163993aa3980c755f
MAINTAINER Frank Denis
ENV SERIAL 1
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get install -y \
libsnappy-dev
ENV LIBRESSL_VERSION 2.2.5
ENV LIBRESSL_SHA256 e3caded0469d8dc64f4ca2fe8e499ada4dd014e84d1c5a71818d39e54e6c914b
ENV LIBRESSL_DOWNLOAD_URL http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${LIBRESSL_VERSION}.tar.gz
RUN set -x && \
mkdir -p /tmp/src && \
cd /tmp/src && \
curl -sSL $LIBRESSL_DOWNLOAD_URL -o libressl.tar.gz && \
echo "${LIBRESSL_SHA256} *libressl.tar.gz" | sha256sum -c - && \
tar xzf libressl.tar.gz && \
rm -f libressl.tar.gz && \
cd libressl-${LIBRESSL_VERSION} && \
./configure --disable-shared --with-pic --disable-dependency-tracking --prefix=/opt/libressl && \
make check && make install && \
rm -fr /opt/libressl/share/man && \
echo /opt/libressl/lib > /etc/ld.so.conf.d/libressl.conf && ldconfig && \
rm -fr /tmp/*
ENV OPENSSL_LIB_DIR=/opt/libressl/lib
ENV OPENSSL_INCLUDE_DIR=/opt/libressl/include
RUN set -x && \
cd /tmp && \
git clone https://github.com/jedisct1/flowgger.git && \
cd flowgger && \
cargo build --release --features='ecdh coroutines' && \
mkdir -p /opt/flowgger/etc /opt/flowgger/bin && \
strip target/release/flowgger && \
mv target/release/flowgger /opt/flowgger/bin/ && \
rm -fr /tmp/flowgger
COPY flowgger.sh /etc/service/flowgger/run
EXPOSE 6514
ENTRYPOINT ["/sbin/my_init"]
| FROM jedisct1/base-dev-rust-nightly:34b4e66736a0fb65235feadbb5178d42bd09ed67
MAINTAINER Frank Denis
ENV SERIAL 1
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get install -y \
libsnappy-dev
ENV LIBRESSL_VERSION 2.2.5
ENV LIBRESSL_SHA256 e3caded0469d8dc64f4ca2fe8e499ada4dd014e84d1c5a71818d39e54e6c914b
ENV LIBRESSL_DOWNLOAD_URL http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${LIBRESSL_VERSION}.tar.gz
RUN set -x && \
mkdir -p /tmp/src && \
cd /tmp/src && \
curl -sSL $LIBRESSL_DOWNLOAD_URL -o libressl.tar.gz && \
echo "${LIBRESSL_SHA256} *libressl.tar.gz" | sha256sum -c - && \
tar xzf libressl.tar.gz && \
rm -f libressl.tar.gz && \
cd libressl-${LIBRESSL_VERSION} && \
./configure --disable-shared --with-pic --disable-dependency-tracking --prefix=/opt/libressl && \
make check && make install && \
rm -fr /opt/libressl/share/man && \
echo /opt/libressl/lib > /etc/ld.so.conf.d/libressl.conf && ldconfig && \
rm -fr /tmp/*
ENV OPENSSL_LIB_DIR=/opt/libressl/lib
ENV OPENSSL_INCLUDE_DIR=/opt/libressl/include
RUN set -x && \
cd /tmp && \
git clone https://github.com/jedisct1/flowgger.git && \
cd flowgger && \
cargo build --release --features='ecdh coroutines' && \
mkdir -p /opt/flowgger/etc /opt/flowgger/bin && \
strip target/release/flowgger && \
mv target/release/flowgger /opt/flowgger/bin/ && \
rm -fr /tmp/flowgger
COPY flowgger.sh /etc/service/flowgger/run
EXPOSE 6514
ENTRYPOINT ["/sbin/my_init"]
| code refactoring |
224 | 7855d3a05d1fa1f7ab96ee6ddccd66d5541fbf03 | change confd binary url to get the version with ssl/tls memory problem fixed | change confd binary url to get the version with ssl/tls memory problem fixed
| FROM salamandra/etcd
ADD https://github.com/kelseyhightower/confd/releases/download/v0.6.0-alpha3/confd-0.6.0-alpha3-linux-amd64 /usr/local/bin/confd
RUN chmod 0755 /usr/local/bin/confd
RUN mkdir /etc/confd/conf.d/ -p
RUN mkdir /etc/confd/templates/ -p
| FROM salamandra/etcd
# ADD https://github.com/kelseyhightower/confd/releases/download/v0.6.0-alpha3/confd-0.6.0-alpha3-linux-amd64 /usr/local/bin/confd
ADD https://github.com/ricardosasilva/confd/releases/download/v0.6.0-alpha4/confd-0.6.0-alpha4-linux-amd64 /usr/local/bin/confd
RUN chmod 0755 /usr/local/bin/confd
RUN mkdir /etc/confd/conf.d/ -p
RUN mkdir /etc/confd/templates/ -p
| feature addition |
2253 | f60c564e9500fd38c11ec3a8953742c87163843e | version updated | version updated
| FROM airhacks/java
LABEL maintainer="Adam Bien, adam-bien.com" description="Kibana"
ENV INSTALL_DIR kibana
RUN mkdir ${INSTALL_DIR}
RUN curl https://artifacts.elastic.co/downloads/kibana/kibana-6.0.1-linux-x86_64.tar.gz | tar xvz -C ${INSTALL_DIR} --strip-components=1
ENTRYPOINT ${INSTALL_DIR}/bin/kibana
EXPOSE 5601
| null | maintenance/other |
195 | 2117899482da7ed6236913c5124afc6b075a4d11 | Add CA certs to all-in-one image | Add CA certs to all-in-one image
Signed-off-by: chandresh-pancholi <25dab51e580f04c0947224025fffefbe56ba05fb@gmail.com> | FROM scratch
# Agent zipkin.thrift compact
EXPOSE 5775/udp
# Agent jaeger.thrift compact
EXPOSE 6831/udp
# Agent jaeger.thrift binary
EXPOSE 6832/udp
# Agent config HTTP
EXPOSE 5778
# Collector HTTP
EXPOSE 14268
# Collector gRPC
EXPOSE 14250
# Web HTTP
EXPOSE 16686
COPY ./cmd/all-in-one/all-in-one-linux /go/bin/
COPY ./cmd/all-in-one/sampling_strategies.json /etc/jaeger/
ENTRYPOINT ["/go/bin/all-in-one-linux"]
CMD ["--sampling.strategies-file=/etc/jaeger/sampling_strategies.json"]
| FROM alpine:latest as certs
RUN apk add --update --no-cache ca-certificates
FROM scratch
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
# Agent zipkin.thrift compact
EXPOSE 5775/udp
# Agent jaeger.thrift compact
EXPOSE 6831/udp
# Agent jaeger.thrift binary
EXPOSE 6832/udp
# Agent config HTTP
EXPOSE 5778
# Collector HTTP
EXPOSE 14268
# Collector gRPC
EXPOSE 14250
# Web HTTP
EXPOSE 16686
COPY ./cmd/all-in-one/all-in-one-linux /go/bin/
COPY ./cmd/all-in-one/sampling_strategies.json /etc/jaeger/
ENTRYPOINT ["/go/bin/all-in-one-linux"]
CMD ["--sampling.strategies-file=/etc/jaeger/sampling_strategies.json"]
| code refactoring |
2132 | 4320fbd88ee213e7b9db38161059681db930d1ee | Bump ipaddress package to fix SSL.Certificate Error | Bump ipaddress package to fix SSL.Certificate Error
| #
# Dockerfile for pman repository.
#
# Build with
#
# docker build -t <name> .
#
# For example if building a local version, you could do:
#
# docker build -t local/pman .
#
# In the case of a proxy (located at 192.168.13.14:3128), do:
#
# docker build --build-arg http_proxy=http://192.168.13.14:3128 --build-arg UID=$UID -t local/pman .
#
# To run an interactive shell inside this container, do:
#
# docker run -ti --entrypoint /bin/bash local/pman
#
# To pass an env var HOST_IP to container, do:
#
# docker run -ti -e HOST_IP=$(ip route | grep -v docker | awk '{if(NF==11) print $9}') --entrypoint /bin/bash local/pman
#
FROM fnndsc/ubuntu-python3:latest
MAINTAINER fnndsc "dev@babymri.org"
# Pass a UID on build command line (see above) to set internal UID
ARG UID=1001
ENV UID=$UID
COPY . /tmp/pman
COPY ./docker-entrypoint.py /dock/docker-entrypoint.py
RUN apt-get update \
&& apt-get install sudo \
&& useradd -u $UID -ms /bin/bash localuser \
&& addgroup localuser sudo \
&& echo "localuser:localuser" | chpasswd \
&& adduser localuser sudo \
&& apt-get install -y libssl-dev libcurl4-openssl-dev bsdmainutils net-tools inetutils-ping \
&& pip3 install pudb \
&& pip3 install pyzmq \
&& pip3 install webob \
&& pip3 install psutil \
&& pip3 install /tmp/pman \
&& pip3 install pfmisc==1.2.2 \
&& pip3 install kubernetes \
&& pip3 install openshift \
&& pip3 install docker \
&& rm -rf /tmp/pman \
&& chmod 777 /dock \
&& chmod 777 /dock/docker-entrypoint.py \
&& echo "localuser ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
ENTRYPOINT ["/dock/docker-entrypoint.py"]
EXPOSE 5010
# Start as user $UID
# USER $UID
| null | code refactoring |
2063 | 6d19e7d10584094549119a4a297469ee5957e795 | Remove version from docker file since it's tagged already | Remove version from docker file since it's tagged already
| FROM debian:jessie-slim
LABEL maintainer="david.muto@gmail.com" version="1.0.0"
WORKDIR /
ADD https://github.com/google/protobuf/releases/download/v3.3.0/protoc-3.3.0-linux-x86_64.zip ./
RUN apt-get -q -y update && \
apt-get -q -y install unzip && \
unzip protoc-3.3.0-linux-x86_64.zip -d ./usr/local && \
rm protoc-3.3.0-linux-x86_64.zip && \
apt-get purge -y unzip && \
apt-get autoremove
ADD dist/protoc-gen-doc /usr/local/bin/
ADD script/entrypoint.sh ./
VOLUME ["/out", "/protos"]
ENTRYPOINT ["/entrypoint.sh"]
CMD ["--doc_opt=html,index.html"]
| null | maintenance/other |
188 | fe3862d94ee0f8a09114db979786ebf3c0fded44 | Bump kubekins for kubeadm image | Bump kubekins for kubeadm image
| # Copyright 2017 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
FROM gcr.io/k8s-testimages/kubekins-e2e:v20170921-8218eea8
MAINTAINER beacham@google.com
RUN apt-get update && apt-get install -y \
build-essential \
pkg-config \
unzip \
bash-completion \
git \
wget && \
apt-get clean
ENV TERRAFORM_VERSION=0.9.4 \
KUBERNETES_PROVIDER=kubernetes-anywhere \
KUBECTL_VERSION=1.6.4 \
PATH=/usr/local/bin:${PATH}
# Add kubernetes-anywhere dependencies: jsonnet, terraform, kubectl
RUN cd /tmp && \
git clone https://github.com/google/jsonnet.git && \
( cd jsonnet && \
make jsonnet && \
cp jsonnet /bin \
) && \
rm -rf /tmp/jsonnet
RUN mkdir -p /tmp/terraform/ && \
( cd /tmp/terraform && \
wget https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip && \
unzip terraform_${TERRAFORM_VERSION}_linux_amd64.zip -d /bin \
) && \
rm -rf /tmp/terraform
# TODO(pipejakob): Instead of fetching a specific precompiled version, get
# kubernetes-anywhere to use the kubectl built as part of this job.
RUN wget https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl -O /usr/local/bin/kubectl && \
chmod +x /usr/local/bin/kubectl
WORKDIR /workspace
ADD runner /
ENTRYPOINT ["/bin/bash", "/runner"]
| # Copyright 2017 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
FROM gcr.io/k8s-testimages/kubekins-e2e:v20170921-38bb087e
MAINTAINER beacham@google.com
RUN apt-get update && apt-get install -y \
build-essential \
pkg-config \
unzip \
bash-completion \
git \
wget && \
apt-get clean
ENV TERRAFORM_VERSION=0.9.4 \
KUBERNETES_PROVIDER=kubernetes-anywhere \
KUBECTL_VERSION=1.6.4 \
PATH=/usr/local/bin:${PATH}
# Add kubernetes-anywhere dependencies: jsonnet, terraform, kubectl
RUN cd /tmp && \
git clone https://github.com/google/jsonnet.git && \
( cd jsonnet && \
make jsonnet && \
cp jsonnet /bin \
) && \
rm -rf /tmp/jsonnet
RUN mkdir -p /tmp/terraform/ && \
( cd /tmp/terraform && \
wget https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip && \
unzip terraform_${TERRAFORM_VERSION}_linux_amd64.zip -d /bin \
) && \
rm -rf /tmp/terraform
# TODO(pipejakob): Instead of fetching a specific precompiled version, get
# kubernetes-anywhere to use the kubectl built as part of this job.
RUN wget https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl -O /usr/local/bin/kubectl && \
chmod +x /usr/local/bin/kubectl
WORKDIR /workspace
ADD runner /
ENTRYPOINT ["/bin/bash", "/runner"]
| bug fix |
2294 | 4d7d893a3be04a5564e1a2009864ea149725e7a4 | Bumped source to 20211021-9c92104 | Bumped source to 20211021-9c92104
| FROM docker.pkg.github.com/dock0/arch/arch:20211021-b1fff7b
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm base-devel musl vim-minimal tree openssh
ENV EDITOR vim
WORKDIR /opt/build
CMD ["make", "local"]
| null | maintenance/other |
2231 | e40a4059ad0b6c745cf7ee74b7727a9bcdc15021 | Minor fixes to Dockerfile | Minor fixes to Dockerfile
Signed-off-by: Aaron <64b2b6d12bfe4baae7dad3d018f8cbf6b0e7a044@jadja.eu>
| FROM golang:1.12.7-alpine as builder
ARG CADDY_VERSION="1.0.1"
ENV GO111MODULE=on
RUN apk add --no-cache git
COPY caddy.go /go/build/caddy.go
COPY go.mod /go/build/go.mod
RUN cd /go/build && \
go build
FROM alpine:3.10
RUN apk add --no-cache --no-progress curl tini ca-certificates
COPY --from=builder /go/build/caddy /usr/bin/caddy
COPY Caddyfile /etc/caddy/Caddyfile
COPY index.md /www/index.md
EXPOSE 2016
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["caddy"]
| null | maintenance/other |
2085 | 0dce2e3ece366a6641ac570b50b99ad5430eb0ca | Bumped source to 20211117-612060d | Bumped source to 20211117-612060d
| FROM docker.pkg.github.com/dock0/arch/arch:20211117-ebea708
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm base-devel musl vim-minimal tree openssh
ENV EDITOR vim
WORKDIR /opt/build
CMD ["make", "local"]
| null | maintenance/other |
2082 | 12a1697221511df7e400fc337a2f6a0a88dd5c29 | Bumped source to 20211023-2d7fa18 | Bumped source to 20211023-2d7fa18
| FROM docker.pkg.github.com/dock0/arch/arch:20211023-0815b05
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm base-devel musl vim-minimal tree openssh
ENV EDITOR vim
WORKDIR /opt/build
CMD ["make", "local"]
| null | code refactoring |
19 | ea6f6cc96b207d8503a10cbe014e51d476aeb539 | Bump to 0.10.14 and go 1.10 | Bump to 0.10.14 and go 1.10 | #
# Build stage by @abiosoft https://github.com/abiosoft/caddy-docker
#
FROM golang:1.9-alpine as build
ARG version="0.10.11"
ARG plugins=""
RUN apk add --no-cache git
# caddy
RUN git clone https://github.com/mholt/caddy -b "v${version}" /go/src/github.com/mholt/caddy \
&& cd /go/src/github.com/mholt/caddy \
&& git checkout -b "v${version}"
# plugin helper
RUN go get -v github.com/abiosoft/caddyplug/caddyplug
# plugins
RUN for plugin in $(echo $plugins | tr "," " "); do \
go get -v $(caddyplug package $plugin); \
printf "package caddyhttp\nimport _ \"$(caddyplug package $plugin)\"" > \
/go/src/github.com/mholt/caddy/caddyhttp/$plugin.go ; \
done
# builder dependency
RUN git clone https://github.com/caddyserver/builds /go/src/github.com/caddyserver/builds
# build
RUN cd /go/src/github.com/mholt/caddy/caddy \
&& git checkout -f \
&& go run build.go \
&& mv caddy /go/bin
#
# Compress Caddy with upx
#
FROM debian:stable as compress
# curl, tar
RUN apt-get update && apt install -y --no-install-recommends \
tar \
xz-utils \
curl \
ca-certificates
# get official upx binary
RUN curl --silent --show-error --fail --location -o - \
"https://github.com/upx/upx/releases/download/v3.94/upx-3.94-amd64_linux.tar.xz" \
| tar --no-same-owner -C /usr/bin/ -xJ \
--strip-components 1 upx-3.94-amd64_linux/upx
# copy and compress
COPY --from=build /go/bin/caddy /usr/bin/caddy
RUN /usr/bin/upx --ultra-brute /usr/bin/caddy
# test
RUN /usr/bin/caddy -version
#
# Final image
#
FROM scratch
# labels
LABEL org.label-schema.vcs-url="https://github.com/productionwentdown/caddy"
LABEL org.label-schema.version=${version}
LABEL org.label-schema.schema-version="1.0"
# copy caddy binary and ca certs
COPY --from=compress /usr/bin/caddy /bin/caddy
COPY --from=compress /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
# copy default caddyfile
COPY Caddyfile /etc/Caddyfile
# set default caddypath
ENV CADDYPATH=/etc/.caddy
VOLUME /etc/.caddy
# serve from /srv
WORKDIR /srv
COPY index.html /srv/index.html
ENTRYPOINT ["/bin/caddy"]
CMD ["--conf", "/etc/Caddyfile", "--log", "stdout"]
| #
# Build stage by @abiosoft https://github.com/abiosoft/caddy-docker
#
FROM golang:1.10-alpine as build
ARG version="0.10.14"
ARG plugins=""
RUN apk add --no-cache git
# caddy
RUN git clone https://github.com/mholt/caddy -b "v${version}" /go/src/github.com/mholt/caddy \
&& cd /go/src/github.com/mholt/caddy \
&& git checkout -b "v${version}"
# plugin helper
RUN go get -v github.com/abiosoft/caddyplug/caddyplug
# plugins
RUN for plugin in $(echo $plugins | tr "," " "); do \
go get -v $(caddyplug package $plugin); \
printf "package caddyhttp\nimport _ \"$(caddyplug package $plugin)\"" > \
/go/src/github.com/mholt/caddy/caddyhttp/$plugin.go ; \
done
# builder dependency
RUN git clone https://github.com/caddyserver/builds /go/src/github.com/caddyserver/builds
# build
RUN cd /go/src/github.com/mholt/caddy/caddy \
&& git checkout -f \
&& go run build.go \
&& mv caddy /go/bin
#
# Compress Caddy with upx
#
FROM debian:stable as compress
# curl, tar
RUN apt-get update && apt install -y --no-install-recommends \
tar \
xz-utils \
curl \
ca-certificates
# get official upx binary
RUN curl --silent --show-error --fail --location -o - \
"https://github.com/upx/upx/releases/download/v3.94/upx-3.94-amd64_linux.tar.xz" \
| tar --no-same-owner -C /usr/bin/ -xJ \
--strip-components 1 upx-3.94-amd64_linux/upx
# copy and compress
COPY --from=build /go/bin/caddy /usr/bin/caddy
RUN /usr/bin/upx --ultra-brute /usr/bin/caddy
# test
RUN /usr/bin/caddy -version
#
# Final image
#
FROM scratch
# labels
LABEL org.label-schema.vcs-url="https://github.com/productionwentdown/caddy"
LABEL org.label-schema.version=${version}
LABEL org.label-schema.schema-version="1.0"
# copy caddy binary and ca certs
COPY --from=compress /usr/bin/caddy /bin/caddy
COPY --from=compress /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
# copy default caddyfile
COPY Caddyfile /etc/Caddyfile
# set default caddypath
ENV CADDYPATH=/etc/.caddy
VOLUME /etc/.caddy
# serve from /srv
WORKDIR /srv
COPY index.html /srv/index.html
ENTRYPOINT ["/bin/caddy"]
CMD ["--conf", "/etc/Caddyfile", "--log", "stdout"]
| code refactoring |
2092 | 054d00f7f73615c4d83788a5b2be0472f7c1e9a4 | Update jenkins + plugins | Update jenkins + plugins
| FROM jenkins:2.19.4-alpine
COPY ref/init.groovy.d/executors.groovy /usr/share/jenkins/ref/init.groovy.d/executors.groovy
RUN install-plugins.sh git:3.0.1 blueocean:1.0.0-b13 ansicolor:0.4.3 \
workflow-aggregator:2.4 pipeline-stage-view:2.4 cloudbees-folder:5.14 \
ec2:1.36 \
&& echo 2.0 > /usr/share/jenkins/ref/jenkins.install.UpgradeWizard.state
| null | maintenance/other |
111 | 42340ee22befc1eb9cd11cb696bf5bd6bac3c433 | Upgrade confluent platform | Upgrade confluent platform
| FROMubuntu:16.04
MAINTAINERNeal Hardesty <nealhardesty@yahoo.dot.com>
# Install Oracle JDK 8
# http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html
RUN \
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list \
&& echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886 \
&& apt-get update -q \
&& echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections \
&& echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends oracle-java8-installer oracle-java8-set-default \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends vim curl wget \
&& rm -rf /var/cache/oracle-jdk8-installer \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
#RUN curl -o /var/tmp/kafka.tgz http://mirrors.ocf.berkeley.edu/apache/kafka/0.10.0.0/kafka_2.11-0.10.0.0.tgz \
# #&& file /var/tmp/kafka.tgz
# && tar xzvCf /opt/ /var/tmp/kafka.tgz \
# && ln -sfv /opt/kafka* /opt/kafka \
# && rm /var/tmp/kafka.tgz
# Confluent Kafka Platform
RUN wget -qO - http://packages.confluent.io/deb/3.0/archive.key | apt-key add - \
&& echo "deb http://packages.confluent.io/deb/3.0 stable main" |tee -a /etc/apt/sources.list.d/confluent.list \
&& apt-get update -y \
&& apt-get install -y confluent-platform-2.11 \
&& apt-get clean \
&& apt-get autoremove \
&& rm -rf /var/lib/apt/lists/*
# This assumes we are running as a hostname of 'kafka'
RUN echo "listeners=PLAINTEXT://kafka:9092" >> /etc/kafka/server.properties \
&& echo "log.cleaner.enable=true" >> /etc/kafka/server.properties
ADD ./lib/start_kafka.sh /start_kafka.sh
ADD ./lib/topic-ls /usr/local/bin/topic-ls
ADD ./lib/topic-count /usr/local/bin/topic-count
# Zookeeper
EXPOSE 2181
# Kafka Broker
EXPOSE 9092
# Schema Registry
EXPOSE 8081
CMD /start_kafka.sh
| FROMubuntu:16.04
MAINTAINERNeal Hardesty <nealhardesty@yahoo.dot.com>
# Install Oracle JDK 8
# http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html
RUN \
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list \
&& echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886 \
&& apt-get update -q \
&& echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections \
&& echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends oracle-java8-installer oracle-java8-set-default \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends vim curl wget \
&& rm -rf /var/cache/oracle-jdk8-installer \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
#RUN curl -o /var/tmp/kafka.tgz http://mirrors.ocf.berkeley.edu/apache/kafka/0.10.0.0/kafka_2.11-0.10.0.0.tgz \
# #&& file /var/tmp/kafka.tgz
# && tar xzvCf /opt/ /var/tmp/kafka.tgz \
# && ln -sfv /opt/kafka* /opt/kafka \
# && rm /var/tmp/kafka.tgz
# Confluent Kafka Platform
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list \
&& echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886 \
&& apt-get update -q \
&& echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections \
&& echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --force-yes oracle-java8-installer oracle-java8-set-default \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --force-yes vim curl wget
# This assumes we are running as a hostname of 'kafka'
RUN echo "listeners=PLAINTEXT://kafka:9092" >> /etc/kafka/server.properties \
&& echo "log.cleaner.enable=true" >> /etc/kafka/server.properties
ADD ./lib/start_kafka.sh /start_kafka.sh
ADD ./lib/topic-ls /usr/local/bin/topic-ls
ADD ./lib/topic-count /usr/local/bin/topic-count
# Zookeeper
EXPOSE 2181
# Kafka Broker
EXPOSE 9092
# Schema Registry
EXPOSE 8081
CMD /start_kafka.sh
| code refactoring |
59 | c2f21f87dd7677826ada3819a4533a689887b345 | Bumped source to 20201116-c392ca8 | Bumped source to 20201116-c392ca8
| FROM docker.pkg.github.com/dock0/service/service:20201116-44643f6
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm --needed openssh
ENV ADMIN akerl
ENV KEY_URL https://id-ed25519.pub/groups/default.txt
RUN useradd -d /var/lib/ssh -M ssh_key_sync
RUN mkdir -m=0700 /var/lib/ssh && chown ssh_key_sync /var/lib/ssh
RUN echo "$KEY_URL" > /var/lib/ssh/key_url
ADD sshd_config /etc/ssh/sshd_config
ADD run /service/sshd/run
ADD sync /var/lib/ssh/sync
RUN groupadd remote
RUN useradd -d "/home/$ADMIN" -G remote -m "$ADMIN"
RUN passwd -d "$ADMIN"
| FROM docker.pkg.github.com/dock0/service/service:20201116-c392ca8
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm --needed openssh
ENV ADMIN akerl
ENV KEY_URL https://id-ed25519.pub/groups/default.txt
RUN useradd -d /var/lib/ssh -M ssh_key_sync
RUN mkdir -m=0700 /var/lib/ssh && chown ssh_key_sync /var/lib/ssh
RUN echo "$KEY_URL" > /var/lib/ssh/key_url
ADD sshd_config /etc/ssh/sshd_config
ADD run /service/sshd/run
ADD sync /var/lib/ssh/sync
RUN groupadd remote
RUN useradd -d "/home/$ADMIN" -G remote -m "$ADMIN"
RUN passwd -d "$ADMIN"
| maintenance/other |
2257 | a6b464319983ea9ff787511f47c7b9241ebcd5a5 | Updated with dnsutils | Updated with dnsutils
| FROM debian
MAINTAINER Marcel Grossmann <whatever4711@gmail.com>
ENV DEBIAN_FRONTEND noninteractive
ENV MININET_REPO git://github.com/mininet/mininet
ENV MININET_INSTALLER ./mininet/util/install.sh
ENV INSTALLER_SWITCHES -fbinptvwyx
WORKDIR /tmp
# Update and install minimal.
RUN \
apt-get update \
--quiet \
&& apt-get install \
--yes \
--no-install-recommends \
--no-install-suggests \
autoconf \
automake \
ca-certificates \
git \
curl \
libtool \
net-tools \
openssh-client \
patch \
vim \
dnsutils
# Clone and install.
&& git clone -b 2.2.1 $MININET_REPO \
# A few changes to make the install script behave.
&& sed -e 's/sudo //g' \
-e 's/~\//\//g' \
-e 's/\(apt-get -y install\)/\1 --no-install-recommends --no-install-suggests/g' \
-i $MININET_INSTALLER \
# Install script expects to find this. Easier than patching that part of the script.
&& touch /.bashrc \
# Proceed with the install.
&& chmod +x $MININET_INSTALLER \
&& ./$MININET_INSTALLER -nfv \
# Clean up source.
&& rm -rf /tmp/mininet \
/tmp/openflow \
# Clean up packages.
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Create a start script to start OpenVSwitch
COPY docker-entry-point /docker-entry-point
RUN chmod 755 /docker-entry-point
VOLUME ["/data"]
WORKDIR /data
# Default command.
ENTRYPOINT ["/docker-entry-point"]
| null | maintenance/other |
2307 | 082a73ee331d87ff1052441c214af9c3bc1a42a4 | Bump NVM script version to 0.33.1 (#658) | Bump NVM script version to 0.33.1 (#658)
https://github.com/creationix/nvm/releases/tag/v0.33.1 | #
#--------------------------------------------------------------------------
# Image Setup
#--------------------------------------------------------------------------
#
# To edit the 'workspace' base Image, visit its repository on Github
# https://github.com/LaraDock/workspace
#
# To change its version, see the available Tags on the Docker Hub:
# https://hub.docker.com/r/laradock/workspace/tags/
#
FROM laradock/workspace:1.3
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
#
#--------------------------------------------------------------------------
# Mandatory Software's Installation
#--------------------------------------------------------------------------
#
# Mandatory Software's such as ("php7.0-cli", "git", "vim", ....) are
# installed on the base image 'laradock/workspace' image. If you want
# to add more Software's or remove existing one, you need to edit the
# base image (https://github.com/LaraDock/workspace).
#
#
#--------------------------------------------------------------------------
# Optional Software's Installation
#--------------------------------------------------------------------------
#
# Optional Software's will only be installed if you set them to `true`
# in the `docker-compose.yml` before the build.
# Example:
# - INSTALL_NODE=false
# - ...
#
#####################################
# Non-Root User:
#####################################
# Add a non-root user to prevent files being created with root permissions on host machine.
ARG PUID=1000
ARG PGID=1000
RUN groupadd -g $PGID laradock && \
useradd -u $PUID -g laradock -m laradock
#####################################
# SOAP:
#####################################
USER root
ARG INSTALL_SOAP=false
ENV INSTALL_SOAP ${INSTALL_SOAP}
RUN if [ ${INSTALL_SOAP} = true ]; then \
# Install the PHP SOAP extension
apt-get -y update && \
add-apt-repository -y ppa:ondrej/php && \
apt-get -y install libxml2-dev php7.0-soap && \
echo "extension=soap.so" >> /etc/php/7.0/cli/conf.d/40-soap.ini \
;fi
#####################################
# Set Timezone
#####################################
ARG TZ=UTC
ENV TZ ${TZ}
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
#####################################
# Composer:
#####################################
# Add the composer.json
COPY ./composer.json /home/laradock/.composer/composer.json
# Make sure that ~/.composer belongs to laradock
RUN chown -R laradock:laradock /home/laradock/.composer
USER laradock
# Check if global install need to be ran
ARG COMPOSER_GLOBAL_INSTALL=false
ENV COMPOSER_GLOBAL_INSTALL ${COMPOSER_GLOBAL_INSTALL}
RUN if [ ${COMPOSER_GLOBAL_INSTALL} = true ]; then \
# run the install
composer global install \
;fi
# Export composer vendor path
RUN echo "" >> ~/.bashrc && \
echo 'export PATH="~/.composer/vendor/bin:$PATH"' >> ~/.bashrc
#####################################
# Crontab
#####################################
USER root
COPY ./crontab /etc/cron.d
RUN chmod -R 644 /etc/cron.d
#####################################
# User Aliases
#####################################
USER laradock
COPY ./aliases.sh /home/laradock/aliases.sh
RUN echo "" >> ~/.bashrc && \
echo "# Load Custom Aliases" >> ~/.bashrc && \
echo "source /home/laradock/aliases.sh" >> ~/.bashrc && \
echo "" >> ~/.bashrc
USER root
RUN echo "" >> ~/.bashrc && \
echo "# Load Custom Aliases" >> ~/.bashrc && \
echo "source /home/laradock/aliases.sh" >> ~/.bashrc && \
echo "" >> ~/.bashrc
#####################################
# xDebug:
#####################################
ARG INSTALL_XDEBUG=false
RUN if [ ${INSTALL_XDEBUG} = true ]; then \
# Load the xdebug extension only with phpunit commands
apt-get update && \
apt-get install -y --force-yes php7.0-xdebug && \
sed -i 's/^/;/g' /etc/php/7.0/cli/conf.d/20-xdebug.ini && \
echo "alias phpunit='php -dzend_extension=xdebug.so /var/www/vendor/bin/phpunit'" >> ~/.bashrc \
;fi
# ADD for REMOTE debugging
COPY ./xdebug.ini /etc/php/7.0/cli/conf.d/xdebug.ini
#####################################
# ssh:
#####################################
ARG INSTALL_WORKSPACE_SSH=false
ENV INSTALL_WORKSPACE_SSH ${INSTALL_WORKSPACE_SSH}
ADD insecure_id_rsa /tmp/id_rsa
ADD insecure_id_rsa.pub /tmp/id_rsa.pub
RUN if [ ${INSTALL_WORKSPACE_SSH} = true ]; then \
rm -f /etc/service/sshd/down && \
cat /tmp/id_rsa.pub >> /root/.ssh/authorized_keys \
&& cat /tmp/id_rsa.pub >> /root/.ssh/id_rsa.pub \
&& cat /tmp/id_rsa >> /root/.ssh/id_rsa \
&& rm -f /tmp/id_rsa* \
&& chmod 644 /root/.ssh/authorized_keys /root/.ssh/id_rsa.pub \
&& chmod 400 /root/.ssh/id_rsa \
;fi
#####################################
# MongoDB:
#####################################
# Check if Mongo needs to be installed
ARG INSTALL_MONGO=false
ENV INSTALL_MONGO ${INSTALL_MONGO}
RUN if [ ${INSTALL_MONGO} = true ]; then \
# Install the mongodb extension
pecl install mongodb && \
echo "extension=mongodb.so" >> /etc/php/7.0/cli/conf.d/30-mongodb.ini \
;fi
#####################################
# Drush:
#####################################
USER root
ENV DRUSH_VERSION 8.1.2
ARG INSTALL_DRUSH=false
ENV INSTALL_DRUSH ${INSTALL_DRUSH}
RUN if [ ${INSTALL_DRUSH} = true ]; then \
# Install Drush 8 with the phar file.
curl -fsSL -o /usr/local/bin/drush https://github.com/drush-ops/drush/releases/download/$DRUSH_VERSION/drush.phar | bash && \
chmod +x /usr/local/bin/drush && \
drush core-status \
;fi
USER laradock
#####################################
# Node / NVM:
#####################################
# Check if NVM needs to be installed
ARG NODE_VERSION=stable
ENV NODE_VERSION ${NODE_VERSION}
ARG INSTALL_NODE=false
ENV INSTALL_NODE ${INSTALL_NODE}
ENV NVM_DIR /home/laradock/.nvm
RUN if [ ${INSTALL_NODE} = true ]; then \
# Install nvm (A Node Version Manager)
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.6/install.sh | bash && \
. $NVM_DIR/nvm.sh && \
nvm install ${NODE_VERSION} && \
nvm use ${NODE_VERSION} && \
nvm alias ${NODE_VERSION} && \
npm install -g gulp bower vue-cli \
;fi
# Wouldn't execute when added to the RUN statement in the above block
# Source NVM when loading bash since ~/.profile isn't loaded on non-login shell
RUN if [ ${INSTALL_NODE} = true ]; then \
echo "" >> ~/.bashrc && \
echo 'export NVM_DIR="$HOME/.nvm"' >> ~/.bashrc && \
echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc \
;fi
# Add NVM binaries to root's .bashrc
USER root
RUN if [ ${INSTALL_NODE} = true ]; then \
echo "" >> ~/.bashrc && \
echo 'export NVM_DIR="/home/laradock/.nvm"' >> ~/.bashrc && \
echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc \
;fi
#####################################
# YARN:
#####################################
USER laradock
ARG INSTALL_YARN=false
ENV INSTALL_YARN ${INSTALL_YARN}
ARG YARN_VERSION=latest
ENV YARN_VERSION ${YARN_VERSION}
RUN if [ ${INSTALL_YARN} = true ]; then \
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" && \
if [ ${YARN_VERSION} = "latest" ]; then \
curl -o- -L https://yarnpkg.com/install.sh | bash; \
else \
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version ${YARN_VERSION}; \
fi && \
echo "" >> ~/.bashrc && \
echo 'export PATH="$HOME/.yarn/bin:$PATH"' >> ~/.bashrc \
;fi
# Add YARN binaries to root's .bashrc
USER root
RUN if [ ${INSTALL_YARN} = true ]; then \
echo "" >> ~/.bashrc && \
echo 'export YARN_DIR="/home/laradock/.yarn"' >> ~/.bashrc && \
echo 'export PATH="$YARN_DIR/bin:$PATH"' >> ~/.bashrc \
;fi
#####################################
# PHP Aerospike:
#####################################
USER root
ARG INSTALL_AEROSPIKE_EXTENSION=true
ENV INSTALL_AEROSPIKE_EXTENSION ${INSTALL_AEROSPIKE_EXTENSION}
# Copy aerospike configration for remote debugging
COPY ./aerospike.ini /etc/php/7.0/cli/conf.d/aerospike.ini
RUN if [ ${INSTALL_AEROSPIKE_EXTENSION} = true ]; then \
# Install the php aerospike extension
curl -L -o /tmp/aerospike-client-php.tar.gz "https://github.com/luciano-jr/aerospike-client-php/archive/master.tar.gz" \
&& mkdir -p aerospike-client-php \
&& tar -C aerospike-client-php -zxvf /tmp/aerospike-client-php.tar.gz --strip 1 \
&& ( \
cd aerospike-client-php/src/aerospike \
&& phpize \
&& ./build.sh \
&& make install \
) \
&& rm /tmp/aerospike-client-php.tar.gz \
;fi
RUN if [ ${INSTALL_AEROSPIKE_EXTENSION} = false ]; then \
rm /etc/php/7.0/cli/conf.d/aerospike.ini \
;fi
#####################################
# PHP V8JS:
#####################################
USER root
ARG INSTALL_V8JS_EXTENSION=false
ENV INSTALL_V8JS_EXTENSION ${INSTALL_V8JS_EXTENSION}
RUN if [ ${INSTALL_V8JS_EXTENSION} = true ]; then \
# Install the php V8JS extension
add-apt-repository -y ppa:pinepain/libv8-5.4 \
&& apt-get update \
&& apt-get install -y php-dev php-pear libv8-5.4 \
&& pecl install v8js \
&& echo "extension=v8js.so" >> /etc/php/7.0/cli/php.ini \
;fi
#####################################
# Non-root user : PHPUnit path
#####################################
# add ./vendor/bin to non-root user's bashrc (needed for phpunit)
USER laradock
RUN echo "" >> ~/.bashrc && \
echo 'export PATH="/var/www/vendor/bin:$PATH"' >> ~/.bashrc
#####################################
# Laravel Artisan Alias
#####################################
USER root
RUN echo "" >> ~/.bashrc && \
echo 'alias art="php artisan"' >> ~/.bashrc
#####################################
# Laravel Envoy:
#####################################
USER laradock
ARG INSTALL_LARAVEL_ENVOY=true
ENV INSTALL_LARAVEL_ENVOY ${INSTALL_LARAVEL_ENVOY}
RUN if [ ${INSTALL_LARAVEL_ENVOY} = true ]; then \
# Install the Laravel Envoy
composer global require "laravel/envoy=~1.0" \
;fi
#####################################
# Deployer:
#####################################
USER laradock
ARG INSTALL_DEPLOYER=false
ENV INSTALL_DEPLOYER ${INSTALL_DEPLOYER}
RUN if [ ${INSTALL_DEPLOYER} = true ]; then \
# Install the Deployer
composer global require "deployer/deployer" \
;fi
#####################################
# Linuxbrew:
#####################################
USER root
ARG INSTALL_LINUXBREW=true
ENV INSTALL_LINUXBREW ${INSTALL_LINUXBREW}
RUN if [ ${INSTALL_LINUXBREW} = true ]; then \
# Preparation
apt-get update && \
apt-get upgrade -y && \
apt-get install -y build-essential make cmake scons curl git \
ruby autoconf automake autoconf-archive \
gettext libtool flex bison \
libbz2-dev libcurl4-openssl-dev \
libexpat-dev libncurses-dev && \
# Install the Linuxbrew
git clone https://github.com/Homebrew/linuxbrew.git ~/.linuxbrew && \
echo "" >> ~/.bashrc && \
echo 'export PKG_CONFIG_PATH"=/usr/local/lib/pkgconfig:/usr/local/lib64/pkgconfig:/usr/lib64/pkgconfig:/usr/lib/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig:$PKG_CONFIG_PATH"' >> ~/.bashrc && \
# Setup linuxbrew
echo 'export LINUXBREWHOME="$HOME/.linuxbrew"' >> ~/.bashrc && \
echo 'export PATH="$LINUXBREWHOME/bin:$PATH"' >> ~/.bashrc && \
echo 'export MANPATH="$LINUXBREWHOME/man:$MANPATH"' >> ~/.bashrc && \
echo 'export PKG_CONFIG_PATH="$LINUXBREWHOME/lib64/pkgconfig:$LINUXBREWHOME/lib/pkgconfig:$PKG_CONFIG_PATH"' >> ~/.bashrc && \
echo 'export LD_LIBRARY_PATH="$LINUXBREWHOME/lib64:$LINUXBREWHOME/lib:$LD_LIBRARY_PATH"' >> ~/.bashrc \
;fi
#####################################
# Minio:
#####################################
USER root
ARG INSTALL_MC=false
ENV INSTALL_MC ${INSTALL_MC}
COPY mc/config.json /root/.mc/config.json
RUN if [ ${INSTALL_MC} = true ]; then\
curl -fsSL -o /usr/local/bin/mc https://dl.minio.io/client/mc/release/linux-amd64/mc && \
chmod +x /usr/local/bin/mc \
;fi
USER laradock
#
#--------------------------------------------------------------------------
# Final Touch
#--------------------------------------------------------------------------
#
# Clean up
USER root
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Set default work directory
WORKDIR /var/www
| null | bug fix |
154 | 79a028ce11741a7665cdeab40171f7dca724fb4f | Bumped source to 20200816-dcc09bc | Bumped source to 20200816-dcc09bc
| FROM docker.pkg.github.com/dock0/amylum_arch/amylum_arch:20200816-60b9c4b
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm s6 execline musl-amylum
ADD service /service
ADD init /init
CMD ["/init"]
| FROM docker.pkg.github.com/dock0/amylum_arch/amylum_arch:20200816-dcc09bc
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm s6 execline musl-amylum
ADD service /service
ADD init /init
CMD ["/init"]
| bug fix |
99 | 55e20e7e2a583946eb7f05cf69c05842aa1ae08d | carriage return fix | carriage return fix
|
FROM alpine:edge
# Note:
# This is image is intended to be as small as possible
MAINTAINER "Paolo D'Onorio De Meo <p.donoriodemeo@cineca.it>"
RUN apk update && apk upgrade && apk add \
python3 jq\
bash vim curl wget less \
&& rm -rf /var/cache/apk/*
# Install easy install
ENV EASY_REPO https://bootstrap.pypa.io/ez_setup.py
RUN curl $EASY_REPO | python3
# Install pip and pip packages
RUN easy_install pip \
&& pip --no-cache-dir install --upgrade \
pip httpie http-prompt
# Create a token from API
ADD client_init.sh /tmp/gettoken
# Handle a guest user
ENV GUEST_SHELL /bin/bash
ENV GUEST_USER developer
ENV GUEST_UID 1000
RUN adduser -s $GUEST_SHELL -u $GUEST_UID -D -h /home/$GUEST_USER $GUEST_USER
# Use the new user
USER $GUEST_USER
ENV BASHRC /home/$GUEST_USER/.bashrc
RUN echo "export HISTCONTROL=ignoreboth:erasedups" > $BASHRC \
&& echo "echo '\\nSet your client with:'" >> $BASHRC \
&& echo "echo '$ . /tmp/gettoken'" >> $BASHRC
ENV PAGER less
ENV TERM xterm
|
FROM alpine:edge
# Note:
# This is image is intended to be as small as possible
MAINTAINER "Paolo D'Onorio De Meo <p.donoriodemeo@cineca.it>"
RUN apk update && apk upgrade && apk add \
python3 jq\
bash vim curl wget less \
&& rm -rf /var/cache/apk/*
# Install easy install
ENV EASY_REPO https://bootstrap.pypa.io/ez_setup.py
RUN curl $EASY_REPO | python3
# Install pip and pip packages
RUN easy_install pip \
&& pip --no-cache-dir install --upgrade \
pip httpie http-prompt
# Create a token from API
ADD client_init.sh /tmp/gettoken
# Handle a guest user
ENV GUEST_SHELL /bin/bash
ENV GUEST_USER developer
ENV GUEST_UID 1000
RUN adduser -s $GUEST_SHELL -u $GUEST_UID -D -h /home/$GUEST_USER $GUEST_USER
# Use the new user
USER $GUEST_USER
ENV BASHRC /home/$GUEST_USER/.bashrc
RUN echo "export HISTCONTROL=ignoreboth:erasedups" > $BASHRC \
&& echo "echo -e '\\nSet up this client with the command:'" >> $BASHRC \
&& echo "echo -e '$ . /tmp/gettoken\\n'" >> $BASHRC
ENV PAGER less
ENV TERM xterm
| Not enough inforamtion |
145 | 5241c3e60a204f764ecf3857415fc9a16e5399f9 | fixes up to python | fixes up to python
| FROM nvidia/cuda:9.1-cudnn7-devel-centos7
MAINTAINER r@fael.nl
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
ENV LC_ALL en_US.UTF-8
RUN yum update
RUN yum install -y wget \
unzip \
screen tmux \
ruby \
vim
# C/C++ CMake Python
RUN RUN yum install -y centos-release-scl && \
yum install -y devtoolset-7-gcc* \
devtoolset-7-valgrind \
devtoolset-7-gdb \
devtoolset-7-elfutils \
clang \
llvm-toolset-7 \
llvm-toolset-7-cmake \
rh-python36-python-pip \
rh-git29-git \
devtoolset-7-make
RUN echo "source scl_source enable devtoolset-7" >> /etc/bashrc
RUN echo "source scl_source enable llvm-toolset-7" >> /etc/bashrc
RUN echo "source scl_source enable rh-python36" >> /etc/bashrc
RUN echo "source scl_source enable rh-git29" >> /etc/bashrc
RUN yum install -y qt5*devel
RUN yum install -y gtk2-devel
RUN yum install -y blas-devel \
lapack-devel \
atlas-devel \
gcc-gfortran \
tbb-devel \
jasper-devel \
libpng-devel \
libtiff-devel \
libv4l-devel
# Ninja builder
RUN cd /tmp/ && wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \
rpm -ivh epel-release-latest-7.noarch.rpm \
RUN yum -y --enablerepo=epel install ninja-build && \
echo "alias ninja='ninja-build'" >> /etc/bashrc
RUN yum remove -y epel-release-7-11
# Fish
RUN cd /etc/yum.repos.d/ && wget https://download.opensuse.org/repositories/shells:fish:release:2/CentOS_7/shells:fish:release:2.repo
RUN yum install fish -y
# Python libs & jupyter
RUN pip3 install --upgrade pip
RUN pip3 install numpy scipy matplotlib pandas tensorflow-gpu keras scikit-image scikit-learn
RUN pip3 install jsonschema jinja2 tornado pyzmq ipython jupyter
# OpenCV
ARG OPENCV_VERSION="3.4.1"
RUN cd /root && wget -O opencv.zip https://github.com/opencv/opencv/archive/$OPENCV_VERSION.zip
RUN cd /root && wget -O contrib.zip https://github.com/opencv/opencv_contrib/archive/$OPENCV_VERSION.zip
RUN cd /root && unzip opencv.zip && unzip contrib.zip
RUN mkdir /root/opencv-$OPENCV_VERSION/build && cd /root/opencv-$OPENCV_VERSION/build && \
cmake .. -G"Ninja" -DCMAKE_BUILD_TYPE=RELEASE \
-DENABLE_CXX11=ON -DOPENCV_ENABLE_NONFREE=ON -DCUDA_HOST_COMPILER=/usr/bin/g++ \
-DOPENCV_EXTRA_MODULES_PATH=/root/opencv_contrib-$OPENCV_VERSION/modules \
-DPYTHON_EXECUTABLE=$(which python3) && \
ninja && ninja install
RUN cp /root/opencv-$OPENCV_VERSION/build/lib/python3/cv2.cpython-35m-x86_64-linux-gnu.so /usr/local/lib/python3.5/dist-packages/
# Julia
ARG JULIA_URL="https://julialang-s3.julialang.org/bin/linux/x64/0.6/julia-0.6.2-linux-x86_64.tar.gz"
ARG JULIA_PATH="julia-d386e40c17"
RUN cd /root && wget -O julia.tar.gz ${JULIA_URL} && tar xzf julia.tar.gz
RUN mv /root/$JULIA_PATH/ /opt/julia && chown -R root.root /opt/julia && chmod -R +rx /opt/julia
RUN ln -s /opt/julia/bin/julia /usr/local/bin/julia
RUN julia -e 'Pkg.update()'
RUN julia -e 'Pkg.add("IJulia")'
# # Finnaly
RUN rm -rf /tmp/*.rpm /root/*opencv* /root/*julia*
# # Vim Configuration
# COPY vimrc /root/.vimrc
# RUN curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# RUN echo -e "Run inside vim\n:PlugInstall"
RUN mkdir /playground
WORKDIR /playground
CMD fish
EXPOSE 8888
| FROM nvidia/cuda:9.1-cudnn7-devel-centos7
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
ENV LC_ALL en_US.UTF-8
RUN yum groupinstall -y "Development tools"
RUN yum install -y wget \
unzip \
screen tmux \
ruby \
vim
# C/C++ CMake Python
RUN yum install -y centos-release-scl && \
yum install -y devtoolset-7-gcc* \
devtoolset-7-valgrind \
devtoolset-7-gdb \
devtoolset-7-elfutils \
clang \
llvm-toolset-7 \
llvm-toolset-7-cmake \
rh-python36-python-pip \
rh-git29-git \
devtoolset-7-make
RUN echo "source scl_source enable devtoolset-7" >> /etc/bashrc
RUN echo "source scl_source enable llvm-toolset-7" >> /etc/bashrc
RUN echo "source scl_source enable rh-python36" >> /etc/bashrc
RUN echo "source scl_source enable rh-git29" >> /etc/bashrc
RUN source /etc/bashrc
RUN yum install -y qt5*devel
RUN yum install -y gtk2-devel
RUN yum install -y blas-devel \
lapack-devel \
atlas-devel \
gcc-gfortran \
tbb-devel \
jasper-devel \
libpng-devel \
libtiff-devel \
libv4l-devel
# Ninja builder
RUN cd /tmp/ && wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \
rpm -ivh epel-release-latest-7.noarch.rpm
RUN yum -y --enablerepo=epel install ninja-build && \
echo "alias ninja='ninja-build'" >> /etc/bashrc
RUN yum remove -y epel-release-7-11
RUN source /etc/bashrc
# Fish
RUN cd /etc/yum.repos.d/ && wget https://download.opensuse.org/repositories/shells:fish:release:2/CentOS_7/shells:fish:release:2.repo
RUN yum install fish -y
# Python libs & jupyter
RUN /opt/rh/rh-python36/root/usr/bin/pip3 install --upgrade pip
RUN /opt/rh/rh-python36/root/usr/bin/pip3 install \
numpy scipy matplotlib pandas \
tensorflow-gpu keras \
scikit-image scikit-learn \
jsonschema jinja2 tornado pyzmq ipython jupyter
# OpenCV
ARG OPENCV_VERSION="3.4.1"
RUN cd /root && wget -O opencv.zip https://github.com/opencv/opencv/archive/$OPENCV_VERSION.zip
RUN cd /root && wget -O contrib.zip https://github.com/opencv/opencv_contrib/archive/$OPENCV_VERSION.zip
RUN cd /root && unzip opencv.zip && unzip contrib.zip
RUN mkdir /root/opencv-$OPENCV_VERSION/build && cd /root/opencv-$OPENCV_VERSION/build && \
cmake .. -G"Ninja" -DCMAKE_BUILD_TYPE=RELEASE \
-DENABLE_CXX11=ON -DOPENCV_ENABLE_NONFREE=ON -DCUDA_HOST_COMPILER=/usr/bin/g++ \
-DOPENCV_EXTRA_MODULES_PATH=/root/opencv_contrib-$OPENCV_VERSION/modules \
-DPYTHON_EXECUTABLE=$(which python3) && \
ninja && ninja install
RUN cp /root/opencv-$OPENCV_VERSION/build/lib/python3/cv2.cpython-35m-x86_64-linux-gnu.so /usr/local/lib/python3.5/dist-packages/
# Julia
ARG JULIA_URL="https://julialang-s3.julialang.org/bin/linux/x64/0.6/julia-0.6.2-linux-x86_64.tar.gz"
ARG JULIA_PATH="julia-d386e40c17"
RUN cd /root && wget -O julia.tar.gz ${JULIA_URL} && tar xzf julia.tar.gz
RUN mv /root/$JULIA_PATH/ /opt/julia && chown -R root.root /opt/julia && chmod -R +rx /opt/julia
RUN ln -s /opt/julia/bin/julia /usr/local/bin/julia
RUN julia -e 'Pkg.update()'
RUN julia -e 'Pkg.add("IJulia")'
# # Finnaly
RUN rm -rf /tmp/*.rpm /root/*opencv* /root/*julia*
# # Vim Configuration
# COPY vimrc /root/.vimrc
# RUN curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# RUN echo -e "Run inside vim\n:PlugInstall"
RUN mkdir /playground
WORKDIR /playground
CMD fish
EXPOSE 8888
| maintenance/other |
258 | 852b728a02ba474f6948c2e9b019f8959cc11a9d | Attempt to fix Dockerfile | Attempt to fix Dockerfile
| FROM node:12-alpine
WORKDIR /src
ADD . /src
ARG env=production
RUN yarn global add bower \
&& bower install --allow-root \
&& yarn
WORKDIR /src
EXPOSE 9090
ENV NODE_ENV $env
CMD ["npm", "start"]
| FROM node:12-slim
WORKDIR /src
ADD . /src
ARG env=production
RUN apt-get update \
&& apt-get install build-essential git vim -y --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
RUN yarn global add bower \
&& bower install --allow-root \
&& yarn
WORKDIR /src
EXPOSE 9090
ENV NODE_ENV $env
CMD ["npm", "start"]
| maintenance/other |
62 | 9d81ae8c9aed9b889130485f79e3c6788ee44f48 | Bumped source to 20210708-032639e | Bumped source to 20210708-032639e
| FROM docker.pkg.github.com/dock0/arch/arch:20210707-324d485
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm \
strace tcpdump openbsd-netcat socat htop \
nmap dnsutils net-tools iputils openssh \
screen tmux man-db lsof psmisc git tree \
vim-minimal inetutils
| FROM docker.pkg.github.com/dock0/arch/arch:20210708-032639e
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm \
strace tcpdump openbsd-netcat socat htop \
nmap dnsutils net-tools iputils openssh \
screen tmux man-db lsof psmisc git tree \
vim-minimal inetutils
| maintenance/other |
303 | 13e51f196e00eaa7140413b6b27c490ad322ea12 | Bumped source to 20210130-a067386 | Bumped source to 20210130-a067386
| FROM docker.pkg.github.com/dock0/arch/arch:20210130-f647073
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm \
strace tcpdump openbsd-netcat socat htop \
nmap dnsutils net-tools iputils openssh \
screen tmux man-db lsof psmisc git tree \
vim-minimal inetutils
| FROM docker.pkg.github.com/dock0/arch/arch:20210130-a067386
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm \
strace tcpdump openbsd-netcat socat htop \
nmap dnsutils net-tools iputils openssh \
screen tmux man-db lsof psmisc git tree \
vim-minimal inetutils
| code refactoring |
2097 | d52fd80eea1515e83f85ba19640cd3601490484f | Bumped source to 20210119-0101695 | Bumped source to 20210119-0101695
| FROM docker.pkg.github.com/dock0/arch/arch:20210119-bab8ee8
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm \
strace tcpdump openbsd-netcat socat htop \
nmap dnsutils net-tools iputils openssh \
screen tmux man-db lsof psmisc git tree \
vim-minimal inetutils
| null | code refactoring |
197 | c913a3cc143fb8342d0c8eaabf94109d71f37ca3 | Update golang:1.10-alpine Docker digest to bb3108 | Update golang:1.10-alpine Docker digest to bb3108 | FROM golang:1.10-alpine@sha256:96e25c71acc7756adaa0c9237bc799dfba4c0a71409612b3111f20a79a9c4cc2 AS build
RUN apk add --no-cache \
make \
git \
upx
RUN mkdir -p /go/src/github.com/hairyhenderson/gomplate
WORKDIR /go/src/github.com/hairyhenderson/gomplate
COPY . /go/src/github.com/hairyhenderson/gomplate
RUN make build-x compress-all
FROM scratch AS artifacts
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=build /go/src/github.com/hairyhenderson/gomplate/bin/* /bin/
CMD [ "/bin/gomplate_linux-amd64" ]
FROM scratch AS gomplate
ARG BUILD_DATE
ARG VCS_REF
ARG OS=linux
ARG ARCH=amd64
LABEL org.opencontainers.image.created=$BUILD_DATE \
org.opencontainers.image.revision=$VCS_REF \
org.opencontainers.image.source="https://github.com/hairyhenderson/gomplate"
COPY --from=artifacts /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=artifacts /bin/gomplate_${OS}-${ARCH} /gomplate
ENTRYPOINT [ "/gomplate" ]
CMD [ "--help" ]
FROM alpine:3.7@sha256:8c03bb07a531c53ad7d0f6e7041b64d81f99c6e493cb39abba56d956b40eacbc AS gomplate-alpine
ARG BUILD_DATE
ARG VCS_REF
ARG OS=linux
ARG ARCH=amd64
LABEL org.opencontainers.image.created=$BUILD_DATE \
org.opencontainers.image.revision=$VCS_REF \
org.opencontainers.image.source="https://github.com/hairyhenderson/gomplate"
RUN apk add --no-cache ca-certificates
COPY --from=artifacts /bin/gomplate_${OS}-${ARCH}-slim /bin/gomplate
ENTRYPOINT [ "/gomplate" ]
CMD [ "--help" ]
FROM scratch AS gomplate-slim
ARG BUILD_DATE
ARG VCS_REF
ARG OS=linux
ARG ARCH=amd64
LABEL org.opencontainers.image.created=$BUILD_DATE \
org.opencontainers.image.revision=$VCS_REF \
org.opencontainers.image.source="https://github.com/hairyhenderson/gomplate"
COPY --from=artifacts /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=artifacts /bin/gomplate_${OS}-${ARCH}-slim /gomplate
ENTRYPOINT [ "/gomplate" ]
CMD [ "--help" ]
| FROM golang:1.10-alpine@sha256:bb31085d5c5db578edf3d4e5541cfb949b713bb7018bbac4dfd407b2017ef5b8 AS build
RUN apk add --no-cache \
make \
git \
upx
RUN mkdir -p /go/src/github.com/hairyhenderson/gomplate
WORKDIR /go/src/github.com/hairyhenderson/gomplate
COPY . /go/src/github.com/hairyhenderson/gomplate
RUN make build-x compress-all
FROM scratch AS artifacts
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=build /go/src/github.com/hairyhenderson/gomplate/bin/* /bin/
CMD [ "/bin/gomplate_linux-amd64" ]
FROM scratch AS gomplate
ARG BUILD_DATE
ARG VCS_REF
ARG OS=linux
ARG ARCH=amd64
LABEL org.opencontainers.image.created=$BUILD_DATE \
org.opencontainers.image.revision=$VCS_REF \
org.opencontainers.image.source="https://github.com/hairyhenderson/gomplate"
COPY --from=artifacts /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=artifacts /bin/gomplate_${OS}-${ARCH} /gomplate
ENTRYPOINT [ "/gomplate" ]
CMD [ "--help" ]
FROM alpine:3.7@sha256:8c03bb07a531c53ad7d0f6e7041b64d81f99c6e493cb39abba56d956b40eacbc AS gomplate-alpine
ARG BUILD_DATE
ARG VCS_REF
ARG OS=linux
ARG ARCH=amd64
LABEL org.opencontainers.image.created=$BUILD_DATE \
org.opencontainers.image.revision=$VCS_REF \
org.opencontainers.image.source="https://github.com/hairyhenderson/gomplate"
RUN apk add --no-cache ca-certificates
COPY --from=artifacts /bin/gomplate_${OS}-${ARCH}-slim /bin/gomplate
ENTRYPOINT [ "/gomplate" ]
CMD [ "--help" ]
FROM scratch AS gomplate-slim
ARG BUILD_DATE
ARG VCS_REF
ARG OS=linux
ARG ARCH=amd64
LABEL org.opencontainers.image.created=$BUILD_DATE \
org.opencontainers.image.revision=$VCS_REF \
org.opencontainers.image.source="https://github.com/hairyhenderson/gomplate"
COPY --from=artifacts /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=artifacts /bin/gomplate_${OS}-${ARCH}-slim /gomplate
ENTRYPOINT [ "/gomplate" ]
CMD [ "--help" ]
| feature addition |
267 | b935793b060a3a920837ae0ae507115840b856d6 | Update AWS CLI version to 1.10.53 | Update AWS CLI version to 1.10.53
| FROM python:3.5-slim
MAINTAINER Nikolay Rybak <mykola.rybak@gmail.com>
RUN \
mkdir -p /aws && \
pip install --upgrade awscli==1.10.52 && \
rm -rf /root/.cache && \
rm -rf /var/lib/apt/lists/*
WORKDIR /aws
ENTRYPOINT ["aws"]
| FROM python:3.5-slim
MAINTAINER Nikolay Rybak <mykola.rybak@gmail.com>
RUN \
mkdir -p /aws && \
pip install --upgrade awscli==1.10.53 && \
rm -rf /root/.cache && \
rm -rf /var/lib/apt/lists/*
WORKDIR /aws
ENTRYPOINT ["aws"]
| bug fix |
347 | a063d2244249a62b8f5e0e0c28cc47dbcfa3b5ad | copy more files and add new entrypoint | copy more files and add new entrypoint
| FROM alpine
COPY add-user gen-cert output-crt /usr/local/sbin/
RUN apk update \
&& apk add openssl \
&& apk add apache2-utils
ENTRYPOINT ["sh"]
| FROM alpine
COPY add-user del-user gen-cert output-crt output-auth sleep-forever /usr/local/sbin/
RUN apk update \
&& apk add openssl \
&& apk add apache2-utils
ENTRYPOINT ["sleep-forever"]
| code refactoring |
2117 | 4d1cd9fce58dd9c7ab31bc183d0294d2afd1a40f | Fixed my fingers being overhasty | Fixed my fingers being overhasty
| FROM frolvlad/alpine-glibc
MAINTAINER Jannik Kolodziej <docker@jkolodziej.de>
ENV FACTORIO_VERSION=0.12.31 \
MANAGER_VERSION=0.2.0 \
ADMIN_PASSWORD=
VOLUME /opt/factorio/saves /opt/factorio/mods /security
RUN apk add --no-cache curl tar unzip nginx
WORKDIR /opt/
ADD "init.sh" "/opt/init.sh"
ADD "nginx.conf" "/etc/nginx/nginx.conf"
RUN curl -s -L -S -k https://www.factorio.com/get-download/$FACTORIO_VERSION/headless/linux64 -o /tmp/factorio_$FACTORIO_VERSION.tar.gz && \
tar zxf /tmp/factorio_$FACTORIO_VERSION.tar.gz && \
rm -rf /tmp/factorio_$FACTORIO_VERSION.tag.gz && \
curl -s -L -S -k https://github.com/MajorMJR/factorio-server-manager/releases/download/$MANAGER_VERSION/factorio-server-manager-linux-x64.zip --cacert /opt/github.pem -o /tmp/factorio-server-manager-linux-x64_$MANAGER_VERSION.zip && \
unzip -qq /tmp/factorio-server-manager-linux-x64_$MANAGER_VERSION.zip && \
rm -rf /tmp/factorio-server-manager-linux-x64_$MANAGER_VERSION.zip
EXPOSE 80/tcp 443/tcp 34190-34200/udp
ENTRYPOINT ["/opt/init.sh"]
| null | bug fix |
2139 | 56484a6117e307b4b78c4f7c4c059b1e2d0720ee | update awestruct to ruby 2.3 | update awestruct to ruby 2.3
|
FROM debian:jessie
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
bzip2 \
ca-certificates \
curl \
libffi-dev \
libgdbm3 \
libssl-dev \
libyaml-dev \
procps \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/*
# skip installing gem documentation
RUN mkdir -p /usr/local/etc \
&& { \
echo 'install: --no-document'; \
echo 'update: --no-document'; \
} >> /usr/local/etc/gemrc
ENV RUBY_MAJOR 2.2
ENV RUBY_VERSION 2.2.5
ENV RUBY_DOWNLOAD_SHA256 30c4b31697a4ca4ea0c8db8ad30cf45e6690a0f09687e5d483c933c03ca335e3
ENV RUBYGEMS_VERSION 2.6.4
ENV BUNDLER_VERSION 1.12.3
ADD Gemfile /tmp/Gemfile
# some of ruby's build scripts are written in ruby
# we purge this later to make sure our final image uses what we just built
RUN set -ex \
&& buildDeps=' \
autoconf \
bison \
gcc \
libbz2-dev \
libgdbm-dev \
libglib2.0-dev \
libncurses-dev \
libreadline-dev \
libxml2-dev \
libxslt-dev \
make \
ruby \
' \
&& apt-get update \
&& apt-get install -y --no-install-recommends $buildDeps \
&& rm -rf /var/lib/apt/lists/* \
&& curl -fSL -o ruby.tar.gz "http://cache.ruby-lang.org/pub/ruby/$RUBY_MAJOR/ruby-$RUBY_VERSION.tar.gz" \
&& echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.gz" | sha256sum -c - \
&& mkdir -p /usr/src/ruby \
&& tar -xzf ruby.tar.gz -C /usr/src/ruby --strip-components=1 \
&& rm ruby.tar.gz \
&& cd /usr/src/ruby \
&& { echo '#define ENABLE_PATH_CHECK 0'; echo; cat file.c; } > file.c.new && mv file.c.new file.c \
&& autoconf \
&& ./configure --disable-install-doc \
&& make -j"$(nproc)" \
&& make install \
&& gem install bundler --version "$BUNDLER_VERSION" \
&& cd /tmp \
&& bundle install \
&& apt-get purge -y --auto-remove $buildDeps \
&& gem update --system $RUBYGEMS_VERSION \
&& rm -r /usr/src/ruby
RUN gem install bundler --version "$BUNDLER_VERSION"
# install things globally, for great justice
# and don't create ".bundle" in all our apps
ENV GEM_HOME /usr/local/bundle
ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_BIN="$GEM_HOME/bin" \
BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
ENV PATH $BUNDLE_BIN:$PATH
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
WORKDIR /app
EXPOSE 4242
ENTRYPOINT ["awestruct"]
CMD ["--help"]
| null | bug fix |
299 | 47ecafd9d67eeb0cdef5d97fba305695885908f3 | Fix dependencies | Fix dependencies
| ARG BASE_IMAGE_TAG
FROM wodby/alpine:${BASE_IMAGE_TAG}
ARG MARIADB_VER
ARG GALERA_VER
ARG WSREP_VER
ARG NPROC
ENV MARIADB_VER="${MARIADB_VER}" \
GALERA_VER="${GALERA_VER}" \
BACKUPS_DIR="/mnt/backups"
COPY patches /tmp/patches
RUN set -xe; \
\
addgroup -g 101 -S mysql; \
adduser -u 100 -D -S -s /bin/bash -G mysql mysql; \
echo "PS1='\w\$ '" >> /home/mysql/.bashrc; \
\
apk add --update --no-cache -t .mariadb-run-deps \
libaio \
libstdc++ \
libxml2 \
linux-pam \
make \
pcre2 \
pwgen \
sudo \
tzdata \
xz-libs \
zlib; \
\
apk add --update --no-cache -t .mariadb-build-deps \
attr \
autoconf \
bison \
build-base \
cmake \
coreutils \
gnupg \
libaio-dev \
linux-pam-dev \
# MariaDB 10.1 does not support OpenSSL 1.1.
$(test "${MARIADB_VER:0:4}" = "10.1" && echo 'libressl-dev' || echo 'openssl-dev') \
linux-headers \
ncurses-dev \
patch \
pcre-dev \
pcre2-dev \
readline-dev \
xz-dev \
zlib-dev; \
\
mariadb_url="https://downloads.mariadb.com/MariaDB/mariadb-${MARIADB_VER}/source/mariadb-${MARIADB_VER}.tar.gz"; \
curl -fSL "${mariadb_url}" -o /tmp/mariadb.tar.gz; \
curl -fSL "${mariadb_url}.asc" -o /tmp/mariadb.tar.gz.asc; \
GPG_KEYS="199369E5404BD5FC7D2FE43BCBCB082A1BB943DB;430BDF5C56E7C94E848EE60C1C4CBDCDCD2EFD2A;4D1BB29D63D98E422B2113B19334A25F8507EFA5" gpg_verify /tmp/mariadb.tar.gz.asc /tmp/mariadb.tar.gz; \
\
tar zxf /tmp/mariadb.tar.gz -C /tmp; \
#
# Optional Galera Build/Install
#
if [ -n "${GALERA_VER}" ]; then \
apk add --update --no-cache -t .galera-run-deps \
boost-program_options \
rsync \
socat; \
apk add --update --no-cache -t .galera-build-deps \
boost-dev \
check-dev \
scons; \
galera_url="https://github.com/codership/galera/archive/release_${GALERA_VER}.tar.gz"; \
curl -fSL "${galera_url}" -o /tmp/galera.tar.gz; \
tar zxf /tmp/galera.tar.gz -C /tmp; \
rmdir "/tmp/galera-release_${GALERA_VER}/wsrep/src"; \
ln -s "/tmp/mariadb-${MARIADB_VER}/wsrep-lib/wsrep-API/v${WSREP_VER}" "/tmp/galera-release_${GALERA_VER}/wsrep/src"; \
\
cd "/tmp/galera-release_${GALERA_VER}"; \
for i in /tmp/patches/galera/"${GALERA_VER:0:4}"/*.patch; do patch -p1 -i "${i}"; done; \
RUN_TESTS=0 scripts/build.sh -j "${NPROC:-$(nproc)}"; \
apk del --purge .galera-build-deps; \
\
mkdir -p /usr/lib/galera; \
cp -a "/tmp/galera-release_${GALERA_VER}/libgalera_smm.so" /usr/lib/galera; \
chown -R mysql:mysql /usr/lib/galera; \
\
cp -a "/tmp/galera-release_${GALERA_VER}/garb/garbd" /usr/sbin; \
fi; \
\
#
# MariaDB Build
#
cd "/tmp/mariadb-${MARIADB_VER}"; \
# From alpine repository https://git.alpinelinux.org/cgit/aports/tree/main/mariadb?h=3.6-stable
for i in /tmp/patches/"${MARIADB_VER:0:4}"/*.patch; do patch -p1 -i "${i}"; done; \
\
cmake . -DBUILD_CONFIG=mysql_release \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_INSTALL_PREFIX=/usr \
-DSYSCONFDIR=/etc/mysql \
-DMYSQL_DATADIR=/var/lib/mysql \
-DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock \
-DDEFAULT_CHARSET=utf8mb4 \
-DDEFAULT_COLLATION=utf8mb4_general_ci \
-DENABLED_LOCAL_INFILE=ON \
-DINSTALL_INFODIR=share/mysql/docs \
-DINSTALL_MANDIR=share/man \
-DINSTALL_PLUGINDIR=lib/mysql/plugin \
-DINSTALL_SCRIPTDIR=bin \
-DINSTALL_INCLUDEDIR=include/mysql \
-DINSTALL_DOCREADMEDIR=share/mysql \
-DINSTALL_SUPPORTFILESDIR=share/mysql \
-DINSTALL_MYSQLSHAREDIR=share/mysql \
-DINSTALL_DOCDIR=share/mysql/docs \
-DINSTALL_SHAREDIR=share/mysql \
-DCONNECT_WITH_MYSQL=ON \
-DCONNECT_WITH_LIBXML2=system \
-DCONNECT_WITH_ODBC=NO \
-DCONNECT_WITH_JDBC=NO \
-DPLUGIN_ARCHIVE=YES \
-DPLUGIN_ARIA=YES \
-DPLUGIN_BLACKHOLE=YES \
-DPLUGIN_CASSANDRA=NO \
-DPLUGIN_CSV=YES \
-DPLUGIN_MYISAM=YES \
-DPLUGIN_MROONGA=NO \
-DPLUGIN_OQGRAPH=NO \
-DPLUGIN_PARTITION=YES \
-DPLUGIN_ROCKSDB=YES \
-DPLUGIN_SPHINX=NO \
-DPLUGIN_TOKUDB=NO \
-DPLUGIN_AUTH_GSSAPI=NO \
-DPLUGIN_AUTH_GSSAPI_CLIENT=OFF \
-DPLUGIN_CRACKLIB_PASSWORD_CHECK=NO \
-DWITH_ASAN=OFF \
-DWITH_EMBEDDED_SERVER=ON \
-DWITH_EXTRA_CHARSETS=complex \
-DWITH_INNODB_BZIP2=OFF \
-DWITH_INNODB_LZ4=OFF \
-DWITH_INNODB_LZMA=ON \
-DWITH_INNODB_LZO=OFF \
-DWITH_INNODB_SNAPPY=OFF \
-DWITH_ROCKSDB_BZIP2=OFF \
-DWITH_ROCKSDB_JEMALLOC=OFF \
-DWITH_ROCKSDB_LZ4=OFF \
-DWITH_ROCKSDB_ZSTD=OFF \
-DWITH_ROCKSDB_SNAPPY=OFF \
-DWITH_JEMALLOC=NO \
-DWITH_LIBARCHIVE=system \
-DWITH_LIBNUMA=NO \
-DWITH_LIBWRAP=OFF \
-DWITH_LIBWSEP=OFF \
-DWITH_MARIABACKUP=ON \
-DWITH_PCRE=system \
-DWITH_READLINE=ON \
-DWITH_SYSTEMD=no \
-DWITH_SSL=system \
-DWITH_VALGRIND=OFF \
-DWITH_ZLIB=system; \
\
make -j "${NPROC:-$(nproc)}"; \
make install; \
\
# Script to fix volumes permissions via sudo.
echo "chown mysql:mysql /var/lib/mysql ${BACKUPS_DIR}" > /usr/local/bin/init_volumes; \
chmod +x /usr/local/bin/init_volumes; \
echo 'mysql ALL=(root) NOPASSWD: /usr/local/bin/init_volumes' > /etc/sudoers.d/mysql; \
\
mkdir -p \
/var/run/mysqld \
/var/lib/mysql \
/etc/mysql \
/docker-entrypoint-initdb.d \
"${BACKUPS_DIR}"; \
\
chown -R mysql:mysql \
/var/run/mysqld \
/var/lib/mysql \
/usr/lib/mysql/plugin \
/etc/mysql \
/docker-entrypoint-initdb.d \
"${BACKUPS_DIR}"; \
\
# Remove dev, test, doc, benchmark related files.
rm -rf \
/usr/bin/mysql_client_test \
/usr/bin/mysql_client_test_embedded \
/usr/bin/mysql_config \
/usr/bin/mysqltest \
/usr/bin/mysqltest_embedded \
/usr/include/mysql \
/usr/lib/libmariadb.so* \
/usr/lib/libmariadbd.so.* \
/usr/lib/libmysqlclient.so* \
/usr/lib/libmysqlclient_r.so* \
/usr/lib/libmysqld.so.* \
/usr/mysql-test \
/usr/share/man \
/usr/sql-bench; \
\
find /usr/lib -name '*.a' -maxdepth 1 -print0 | xargs -0 rm; \
find /usr/lib -name '*.so' -type l -maxdepth 1 -print0 | xargs -0 rm; \
\
# Stripping binaries and .so files.
scanelf --symlink --recursive --nobanner --osabi --etype "ET_DYN,ET_EXEC" \
/usr/bin/* /usr/sbin/* /usr/lib/mysql/plugin/* /usr/lib/galera/* | while read type osabi filename; do \
([ "$osabi" != "STANDALONE" ] && [ "${filename}" != "/usr/bin/strip" ]) || continue; \
XATTR=$(getfattr --match="" --dump "${filename}"); \
strip "${filename}"; \
if [ -n "$XATTR" ]; then \
echo "$XATTR" | setfattr --restore=-; \
fi; \
done; \
\
# Clean up.
apk del --purge .mariadb-build-deps; \
rm -rf /tmp/*; \
rm -rf /var/cache/apk/*
USER mysql
COPY bin /usr/local/bin
COPY templates /etc/gotpl/
COPY docker-entrypoint.sh /
WORKDIR /var/lib/mysql
VOLUME /var/lib/mysql
EXPOSE 3306
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["mysqld"]
| ARG BASE_IMAGE_TAG
FROM wodby/alpine:${BASE_IMAGE_TAG}
ARG MARIADB_VER
ARG GALERA_VER
ARG WSREP_VER
ARG NPROC
ENV MARIADB_VER="${MARIADB_VER}" \
GALERA_VER="${GALERA_VER}" \
BACKUPS_DIR="/mnt/backups"
COPY patches /tmp/patches
RUN set -xe; \
\
addgroup -g 101 -S mysql; \
adduser -u 100 -D -S -s /bin/bash -G mysql mysql; \
echo "PS1='\w\$ '" >> /home/mysql/.bashrc; \
\
apk add --update --no-cache -t .mariadb-run-deps \
libaio \
libstdc++ \
libxml2 \
linux-pam \
make \
$(test "${MARIADB_VER:0:4}" = "10.5" && echo 'pcre2' || echo 'pcre') \
pwgen \
sudo \
tzdata \
xz-libs \
zlib; \
\
apk add --update --no-cache -t .mariadb-build-deps \
attr \
autoconf \
bison \
build-base \
cmake \
coreutils \
gnupg \
libaio-dev \
linux-pam-dev \
# MariaDB 10.1 does not support OpenSSL 1.1.
$(test "${MARIADB_VER:0:4}" = "10.1" && echo 'libressl-dev' || echo 'openssl-dev') \
linux-headers \
ncurses-dev \
patch \
$(test "${MARIADB_VER:0:4}" = "10.5" && echo 'pcre2-dev' || echo 'pcre-dev') \
readline-dev \
xz-dev \
zlib-dev; \
\
mariadb_url="https://downloads.mariadb.com/MariaDB/mariadb-${MARIADB_VER}/source/mariadb-${MARIADB_VER}.tar.gz"; \
curl -fSL "${mariadb_url}" -o /tmp/mariadb.tar.gz; \
curl -fSL "${mariadb_url}.asc" -o /tmp/mariadb.tar.gz.asc; \
GPG_KEYS="199369E5404BD5FC7D2FE43BCBCB082A1BB943DB;430BDF5C56E7C94E848EE60C1C4CBDCDCD2EFD2A;4D1BB29D63D98E422B2113B19334A25F8507EFA5" gpg_verify /tmp/mariadb.tar.gz.asc /tmp/mariadb.tar.gz; \
\
tar zxf /tmp/mariadb.tar.gz -C /tmp; \
#
# Optional Galera Build/Install
#
if [ -n "${GALERA_VER}" ]; then \
apk add --update --no-cache -t .galera-run-deps \
boost-program_options \
rsync \
socat; \
apk add --update --no-cache -t .galera-build-deps \
boost-dev \
check-dev \
scons; \
galera_url="https://github.com/codership/galera/archive/release_${GALERA_VER}.tar.gz"; \
curl -fSL "${galera_url}" -o /tmp/galera.tar.gz; \
tar zxf /tmp/galera.tar.gz -C /tmp; \
rmdir "/tmp/galera-release_${GALERA_VER}/wsrep/src"; \
ln -s "/tmp/mariadb-${MARIADB_VER}/wsrep-lib/wsrep-API/v${WSREP_VER}" "/tmp/galera-release_${GALERA_VER}/wsrep/src"; \
\
cd "/tmp/galera-release_${GALERA_VER}"; \
for i in /tmp/patches/galera/"${GALERA_VER:0:4}"/*.patch; do patch -p1 -i "${i}"; done; \
RUN_TESTS=0 scripts/build.sh -j "${NPROC:-$(nproc)}"; \
apk del --purge .galera-build-deps; \
\
mkdir -p /usr/lib/galera; \
cp -a "/tmp/galera-release_${GALERA_VER}/libgalera_smm.so" /usr/lib/galera; \
chown -R mysql:mysql /usr/lib/galera; \
\
cp -a "/tmp/galera-release_${GALERA_VER}/garb/garbd" /usr/sbin; \
fi; \
\
#
# MariaDB Build
#
cd "/tmp/mariadb-${MARIADB_VER}"; \
# From alpine repository https://git.alpinelinux.org/cgit/aports/tree/main/mariadb?h=3.6-stable
for i in /tmp/patches/"${MARIADB_VER:0:4}"/*.patch; do patch -p1 -i "${i}"; done; \
\
cmake . -DBUILD_CONFIG=mysql_release \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_INSTALL_PREFIX=/usr \
-DSYSCONFDIR=/etc/mysql \
-DMYSQL_DATADIR=/var/lib/mysql \
-DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock \
-DDEFAULT_CHARSET=utf8mb4 \
-DDEFAULT_COLLATION=utf8mb4_general_ci \
-DENABLED_LOCAL_INFILE=ON \
-DINSTALL_INFODIR=share/mysql/docs \
-DINSTALL_MANDIR=share/man \
-DINSTALL_PLUGINDIR=lib/mysql/plugin \
-DINSTALL_SCRIPTDIR=bin \
-DINSTALL_INCLUDEDIR=include/mysql \
-DINSTALL_DOCREADMEDIR=share/mysql \
-DINSTALL_SUPPORTFILESDIR=share/mysql \
-DINSTALL_MYSQLSHAREDIR=share/mysql \
-DINSTALL_DOCDIR=share/mysql/docs \
-DINSTALL_SHAREDIR=share/mysql \
-DCONNECT_WITH_MYSQL=ON \
-DCONNECT_WITH_LIBXML2=system \
-DCONNECT_WITH_ODBC=NO \
-DCONNECT_WITH_JDBC=NO \
-DPLUGIN_ARCHIVE=YES \
-DPLUGIN_ARIA=YES \
-DPLUGIN_BLACKHOLE=YES \
-DPLUGIN_CASSANDRA=NO \
-DPLUGIN_CSV=YES \
-DPLUGIN_MYISAM=YES \
-DPLUGIN_MROONGA=NO \
-DPLUGIN_OQGRAPH=NO \
-DPLUGIN_PARTITION=YES \
-DPLUGIN_ROCKSDB=YES \
-DPLUGIN_SPHINX=NO \
-DPLUGIN_TOKUDB=NO \
-DPLUGIN_AUTH_GSSAPI=NO \
-DPLUGIN_AUTH_GSSAPI_CLIENT=OFF \
-DPLUGIN_CRACKLIB_PASSWORD_CHECK=NO \
-DWITH_ASAN=OFF \
-DWITH_EMBEDDED_SERVER=ON \
-DWITH_EXTRA_CHARSETS=complex \
-DWITH_INNODB_BZIP2=OFF \
-DWITH_INNODB_LZ4=OFF \
-DWITH_INNODB_LZMA=ON \
-DWITH_INNODB_LZO=OFF \
-DWITH_INNODB_SNAPPY=OFF \
-DWITH_ROCKSDB_BZIP2=OFF \
-DWITH_ROCKSDB_JEMALLOC=OFF \
-DWITH_ROCKSDB_LZ4=OFF \
-DWITH_ROCKSDB_ZSTD=OFF \
-DWITH_ROCKSDB_SNAPPY=OFF \
-DWITH_JEMALLOC=NO \
-DWITH_LIBARCHIVE=system \
-DWITH_LIBNUMA=NO \
-DWITH_LIBWRAP=OFF \
-DWITH_LIBWSEP=OFF \
-DWITH_MARIABACKUP=ON \
-DWITH_PCRE=system \
-DWITH_READLINE=ON \
-DWITH_SYSTEMD=no \
-DWITH_SSL=system \
-DWITH_VALGRIND=OFF \
-DWITH_ZLIB=system; \
\
make -j "${NPROC:-$(nproc)}"; \
make install; \
\
# Script to fix volumes permissions via sudo.
echo "chown mysql:mysql /var/lib/mysql ${BACKUPS_DIR}" > /usr/local/bin/init_volumes; \
chmod +x /usr/local/bin/init_volumes; \
echo 'mysql ALL=(root) NOPASSWD: /usr/local/bin/init_volumes' > /etc/sudoers.d/mysql; \
\
mkdir -p \
/var/run/mysqld \
/var/lib/mysql \
/etc/mysql \
/docker-entrypoint-initdb.d \
"${BACKUPS_DIR}"; \
\
chown -R mysql:mysql \
/var/run/mysqld \
/var/lib/mysql \
/usr/lib/mysql/plugin \
/etc/mysql \
/docker-entrypoint-initdb.d \
"${BACKUPS_DIR}"; \
\
# Remove dev, test, doc, benchmark related files.
rm -rf \
/usr/bin/mysql_client_test \
/usr/bin/mysql_client_test_embedded \
/usr/bin/mysql_config \
/usr/bin/mysqltest \
/usr/bin/mysqltest_embedded \
/usr/include/mysql \
/usr/lib/libmariadb.so* \
/usr/lib/libmariadbd.so.* \
/usr/lib/libmysqlclient.so* \
/usr/lib/libmysqlclient_r.so* \
/usr/lib/libmysqld.so.* \
/usr/mysql-test \
/usr/share/man \
/usr/sql-bench; \
\
find /usr/lib -name '*.a' -maxdepth 1 -print0 | xargs -0 rm; \
find /usr/lib -name '*.so' -type l -maxdepth 1 -print0 | xargs -0 rm; \
\
# Stripping binaries and .so files.
scanelf --symlink --recursive --nobanner --osabi --etype "ET_DYN,ET_EXEC" \
/usr/bin/* /usr/sbin/* /usr/lib/mysql/plugin/* /usr/lib/galera/* | while read type osabi filename; do \
([ "$osabi" != "STANDALONE" ] && [ "${filename}" != "/usr/bin/strip" ]) || continue; \
XATTR=$(getfattr --match="" --dump "${filename}"); \
strip "${filename}"; \
if [ -n "$XATTR" ]; then \
echo "$XATTR" | setfattr --restore=-; \
fi; \
done; \
\
# Clean up.
apk del --purge .mariadb-build-deps; \
rm -rf /tmp/*; \
rm -rf /var/cache/apk/*
USER mysql
COPY bin /usr/local/bin
COPY templates /etc/gotpl/
COPY docker-entrypoint.sh /
WORKDIR /var/lib/mysql
VOLUME /var/lib/mysql
EXPOSE 3306
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["mysqld"]
| bug fix |
2127 | 62a19f1f0472341c1123f35917e443316e31b77a | docker build fix | docker build fix
| FROM java:8
MAINTAINER EMC
ADD build/dist/mongoose*.tgz /opt/
RUN ln -s /opt/mongoose* /opt/mongoose
EXPOSE 1099,9020-9040
ENTRYPOINT ["java", "-jar", "/opt/mongoose/mongoose.jar"]
| null | maintenance/other |
128 | 22f7f36a55a47a8740a68a88de82f43ac19eb37c | Fix Dockerfile | Fix Dockerfile
| FROM node:argon
CMD npm install && npm start
| FROM node:argon
# Create app directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# Install app dependencies
COPY package.json /usr/src/app/
ENV NODE_ENV production
ENV NPM_CONFIG_PRODUCTION false
ENV DEBUG app*
ENV PORT 8080
ENV DATABASE_URL mongodb://heroku_72vsvrmw:rl7hd5113dkqf45fp6nd7ilfa0@ds033797.mlab.com:33797/heroku_72vsvrmw
RUN npm install
# Bundle app source
COPY . /usr/src/app
EXPOSE 8080
CMD [ "npm", "start" ]
| maintenance/other |
2081 | e6333e2802f65c36ce6dad913aa4ac583319fcc0 | Bump Dockerfile to 10.2.0-811-ea36d43e | Bump Dockerfile to 10.2.0-811-ea36d43e
| FROM stellar/base:latest
MAINTAINER Mat Schaffer <mat@stellar.org>
ENV STELLAR_CORE_VERSION 10.2.0-810-54504c71
EXPOSE 11625
EXPOSE 11626
VOLUME /data
VOLUME /postgresql-unix-sockets
VOLUME /heka
ADD install /
RUN /install
ADD heka /heka
ADD confd /etc/confd
ADD utils /utils
ADD start /
CMD ["/start"]
| null | code refactoring |
2075 | afe8d2b9c9da520e1582c720928be76af4ea41f6 | Bumped source to 20201124-36e8399 | Bumped source to 20201124-36e8399
| FROM docker.pkg.github.com/dock0/service/service:20201124-291f445
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm --needed openssh
ENV ADMIN akerl
ENV KEY_URL https://id-ed25519.pub/groups/default.txt
RUN useradd -d /var/lib/ssh -M ssh_key_sync
RUN mkdir -m=0700 /var/lib/ssh && chown ssh_key_sync /var/lib/ssh
RUN echo "$KEY_URL" > /var/lib/ssh/key_url
ADD sshd_config /etc/ssh/sshd_config
ADD run /service/sshd/run
ADD sync /var/lib/ssh/sync
RUN groupadd remote
RUN useradd -d "/home/$ADMIN" -G remote -m "$ADMIN"
RUN passwd -d "$ADMIN"
| null | feature addition |
2249 | 5e7da2337763400ead5bbff17395a87ca31a547b | Upgraded to GoCD 17.1.0 | Upgraded to GoCD 17.1.0
| # We need edge for the xmlstarlet package right now.
FROM alpine:3.5
MAINTAINER karel.bemelmans@unibet.com
# Install more apk packages we might need
RUN apk --no-cache --update add \
apache2-utils \
bash \
curl \
git \
openjdk8-jre \
subversion \
xmlstarlet \
&& rm -rf /var/cache/apk/*
# Add go user and group
RUN addgroup -g 500 go && adduser -u 500 -h /var/lib/go-server -H -S -G go go
# Install GoCD Server from zip file
ARG GO_MAJOR_VERSION=16.12.0
ARG GO_BUILD_VERSION=4352
ARG GO_VERSION="${GO_MAJOR_VERSION}-${GO_BUILD_VERSION}"
ARG GOCD_SHA256=6ca2b62426167821f9e182f4c4173adb8cf86057b4d8deed8fb4fc29c2881ce5
RUN curl -L --silent https://download.gocd.io/binaries/${GO_VERSION}/generic/go-server-${GO_VERSION}.zip \
-o /tmp/go-server.zip \
&& echo "${GOCD_SHA256} /tmp/go-server.zip" | sha256sum -c - \
&& unzip /tmp/go-server.zip -d /usr/local \
&& ln -s /usr/local/go-server-${GO_MAJOR_VERSION} /usr/local/go-server \
&& chown -R go:go /usr/local/go-server-${GO_MAJOR_VERSION} \
&& rm /tmp/go-server.zip
RUN mkdir -p /etc/default \
&& cp /usr/local/go-server-${GO_MAJOR_VERSION}/go-server.default /etc/default/go-server \
&& sed -i -e "s/DAEMON=Y/DAEMON=N/" /etc/default/go-server
RUN mkdir /etc/go && chown go:go /etc/go \
&& mkdir /var/lib/go-server && chown go:go /var/lib/go-server \
&& mkdir /var/log/go-server && chown go:go /var/log/go-server
# Expose ports needed
EXPOSE 8153 8154
VOLUME /etc/go
VOLUME /var/lib/go-server
VOLUME /var/log/go-server
# add the entrypoint config and run it when we start the container
COPY ./docker-entrypoint.sh /
RUN chown go:go /docker-entrypoint.sh && chmod 500 /docker-entrypoint.sh
USER go
ENTRYPOINT ["/docker-entrypoint.sh"]
| null | code refactoring |
82 | ad2a3c7d6b3bae8f3843bd4cb1584e6315ca6d0b | Add ant-junit and bc to java container | Add ant-junit and bc to java container | # DOCKER-VERSION 1.1.0
#inherit from the default container, which have all the needed script to launch tasks
FROM ingi/inginious-c-default
# Add java 1.7
RUN yum install -y java-1.7.0-openjdk java-1.7.0-openjdk-devel ant
| # DOCKER-VERSION 1.1.0
#inherit from the default container, which have all the needed script to launch tasks
FROM ingi/inginious-c-default
# Add java 1.7
RUN yum install -y java-1.7.0-openjdk java-1.7.0-openjdk-devel ant ant-junit bc
| maintenance/other |
367 | 8a10596b9c86dc70dc597ac18011a5cbf2d2c38a | Bump amazon/aws-cli from 2.2.1 to 2.2.2 (#324) | Bump amazon/aws-cli from 2.2.1 to 2.2.2 (#324)
| FROM amazon/aws-cli:2.2.1
RUN mkdir -p ~/.aws/cli
COPY alias /root/.aws/cli/alias
ENTRYPOINT ["/usr/local/bin/aws"]
| FROM amazon/aws-cli:2.2.2
RUN mkdir -p ~/.aws/cli
COPY alias /root/.aws/cli/alias
ENTRYPOINT ["/usr/local/bin/aws"]
| code refactoring |
2207 | 188a520fdb7ccf190131a191da749c996f4c42e0 | Bumped source to 20210701-a9f2016 | Bumped source to 20210701-a9f2016
| FROM docker.pkg.github.com/dock0/ssh/ssh:20210701-928277e
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm --needed cpio dnsutils htop lockfile-progs lsof mtr net-tools whois zsh neovim
RUN usermod --shell /usr/bin/zsh $ADMIN
RUN su - $ADMIN -c "git clone git://github.com/akerl/....git /home/$ADMIN/..."
RUN su - $ADMIN -c '.../... conf https://raw.githubusercontent.com/akerl/dotfiles/master/.dotdotdot.conf'
RUN su - $ADMIN -c '.../... supi'
| null | feature addition |
169 | b86c0ce4751a39a655cfcba6300f4e7c80b3b1e5 | Android client docker: version bump Go to 1.3.1 | Android client docker: version bump Go to 1.3.1
Change-Id: Id3cce36343688c05eff220327534f7fa5880af5d
| # Build environment in which to build the Camlistore Android app.
#
# This extends the Dockerfile from https://index.docker.io/u/wasabeef/android/
FROM wasabeef/android
MAINTAINER bradfitz <brad@danga.com>
# Found these from: android list sdk -u -e
RUN android list sdk -u -e | grep build-tools- | perl -npe 's/.+"(.+)"/$1/' > /tmp/build-tools-version
RUN perl -e 'die "No Android build tools version found." unless -s "/tmp/build-tools-version"'
RUN echo y | android update sdk -u -t $(cat /tmp/build-tools-version)
RUN echo y | android update sdk -u -t android-17
# Don't need mercurial yet, since we're just using the archive URL to fetch Go.
# But it's possible we may want to switch to using hg, in which case:
# RUN yum -y install mercurial
# Update the GOVERS to depend on a new version of Go.
#
# The 70499e5fbe5b version is in the Go 1.3 dev cycle (2014-02-21),
# after I fixed some net/http bugs (that are also worked around in
# Camlistore, but...), and after some Go 1.3 GC precision fixes. It
# enables precise stack scanning too, for better or worse (risk).
ENV GOVERS 70499e5fbe5b
RUN cd /usr/local && curl -O http://go.googlecode.com/archive/$GOVERS.zip
RUN cd /usr/local && unzip -q $GOVERS.zip
RUN cd /usr/local && mv go-$GOVERS go
RUN chmod 0755 /usr/local/go/src/make.bash
RUN echo $GOVERS > /usr/local/go/VERSION
RUN GOROOT=/usr/local/go GOARCH=arm bash -c "cd /usr/local/go/src && ./make.bash"
ENV ANDROID_HOME /usr/local/android-sdk-linux
ENV ANT_HOME /usr/local/apache-ant-1.9.2
ENV PATH $PATH:$ANDROID_HOME/tools
ENV PATH $PATH:$ANDROID_HOME/platform-tools
ENV PATH $PATH:$ANT_HOME/bin
ENV IN_DOCKER 1
| # Build environment in which to build the Camlistore Android app.
#
# This extends the Dockerfile from https://index.docker.io/u/wasabeef/android/
FROM wasabeef/android
MAINTAINER bradfitz <brad@danga.com>
# Found these from: android list sdk -u -e
RUN android list sdk -u -e | grep build-tools- | perl -npe 's/.+"(.+)"/$1/' > /tmp/build-tools-version
RUN perl -e 'die "No Android build tools version found." unless -s "/tmp/build-tools-version"'
RUN echo y | android update sdk -u -t $(cat /tmp/build-tools-version)
RUN echo y | android update sdk -u -t android-17
# Don't need mercurial yet, since we're just using the archive URL to fetch Go.
# But it's possible we may want to switch to using hg, in which case:
# RUN yum -y install mercurial
# Update the GOVERS to depend on a new version of Go.
#
# The 073fc578434b version is Go 1.3.1 (2014-02-21),
# to satisfy the dependency for Go 1.3 in the Docker build of
# camput.
ENV GOVERS 073fc578434b
RUN cd /usr/local && curl -O http://go.googlecode.com/archive/$GOVERS.zip
RUN cd /usr/local && unzip -q $GOVERS.zip
RUN cd /usr/local && mv go-$GOVERS go
RUN chmod 0755 /usr/local/go/src/make.bash
RUN echo $GOVERS > /usr/local/go/VERSION
RUN GOROOT=/usr/local/go GOARCH=arm bash -c "cd /usr/local/go/src && ./make.bash"
ENV ANDROID_HOME /usr/local/android-sdk-linux
ENV ANT_HOME /usr/local/apache-ant-1.9.2
ENV PATH $PATH:$ANDROID_HOME/tools
ENV PATH $PATH:$ANDROID_HOME/platform-tools
ENV PATH $PATH:$ANT_HOME/bin
ENV IN_DOCKER 1
| maintenance/other |
2254 | f26f7948e954b8a5055812d538a5c2cd5f2dcaa7 | Added libvshadow to libyal project configuration (#5698) | Added libvshadow to libyal project configuration (#5698)
| # Copyright 2020 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
################################################################################
FROM gcr.io/oss-fuzz-base/base-builder
RUN apt-get update && apt-get install -y make autoconf automake autopoint libtool pkg-config flex byacc
RUN git clone --depth 1 https://github.com/libyal/libfplist.git libfplist
RUN git clone --depth 1 https://github.com/libyal/libftxf.git libftxf
RUN git clone --depth 1 https://github.com/libyal/libfusn.git libfusn
RUN git clone --depth 1 https://github.com/libyal/libfwnt.git libfwnt
RUN git clone --depth 1 https://github.com/libyal/libfwps.git libfwps
RUN git clone --depth 1 https://github.com/libyal/libfwsi.git libfwsi
RUN git clone --depth 1 https://github.com/libyal/libagdb.git libagdb
RUN git clone --depth 1 https://github.com/libyal/libcreg.git libcreg
RUN git clone --depth 1 https://github.com/libyal/libesedb.git libesedb
RUN git clone --depth 1 https://github.com/libyal/libevt.git libevt
RUN git clone --depth 1 https://github.com/libyal/libevtx.git libevtx
RUN git clone --depth 1 https://github.com/libyal/libexe.git libexe
RUN git clone --depth 1 https://github.com/libyal/liblnk.git liblnk
RUN git clone --depth 1 https://github.com/libyal/libmdmp.git libmdmp
RUN git clone --depth 1 https://github.com/libyal/libmsiecf.git libmsiecf
RUN git clone --depth 1 https://github.com/libyal/libnk2.git libnk2
RUN git clone --depth 1 https://github.com/libyal/libolecf.git libolecf
RUN git clone --depth 1 https://github.com/libyal/libpff.git libpff
RUN git clone --depth 1 https://github.com/libyal/libregf.git libregf
RUN git clone --depth 1 https://github.com/libyal/libscca.git libscca
RUN git clone --depth 1 https://github.com/libyal/libfsapfs.git libfsapfs
RUN git clone --depth 1 https://github.com/libyal/libfsext.git libfsext
RUN git clone --depth 1 https://github.com/libyal/libfshfs.git libfshfs
RUN git clone --depth 1 https://github.com/libyal/libfsntfs.git libfsntfs
RUN git clone --depth 1 https://github.com/libyal/libfsxfs.git libfsxfs
RUN git clone --depth 1 https://github.com/libyal/libbde.git libbde
RUN git clone --depth 1 https://github.com/libyal/libluksde.git libluksde
RUN git clone --depth 1 https://github.com/libyal/libvsgpt.git libvsgpt
RUN git clone --depth 1 https://github.com/libyal/libvslvm.git libvslvm
RUN git clone --depth 1 https://github.com/libyal/libvsmbr.git libvsmbr
RUN git clone --depth 1 https://github.com/libyal/libewf.git libewf
RUN git clone --depth 1 https://github.com/libyal/libmodi.git libmodi
RUN git clone --depth 1 https://github.com/libyal/libqcow.git libqcow
RUN git clone --depth 1 https://github.com/libyal/libsmraw.git libsmraw
RUN git clone --depth 1 https://github.com/libyal/libvhdi.git libvhdi
RUN git clone --depth 1 https://github.com/libyal/libvmdk.git libvmdk
WORKDIR libyal
COPY build.sh $SRC/
| null | code refactoring |
365 | 43831b4ad82143d7532960157468d2c6f8447d3e | Bumped source to 20211210-5bd4e44 | Bumped source to 20211210-5bd4e44
| FROM docker.pkg.github.com/dock0/arch/arch:20211210-4b4802a
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm base-devel musl vim-minimal tree openssh
ENV EDITOR vim
WORKDIR /opt/build
CMD ["make", "local"]
| FROM docker.pkg.github.com/dock0/arch/arch:20211210-5bd4e44
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm base-devel musl vim-minimal tree openssh
ENV EDITOR vim
WORKDIR /opt/build
CMD ["make", "local"]
| code refactoring |
387 | a8408a41f49a626740c8ffa5f53cb360a15999e4 | Update selenium/node-chrome:latest Docker digest to d9465ea | Update selenium/node-chrome:latest Docker digest to d9465ea | FROM selenium/node-chrome:latest@sha256:656a0c72255c756c39587578465841e0fc0fa8e4b5b3949e33fac3ca2eb0aa8a
USER root
RUN apt-get update -qqy \
&& apt-get install -y git \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/* \
&& rm /bin/sh && ln -s /bin/bash /bin/sh \
&& chown seluser /usr/local
ENV NVM_DIR /usr/local/nvm
RUN wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash \
&& source $NVM_DIR/nvm.sh \
&& nvm install v8
ENV CHROME_BIN /opt/google/chrome/chrome
ENV INSIDE_DOCKER=1
WORKDIR /usr/src
ENTRYPOINT source $NVM_DIR/nvm.sh && npm i && npm test
| FROM selenium/node-chrome:latest@sha256:d9465eab867411e36b6e5befa2d6b5862288ff836e25bf4215d0afcdeca58279
USER root
RUN apt-get update -qqy \
&& apt-get install -y git \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/* \
&& rm /bin/sh && ln -s /bin/bash /bin/sh \
&& chown seluser /usr/local
ENV NVM_DIR /usr/local/nvm
RUN wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash \
&& source $NVM_DIR/nvm.sh \
&& nvm install v8
ENV CHROME_BIN /opt/google/chrome/chrome
ENV INSIDE_DOCKER=1
WORKDIR /usr/src
ENTRYPOINT source $NVM_DIR/nvm.sh && npm i && npm test
| code refactoring |
2108 | cc149592fcd5882fa933fa54bf7f8ef86784df78 | Update Dockerfile | Update Dockerfile
Updated acme-tiny client to fix license issue | FROM nginx
MAINTAINER Weiyan Shao "lighteningman@gmail.com"
WORKDIR /root
ENV DOCKER_GEN_VERSION 0.7.0
ADD https://github.com/just-containers/s6-overlay/releases/download/v1.11.0.1/s6-overlay-amd64.tar.gz /tmp/
ADD https://github.com/jwilder/docker-gen/releases/download/$DOCKER_GEN_VERSION/docker-gen-linux-amd64-$DOCKER_GEN_VERSION.tar.gz /tmp/
ADD https://raw.githubusercontent.com/diafygi/acme-tiny/fcb7cd6f66e951eeae76ff2f48d8ad3e40da37ef/acme_tiny.py /bin/acme_tiny
RUN tar xzf /tmp/s6-overlay-amd64.tar.gz -C / &&\
tar -C /bin -xzf /tmp/docker-gen-linux-amd64-$DOCKER_GEN_VERSION.tar.gz && \
rm /tmp/docker-gen-linux-amd64-$DOCKER_GEN_VERSION.tar.gz && \
rm /tmp/s6-overlay-amd64.tar.gz && \
rm /etc/nginx/conf.d/default.conf && \
apt-get update && \
apt-get install -y python ruby cron && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY ./fs_overlay /
RUN chmod a+x /bin/* && \
chmod a+x /etc/cron.weekly/renew_certs
VOLUME /var/lib/https-portal
ENTRYPOINT ["/init"]
| null | maintenance/other |
343 | df029a98277a5811783c4f9a1569930aa10652a4 | Bump golang from 1.16.2 to 1.16.3 | Bump golang from 1.16.2 to 1.16.3
Bumps golang from 1.16.2 to 1.16.3.
Signed-off-by: dependabot[bot] <5bdcd3c0d4d24ae3e71b3b452a024c6324c7e4bb@github.com> | null | null | code refactoring |
2203 | 7ecf4a1d0cb7e4c973ff919997b11e5d3abcf552 | :whale: bumped to latest php 7.10.0 base | :whale: bumped to latest php 7.10.0 base
| FROM uqlibrary/docker-fpm70:14
RUN rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro && \
yum install -y http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm && \
yum install -y file && \
yum install -y mysql && \
yum install -y poppler-utils && \
yum install -y perl-Image-ExifTool --enablerepo=epel-testing && \
yum install -y ffmpeg --enablerepo=nux-dextop && \
yum install -y ImageMagick-last ImageMagick-last-devel --enablerepo=remi --skip-broken && \
wget -O /usr/local/src/jhove.tar.gz http://downloads.sourceforge.net/project/jhove/jhove/JHOVE%201.11/jhove-1_11.tar.gz && \
wget -O /usr/local/src/yamdi.tar.gz http://downloads.sourceforge.net/project/yamdi/yamdi/1.9/yamdi-1.9.tar.gz && \
wget -O /usr/local/src/graphviz.tar.gz http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.38.0.tar.gz && \
cd /usr/local/src && tar xvzf yamdi.tar.gz && \
cd /usr/local/src && tar xvzf jhove.tar.gz && \
cd /usr/local/src && tar xvzf graphviz.tar.gz && \
yum group install -y "Development Tools" && \
cd /usr/local/src/yamdi-1.9 && gcc yamdi.c -o yamdi -O2 -Wall && mv yamdi /usr/bin/yamdi && chmod +x /usr/bin/yamdi && cd .. && rm -rf yamdi-1.9 && rm -f yamdi.tar.gz && \
yum install -y cairo-devel expat-devel freetype-devel gd-devel fontconfig-devel glib libpng zlib pango-devel pango && \
cd /usr/local/src/graphviz-2.38.0 && ./configure && make && make install && \
yum install -y java-1.8.0-openjdk-headless && \
mv /usr/local/src/jhove /usr/local/jhove && rm -f /usr/local/src/jhove.tar.gz && \
yum group remove -y "Development Tools" && \
yum autoremove -y && yum clean all
COPY jhove /usr/local/jhove/
RUN chmod +x /usr/local/jhove/jhove && sed -i 's/\#JHOVE_HOME=\[fill in path to jhove directory\]/JHOVE_HOME=\/usr\/local\/jhove\//' /usr/local/jhove/jhove
COPY etc/php-fpm.d/www.conf /etc/php-fpm.d/www.conf
RUN mkdir -p /espace/data && \
mkdir -p /espace_san/incoming && \
sed -i "s/memory_limit = 128M/memory_limit = 800M/" /etc/php.ini && \
sed -i "s/post_max_size = 8M/post_max_size = 800M/" /etc/php.ini && \
sed -i "s/upload_max_filesize = 30M/upload_max_filesize = 800M/" /etc/php.ini && \
sed -i "s/; max_input_vars = 1000/max_input_vars = 5000/" /etc/php.ini
| null | maintenance/other |
351 | ae642147090eb0ff64cd16a439d4845b15696fa5 | Bump version of terraform and kubectl | Bump version of terraform and kubectl
| FROM jenkins:1.625.3
MAINTAINER Marat Garafutdinov <marat.g@samsung.com>
USER root
COPY plugins.txt /usr/share/jenkins/plugins.txt
COPY keys /root/.ssh/
RUN chmod 400 /root/.ssh/id_rsa
# versions
ENV TERRAFORM_VERSION 0.6.6
ENV TERRAFORM_EXECUTE_VERSION v0.0.2
ENV TERRAFORM_COREOSBOX_VERSION v0.0.1
ENV KUBERNETES_VERSION v1.1.1
ENV VAULT_VERSION 0.3.1
# install jenkins plugins
RUN /usr/local/bin/plugins.sh /usr/share/jenkins/plugins.txt
# skip installing gem documentation
RUN echo 'gem: --no-rdoc --no-ri' >> /.gemrc
# ruby, ansible and golang
RUN apt-get update \
&& apt-get install -y --force-yes \
curl \
unzip \
jq \
ruby \
ruby-dev \
build-essential \
python-yaml \
python-jinja2 \
python-httplib2 \
python-keyczar \
python-paramiko \
python-setuptools \
python-pkg-resources \
git \
python-pip \
vim \
golang \
rsync \
&& rm -rf /var/lib/apt/lists/*
ENV GOROOT=/usr/lib/go
RUN mkdir /etc/ansible/
RUN pip install ansible
COPY ansible.cfg /etc/ansible/ansible.cfg
# install bundler and other gems
RUN gem install bundler aruba cucumber
# install terraform and custom providers
RUN wget https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip \
&& wget https://github.com/Samsung-AG/terraform-provider-execute/releases/download/${TERRAFORM_EXECUTE_VERSION}/terraform-provider-execute_linux_amd64.tar.gz \
&& wget https://github.com/Samsung-AG/terraform-provider-coreosbox/releases/download/${TERRAFORM_COREOSBOX_VERSION}/terraform-provider-coreosbox_linux_amd64.tar.gz \
&& unzip -o terraform_${TERRAFORM_VERSION}_linux_amd64.zip -d /usr/local/bin \
&& tar -xvf terraform-provider-coreosbox_linux_amd64.tar.gz \
&& tar -xvf terraform-provider-execute_linux_amd64.tar.gz \
&& cp terraform* /usr/local/bin \
&& rm terraform*
# install kubectl
RUN wget https://github.com/kubernetes/kubernetes/releases/download/${KUBERNETES_VERSION}/kubernetes.tar.gz \
&& tar -xvf kubernetes.tar.gz \
&& cp kubernetes/platforms/linux/amd64/kubectl /usr/bin \
&& rm kubernetes.tar.gz
# install vault cli
RUN wget https://dl.bintray.com/mitchellh/vault/vault_${VAULT_VERSION}_linux_amd64.zip \
&& unzip -o vault_${VAULT_VERSION}_linux_amd64.zip -d /usr/local/bin \
&& rm vault_${VAULT_VERSION}_linux_amd64.zip
# install hipchat messaging script
COPY hipchat_room_message /usr/local/bin/hipchat_room_message
RUN chmod +x /usr/local/bin/hipchat_room_message
# install awscli
RUN pip install awscli
# preload host keys for github.com
RUN ssh-keyscan -H github.com >> ~/.ssh/known_hosts
| FROM jenkins:1.625.3
MAINTAINER Marat Garafutdinov <marat.g@samsung.com>
USER root
COPY plugins.txt /usr/share/jenkins/plugins.txt
COPY keys /root/.ssh/
RUN chmod 400 /root/.ssh/id_rsa
# versions
ENV TERRAFORM_VERSION 0.6.8
ENV TERRAFORM_EXECUTE_VERSION v0.0.2
ENV TERRAFORM_COREOSBOX_VERSION v0.0.1
ENV KUBERNETES_VERSION v1.1.3
ENV VAULT_VERSION 0.3.1
# install jenkins plugins
RUN /usr/local/bin/plugins.sh /usr/share/jenkins/plugins.txt
# skip installing gem documentation
RUN echo 'gem: --no-rdoc --no-ri' >> /.gemrc
# ruby, ansible and golang
RUN apt-get update \
&& apt-get install -y --force-yes \
curl \
unzip \
jq \
ruby \
ruby-dev \
build-essential \
python-yaml \
python-jinja2 \
python-httplib2 \
python-keyczar \
python-paramiko \
python-setuptools \
python-pkg-resources \
git \
python-pip \
vim \
golang \
rsync \
&& rm -rf /var/lib/apt/lists/*
ENV GOROOT=/usr/lib/go
RUN mkdir /etc/ansible/
RUN pip install ansible
COPY ansible.cfg /etc/ansible/ansible.cfg
# install bundler and other gems
RUN gem install bundler aruba cucumber
# install terraform and custom providers
RUN wget https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip \
&& wget https://github.com/Samsung-AG/terraform-provider-execute/releases/download/${TERRAFORM_EXECUTE_VERSION}/terraform-provider-execute_linux_amd64.tar.gz \
&& wget https://github.com/Samsung-AG/terraform-provider-coreosbox/releases/download/${TERRAFORM_COREOSBOX_VERSION}/terraform-provider-coreosbox_linux_amd64.tar.gz \
&& unzip -o terraform_${TERRAFORM_VERSION}_linux_amd64.zip -d /usr/local/bin \
&& tar -xvf terraform-provider-coreosbox_linux_amd64.tar.gz \
&& tar -xvf terraform-provider-execute_linux_amd64.tar.gz \
&& cp terraform* /usr/local/bin \
&& rm terraform*
# install kubectl
RUN wget https://github.com/kubernetes/kubernetes/releases/download/${KUBERNETES_VERSION}/kubernetes.tar.gz \
&& tar -xvf kubernetes.tar.gz \
&& cp kubernetes/platforms/linux/amd64/kubectl /usr/bin \
&& rm kubernetes.tar.gz
# install vault cli
RUN wget https://dl.bintray.com/mitchellh/vault/vault_${VAULT_VERSION}_linux_amd64.zip \
&& unzip -o vault_${VAULT_VERSION}_linux_amd64.zip -d /usr/local/bin \
&& rm vault_${VAULT_VERSION}_linux_amd64.zip
# install hipchat messaging script
COPY hipchat_room_message /usr/local/bin/hipchat_room_message
RUN chmod +x /usr/local/bin/hipchat_room_message
# install awscli
RUN pip install awscli
# preload host keys for github.com
RUN ssh-keyscan -H github.com >> ~/.ssh/known_hosts
| code refactoring |
179 | 8cedf26f34394042aa5cdeb49a30f284b242a471 | Bumped source to 20200414-499f783 | Bumped source to 20200414-499f783
| FROM docker.pkg.github.com/dock0/arch/arch:20200414-e5fc19e
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm base-devel musl vim-minimal tree openssh
ENV EDITOR vim
WORKDIR /opt/build
CMD ["make", "local"]
| FROM docker.pkg.github.com/dock0/arch/arch:20200414-499f783
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm base-devel musl vim-minimal tree openssh
ENV EDITOR vim
WORKDIR /opt/build
CMD ["make", "local"]
| bug fix |
414 | 8e0da3b27c02bb45471161921e186790cf888fe9 | update dockerfile for new pipenv stuffs | update dockerfile for new pipenv stuffs
tested this running on docker locally, and also tested this on Heroku (no docker)
| FROM ubuntu
RUN apt-get update
RUN apt-get install -y python python-pip build-essential libssl-dev libffi-dev python-dev
WORKDIR /app
ADD ./ /app
RUN pip install -r ./requirements.txt
CMD python run.py
| FROM python:2
COPY . /app
WORKDIR /app
RUN pip install pipenv
RUN pipenv install --system --deploy
CMD ["gunicorn", "-b 0.0.0.0:5000", "wsgi"]
| maintenance/other |
378 | ebe5bc1e2cdabe5aae7ff28eb871409aac7b6fcd | fix(manager): gradle needs a jdk (#6006) | fix(manager): gradle needs a jdk (#6006)
| ARG IMAGE=latest
# Base image
#============
FROM renovate/yarn:1.22.4@sha256:0115b2988eeb4b691a829ab118b5195f842167c78dcca0462d11e05cfbf19ad6 AS base
LABEL maintainer="Rhys Arkins <rhys@arkins.net>"
LABEL name="renovate"
LABEL org.opencontainers.image.source="https://github.com/renovatebot/renovate" \
org.opencontainers.image.url="https://renovatebot.com" \
org.opencontainers.image.licenses="AGPL-3.0-only"
USER root
WORKDIR /usr/src/app/
# Build image
#============
FROM base as tsbuild
# Python 3 and make are required to build node-re2
RUN apt-get update && apt-get install -y python3-minimal build-essential
# force python3 for node-gyp
RUN rm -rf /usr/bin/python && ln /usr/bin/python3 /usr/bin/python
COPY package.json .
COPY yarn.lock .
COPY tools tools
COPY patches patches
RUN yarn install --frozen-lockfile
COPY lib lib
COPY tsconfig.json tsconfig.json
COPY tsconfig.app.json tsconfig.app.json
RUN yarn build:docker
# Prune node_modules to production-only so they can be copied into the final image
RUN yarn install --production --frozen-lockfile
# Final-base image
#============
FROM base as final-base
# Docker client and group
RUN groupadd -g 999 docker
RUN usermod -aG docker ubuntu
# renovate: datasource=docker depName=docker versioning=docker
ENV DOCKER_VERSION=19.03.8
RUN curl -fsSLO https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz \
&& tar xzvf docker-${DOCKER_VERSION}.tgz --strip 1 \
-C /usr/local/bin docker/docker \
&& rm docker-${DOCKER_VERSION}.tgz
# Slim image
#============
FROM final-base as slim
ENV RENOVATE_BINARY_SOURCE=docker
# Full image
#============
FROM final-base as latest
RUN apt-get update && \
apt-get install -y gpg wget unzip xz-utils openssh-client bsdtar build-essential openjdk-8-jre-headless dirmngr && \
rm -rf /var/lib/apt/lists/*
## Gradle (needs java-jre, installed above)
# renovate: datasource=gradle-version depName=gradle versioning=maven
ENV GRADLE_VERSION=6.3
RUN wget --no-verbose https://services.gradle.org/distributions/gradle-$GRADLE_VERSION-bin.zip && \
unzip -q -d /opt/ gradle-$GRADLE_VERSION-bin.zip && \
rm -f gradle-$GRADLE_VERSION-bin.zip && \
mv /opt/gradle-$GRADLE_VERSION /opt/gradle && \
ln -s /opt/gradle/bin/gradle /usr/local/bin/gradle
# Erlang
RUN cd /tmp && \
curl https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb -o erlang-solutions_1.0_all.deb && \
dpkg -i erlang-solutions_1.0_all.deb && \
rm -f erlang-solutions_1.0_all.deb
ENV ERLANG_VERSION=22.0.2-1
RUN apt-get update && \
apt-cache policy esl-erlang && \
apt-get install -y esl-erlang=1:$ERLANG_VERSION && \
rm -rf /var/lib/apt/lists/*
# Elixir
ENV ELIXIR_VERSION=1.8.2
RUN curl -L https://github.com/elixir-lang/elixir/releases/download/v${ELIXIR_VERSION}/Precompiled.zip -o Precompiled.zip && \
mkdir -p /opt/elixir-${ELIXIR_VERSION}/ && \
unzip Precompiled.zip -d /opt/elixir-${ELIXIR_VERSION}/ && \
rm Precompiled.zip
ENV PATH $PATH:/opt/elixir-${ELIXIR_VERSION}/bin
# PHP Composer
RUN echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu bionic main" > /etc/apt/sources.list.d/ondrej-php.list && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 14AA40EC0831756756D7F66C4F4EA0AAE5267A6C && \
apt-get update && \
apt-get -y install php7.4-cli php7.4-mbstring php7.4-curl && \
rm -rf /var/lib/apt/lists/*
# renovate: datasource=github-releases depName=composer/composer
ENV COMPOSER_VERSION=1.10.5
RUN php -r "copy('https://github.com/composer/composer/releases/download/$COMPOSER_VERSION/composer.phar', '/usr/local/bin/composer');"
RUN chmod +x /usr/local/bin/composer
# Go Modules
RUN apt-get update && apt-get install -y bzr mercurial && \
rm -rf /var/lib/apt/lists/*
ENV GOLANG_VERSION=1.13.4
# Disable GOPROXY and GOSUMDB until we offer a solid solution to configure
# private repositories.
ENV GOPROXY=direct GOSUMDB=off
RUN wget -q -O go.tgz "https://golang.org/dl/go${GOLANG_VERSION}.linux-amd64.tar.gz" && \
tar -C /usr/local -xzf go.tgz && \
rm go.tgz && \
export PATH="/usr/local/go/bin:$PATH"
ENV GOPATH /go
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
ENV CGO_ENABLED=0
# Python
RUN apt-get update && apt-get install -y python3.8-dev python3.8-venv python3-distutils && \
rm -rf /var/lib/apt/lists/*
RUN rm -fr /usr/bin/python3 && ln /usr/bin/python3.8 /usr/bin/python3
RUN rm -rf /usr/bin/python && ln /usr/bin/python3.8 /usr/bin/python
# Pip
RUN curl --silent https://bootstrap.pypa.io/get-pip.py | python
# CocoaPods
RUN apt-get update && apt-get install -y ruby ruby2.5-dev && rm -rf /var/lib/apt/lists/*
RUN ruby --version
# renovate: datasource=rubygems depName=cocoapods versioning=ruby
ENV COCOAPODS_VERSION 1.9.1
RUN gem install --no-rdoc --no-ri cocoapods -v ${COCOAPODS_VERSION}
USER ubuntu
# HOME does not get passed after user switch :-(
ENV HOME=/home/ubuntu
# Cargo
ENV RUST_BACKTRACE=1 \
PATH=${HOME}/.cargo/bin:$PATH
ENV RUST_VERSION=1.36.0
RUN set -ex ;\
curl https://sh.rustup.rs -sSf | sh -s -- --no-modify-path --profile minimal --default-toolchain ${RUST_VERSION} -y
# Mix and Rebar
RUN mix local.hex --force
RUN mix local.rebar --force
# Pipenv
ENV PATH="${HOME}/.local/bin:$PATH"
RUN pip install --user pipenv
# Poetry
# renovate: datasource=github-releases depName=python-poetry/poetry
ENV POETRY_VERSION=1.0.5
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python - --version ${POETRY_VERSION}
ENV PATH="${HOME}/.poetry/bin:$PATH"
RUN poetry config virtualenvs.in-project false
# Renovate
#=========
FROM $IMAGE as final
COPY package.json .
COPY --from=tsbuild /usr/src/app/dist dist
COPY --from=tsbuild /usr/src/app/node_modules node_modules
COPY bin bin
COPY data data
# Numeric user ID for the ubuntu user. Used to indicate a non-root user to OpenShift
USER 1000
ENTRYPOINT ["node", "/usr/src/app/dist/renovate.js"]
CMD []
| ARG IMAGE=latest
# Base image
#============
FROM renovate/yarn:1.22.4@sha256:0115b2988eeb4b691a829ab118b5195f842167c78dcca0462d11e05cfbf19ad6 AS base
LABEL maintainer="Rhys Arkins <rhys@arkins.net>"
LABEL name="renovate"
LABEL org.opencontainers.image.source="https://github.com/renovatebot/renovate" \
org.opencontainers.image.url="https://renovatebot.com" \
org.opencontainers.image.licenses="AGPL-3.0-only"
USER root
WORKDIR /usr/src/app/
# Build image
#============
FROM base as tsbuild
# Python 3 and make are required to build node-re2
RUN apt-get update && apt-get install -y python3-minimal build-essential
# force python3 for node-gyp
RUN rm -rf /usr/bin/python && ln /usr/bin/python3 /usr/bin/python
COPY package.json .
COPY yarn.lock .
COPY tools tools
COPY patches patches
RUN yarn install --frozen-lockfile
COPY lib lib
COPY tsconfig.json tsconfig.json
COPY tsconfig.app.json tsconfig.app.json
RUN yarn build:docker
# Prune node_modules to production-only so they can be copied into the final image
RUN yarn install --production --frozen-lockfile
# Final-base image
#============
FROM base as final-base
# Docker client and group
RUN groupadd -g 999 docker
RUN usermod -aG docker ubuntu
# renovate: datasource=docker depName=docker versioning=docker
ENV DOCKER_VERSION=19.03.8
RUN curl -fsSLO https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz \
&& tar xzvf docker-${DOCKER_VERSION}.tgz --strip 1 \
-C /usr/local/bin docker/docker \
&& rm docker-${DOCKER_VERSION}.tgz
# Slim image
#============
FROM final-base as slim
ENV RENOVATE_BINARY_SOURCE=docker
# Full image
#============
FROM final-base as latest
RUN apt-get update && \
apt-get install -y gpg wget unzip xz-utils openssh-client bsdtar build-essential openjdk-8-jdk-headless dirmngr && \
rm -rf /var/lib/apt/lists/*
## Gradle (needs java-jre, installed above)
# renovate: datasource=gradle-version depName=gradle versioning=maven
ENV GRADLE_VERSION=6.3
RUN wget --no-verbose https://services.gradle.org/distributions/gradle-$GRADLE_VERSION-bin.zip && \
unzip -q -d /opt/ gradle-$GRADLE_VERSION-bin.zip && \
rm -f gradle-$GRADLE_VERSION-bin.zip && \
mv /opt/gradle-$GRADLE_VERSION /opt/gradle && \
ln -s /opt/gradle/bin/gradle /usr/local/bin/gradle
# Erlang
RUN cd /tmp && \
curl https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb -o erlang-solutions_1.0_all.deb && \
dpkg -i erlang-solutions_1.0_all.deb && \
rm -f erlang-solutions_1.0_all.deb
ENV ERLANG_VERSION=22.0.2-1
RUN apt-get update && \
apt-cache policy esl-erlang && \
apt-get install -y esl-erlang=1:$ERLANG_VERSION && \
rm -rf /var/lib/apt/lists/*
# Elixir
ENV ELIXIR_VERSION=1.8.2
RUN curl -L https://github.com/elixir-lang/elixir/releases/download/v${ELIXIR_VERSION}/Precompiled.zip -o Precompiled.zip && \
mkdir -p /opt/elixir-${ELIXIR_VERSION}/ && \
unzip Precompiled.zip -d /opt/elixir-${ELIXIR_VERSION}/ && \
rm Precompiled.zip
ENV PATH $PATH:/opt/elixir-${ELIXIR_VERSION}/bin
# PHP Composer
RUN echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu bionic main" > /etc/apt/sources.list.d/ondrej-php.list && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 14AA40EC0831756756D7F66C4F4EA0AAE5267A6C && \
apt-get update && \
apt-get -y install php7.4-cli php7.4-mbstring php7.4-curl && \
rm -rf /var/lib/apt/lists/*
# renovate: datasource=github-releases depName=composer/composer
ENV COMPOSER_VERSION=1.10.5
RUN php -r "copy('https://github.com/composer/composer/releases/download/$COMPOSER_VERSION/composer.phar', '/usr/local/bin/composer');"
RUN chmod +x /usr/local/bin/composer
# Go Modules
RUN apt-get update && apt-get install -y bzr mercurial && \
rm -rf /var/lib/apt/lists/*
ENV GOLANG_VERSION=1.13.4
# Disable GOPROXY and GOSUMDB until we offer a solid solution to configure
# private repositories.
ENV GOPROXY=direct GOSUMDB=off
RUN wget -q -O go.tgz "https://golang.org/dl/go${GOLANG_VERSION}.linux-amd64.tar.gz" && \
tar -C /usr/local -xzf go.tgz && \
rm go.tgz && \
export PATH="/usr/local/go/bin:$PATH"
ENV GOPATH /go
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
ENV CGO_ENABLED=0
# Python
RUN apt-get update && apt-get install -y python3.8-dev python3.8-venv python3-distutils && \
rm -rf /var/lib/apt/lists/*
RUN rm -fr /usr/bin/python3 && ln /usr/bin/python3.8 /usr/bin/python3
RUN rm -rf /usr/bin/python && ln /usr/bin/python3.8 /usr/bin/python
# Pip
RUN curl --silent https://bootstrap.pypa.io/get-pip.py | python
# CocoaPods
RUN apt-get update && apt-get install -y ruby ruby2.5-dev && rm -rf /var/lib/apt/lists/*
RUN ruby --version
# renovate: datasource=rubygems depName=cocoapods versioning=ruby
ENV COCOAPODS_VERSION 1.9.1
RUN gem install --no-rdoc --no-ri cocoapods -v ${COCOAPODS_VERSION}
USER ubuntu
# HOME does not get passed after user switch :-(
ENV HOME=/home/ubuntu
# Cargo
ENV RUST_BACKTRACE=1 \
PATH=${HOME}/.cargo/bin:$PATH
ENV RUST_VERSION=1.36.0
RUN set -ex ;\
curl https://sh.rustup.rs -sSf | sh -s -- --no-modify-path --profile minimal --default-toolchain ${RUST_VERSION} -y
# Mix and Rebar
RUN mix local.hex --force
RUN mix local.rebar --force
# Pipenv
ENV PATH="${HOME}/.local/bin:$PATH"
RUN pip install --user pipenv
# Poetry
# renovate: datasource=github-releases depName=python-poetry/poetry
ENV POETRY_VERSION=1.0.5
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python - --version ${POETRY_VERSION}
ENV PATH="${HOME}/.poetry/bin:$PATH"
RUN poetry config virtualenvs.in-project false
# Renovate
#=========
FROM $IMAGE as final
COPY package.json .
COPY --from=tsbuild /usr/src/app/dist dist
COPY --from=tsbuild /usr/src/app/node_modules node_modules
COPY bin bin
COPY data data
# Numeric user ID for the ubuntu user. Used to indicate a non-root user to OpenShift
USER 1000
ENTRYPOINT ["node", "/usr/src/app/dist/renovate.js"]
CMD []
| maintenance/other |
2277 | 799b7e5daa1f2674c8cd776384ffc40ec4900d70 | Bumped source to 20210403-72dc6c7 | Bumped source to 20210403-72dc6c7
| FROM docker.pkg.github.com/dock0/ssh/ssh:20210403-c4dcdef
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm --needed cpio dnsutils htop lockfile-progs lsof mtr net-tools whois zsh neovim
RUN usermod --shell /usr/bin/zsh $ADMIN
RUN su - $ADMIN -c "git clone git://github.com/akerl/....git /home/$ADMIN/..."
RUN su - $ADMIN -c '.../... conf https://raw.githubusercontent.com/akerl/dotfiles/master/.dotdotdot.conf'
RUN su - $ADMIN -c '.../... supi'
| null | feature addition, bug fix |
2102 | ce20fdd8074b6c86d684016879dc27481ef7c4c6 | Bumped source to 20201222-dc7b1c0 | Bumped source to 20201222-dc7b1c0
| FROM docker.pkg.github.com/dock0/arch/arch:20201222-e042ba0
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm \
strace tcpdump openbsd-netcat socat htop \
nmap dnsutils net-tools iputils openssh \
screen tmux man-db lsof psmisc git tree \
vim-minimal inetutils
| null | bug fix, feature addition |
2262 | f219e99407ea6bfb4021f496ca4aec95a9786c5e | chore(tests): install g++ since Docker Hub won't create a new image | chore(tests): install g++ since Docker Hub won't create a new image
| FROM malept/electron-forge-container:latest
RUN mkdir /code
WORKDIR /code
ADD . /code/
| null | maintenance/other |
316 | 880252fdb5d10913c7aa0922331b359b713b64cf | Add libgconf-2-4 to Dockerfile because chromedriver depends on it | Add libgconf-2-4 to Dockerfile because chromedriver depends on it
Trying to fix error in dotnet buildpack pipeline.
Signed-off-by: Leah Hanson <59915d4d5a651c1df4fd522b917423b47c84f68b@pivotal.io>
| FROM ruby:2.3.1-slim
ENV LANG="C.UTF-8"
COPY config/apt-key.gpg config/google-chrome-apt-key.pub /tmp/
RUN echo "deb http://packages.cloud.google.com/apt cloud-sdk-jessie main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list \
&& echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \
&& apt-key add /tmp/apt-key.gpg \
&& apt-key add /tmp/google-chrome-apt-key.pub
RUN apt-get update \
&& apt-get -y install \
aufs-tools \
curl \
expect \
git \
google-cloud-sdk \
iptables \
jq \
libmysqlclient-dev \
libpq-dev \
libsqlite3-dev \
lsb-release \
module-init-tools \
npm \
php5 \
python-dev \
python-pip \
shellcheck \
wget \
zip \
google-chrome-stable && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN curl -sSL https://get.docker.com/ | sh
RUN git config --global user.email "cf-buildpacks-eng@pivotal.io"
RUN git config --global user.name "CF Buildpacks Team CI Server"
RUN git config --global core.pager cat
# download and install chromedriver
RUN wget -O chromedriver.zip 'https://chromedriver.storage.googleapis.com/2.34/chromedriver_linux64.zip' \
&& [ e42a55f9e28c3b545ef7c7727a2b4218c37489b4282e88903e4470e92bc1d967 = $(shasum -a 256 chromedriver.zip | cut -d' ' -f1) ] \
&& unzip chromedriver.zip -d /usr/local/bin/ \
&& rm chromedriver.zip
# composer is a package manager for PHP apps
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin/
RUN mv /usr/bin/composer.phar /usr/bin/composer
# download the CF-CLI
RUN wget -O cf-cli.tgz 'https://cli.run.pivotal.io/stable?release=linux64-binary&version=6.35.2&source=github-rel' \
&& [ 708a7757d3b3192a40e2cd8073b4f20afc59b7cbb0cb6bd88244268dfc6eb77d = $(shasum -a 256 cf-cli.tgz | cut -d' ' -f1) ] \
&& tar xzf cf-cli.tgz -C /usr/bin \
&& rm cf-cli.tgz
# download the bosh2 CLI
RUN curl https://s3.amazonaws.com/bosh-cli-artifacts/bosh-cli-2.0.45-linux-amd64 -o /usr/local/bin/bosh2 \
&& [ bf04be72daa7da0c9bbeda16fda7fc7b2b8af51e = $(shasum -a 1 /usr/local/bin/bosh2 | cut -d' ' -f1) ] \
&& chmod +x /usr/local/bin/bosh2
# download bbl
RUN wget -O /usr/local/bin/bbl 'https://github.com/cloudfoundry/bosh-bootloader/releases/download/v5.11.6/bbl-v5.11.6_linux_x86-64' \
&& [ 2ee595a0b8bc2546151f26e5fb986f599c1149557c9e15791b0043844f881866 = $(shasum -a 256 /usr/local/bin/bbl | cut -d' ' -f1) ] \
&& chmod +x /usr/local/bin/bbl
# download terraform (used by bbl)
RUN wget -O terraform.zip 'https://releases.hashicorp.com/terraform/0.10.8/terraform_0.10.8_linux_amd64.zip' \
&& [ b786c0cf936e24145fad632efd0fe48c831558cc9e43c071fffd93f35e3150db = $(shasum -a 256 terraform.zip | cut -d' ' -f1) ] \
&& funzip terraform.zip > /usr/local/bin/terraform \
&& rm terraform.zip \
&& chmod 755 /usr/local/bin/terraform
#download spiff for spiffy things
RUN wget -O spiff.zip 'https://github.com/cloudfoundry-incubator/spiff/releases/download/v1.0.8/spiff_linux_amd64.zip' \
&& [ e5b49b7f32b2b3973536bf2a48beda2d236956bebff7677aa109cc2b71f56002 = $(shasum -a 256 spiff.zip | cut -d' ' -f1) ] \
&& funzip spiff.zip > /usr/bin/spiff \
&& rm spiff.zip
RUN chmod 755 /usr/bin/spiff
# Ensure Concourse Filter binary is present
RUN wget 'https://github.com/pivotal-cf-experimental/concourse-filter/releases/download/v0.0.4/concourse-filter' \
&& [ 2bcad41417bf5bdc545a0912c30d9c466abd4ed0cffa6b02b678f06f71a73bb8 = $(shasum -a 256 concourse-filter | cut -d' ' -f1) ] \
&& mv concourse-filter /usr/local/bin \
&& chmod +x /usr/local/bin/concourse-filter
# AWS CLI
RUN pip install awscli
# when docker container starts, ensure login scripts run
COPY build/*.sh /etc/profile.d/
# install buildpacks-ci Gemfile
RUN gem update --system
RUN gem install bundler -v 1.15.4
COPY Gemfile /usr/local/Gemfile
COPY Gemfile.lock /usr/local/Gemfile.lock
RUN cd /usr/local && bundle install
RUN bundle binstub bundler --force
#install fly-cli
RUN curl "https://buildpacks.ci.cf-app.com/api/v1/cli?arch=amd64&platform=linux" -sfL -o /usr/local/bin/fly \
&& chmod +x /usr/local/bin/fly
# git-hooks and git-secrets
RUN curl -L https://github.com/git-hooks/git-hooks/releases/download/v1.1.4/git-hooks_linux_amd64.tar.gz -o githooks.tgz \
&& [ 3f21c856064f8f08f8c25494ac784882a2b8811eea3bfb721a6c595b55577c48 = $(shasum -a 256 githooks.tgz | cut -d' ' -f1) ] \
&& tar -zxf githooks.tgz --to-stdout > /usr/local/bin/git-hooks \
&& rm githooks.tgz \
&& chmod 755 /usr/local/bin/git-hooks
RUN git clone https://github.com/awslabs/git-secrets && cd git-secrets && make install
# Ensure that Concourse filtering is on for non-interactive shells
ENV BASH_ENV /etc/profile.d/filter.sh
# Install go 1.9
RUN cd /usr/local \
&& curl -L https://buildpacks.cloudfoundry.org/dependencies/go/go1.9.2.linux-amd64-f60fe671.tar.gz -o go.tar.gz \
&& [ 6af27e6a59b4538fbf196c8019ef67c5cfeb6d21298bf9bb6bab1390a4da3448 = $(shasum -a 256 go.tar.gz | cut -d' ' -f1) ] \
&& tar xf go.tar.gz \
&& rm go.tar.gz \
&& ln -s /usr/local/go/bin/* /usr/local/bin/
ENV GOROOT=/usr/local/go
# Install poltergeist for running dotnet-core-buildpack specs
RUN gem install phantomjs && ruby -e 'require "phantomjs"; Phantomjs.path'
# Add git known host
RUN mkdir -p /root/.ssh/ && echo github.com,192.30.252.131 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ== > /root/.ssh/known_hosts
| FROM ruby:2.3.1-slim
ENV LANG="C.UTF-8"
COPY config/apt-key.gpg config/google-chrome-apt-key.pub /tmp/
RUN echo "deb http://packages.cloud.google.com/apt cloud-sdk-jessie main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list \
&& echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \
&& apt-key add /tmp/apt-key.gpg \
&& apt-key add /tmp/google-chrome-apt-key.pub
RUN apt-get update \
&& apt-get -y install \
aufs-tools \
curl \
expect \
git \
google-cloud-sdk \
iptables \
jq \
libmysqlclient-dev \
libpq-dev \
libsqlite3-dev \
libgconf-2-4 \
lsb-release \
module-init-tools \
npm \
php5 \
python-dev \
python-pip \
shellcheck \
wget \
zip \
google-chrome-stable && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN curl -sSL https://get.docker.com/ | sh
RUN git config --global user.email "cf-buildpacks-eng@pivotal.io"
RUN git config --global user.name "CF Buildpacks Team CI Server"
RUN git config --global core.pager cat
# download and install chromedriver
RUN wget -O chromedriver.zip 'https://chromedriver.storage.googleapis.com/2.34/chromedriver_linux64.zip' \
&& [ e42a55f9e28c3b545ef7c7727a2b4218c37489b4282e88903e4470e92bc1d967 = $(shasum -a 256 chromedriver.zip | cut -d' ' -f1) ] \
&& unzip chromedriver.zip -d /usr/local/bin/ \
&& rm chromedriver.zip
# composer is a package manager for PHP apps
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin/
RUN mv /usr/bin/composer.phar /usr/bin/composer
# download the CF-CLI
RUN wget -O cf-cli.tgz 'https://cli.run.pivotal.io/stable?release=linux64-binary&version=6.35.2&source=github-rel' \
&& [ 708a7757d3b3192a40e2cd8073b4f20afc59b7cbb0cb6bd88244268dfc6eb77d = $(shasum -a 256 cf-cli.tgz | cut -d' ' -f1) ] \
&& tar xzf cf-cli.tgz -C /usr/bin \
&& rm cf-cli.tgz
# download the bosh2 CLI
RUN curl https://s3.amazonaws.com/bosh-cli-artifacts/bosh-cli-2.0.45-linux-amd64 -o /usr/local/bin/bosh2 \
&& [ bf04be72daa7da0c9bbeda16fda7fc7b2b8af51e = $(shasum -a 1 /usr/local/bin/bosh2 | cut -d' ' -f1) ] \
&& chmod +x /usr/local/bin/bosh2
# download bbl
RUN wget -O /usr/local/bin/bbl 'https://github.com/cloudfoundry/bosh-bootloader/releases/download/v5.11.6/bbl-v5.11.6_linux_x86-64' \
&& [ 2ee595a0b8bc2546151f26e5fb986f599c1149557c9e15791b0043844f881866 = $(shasum -a 256 /usr/local/bin/bbl | cut -d' ' -f1) ] \
&& chmod +x /usr/local/bin/bbl
# download terraform (used by bbl)
RUN wget -O terraform.zip 'https://releases.hashicorp.com/terraform/0.10.8/terraform_0.10.8_linux_amd64.zip' \
&& [ b786c0cf936e24145fad632efd0fe48c831558cc9e43c071fffd93f35e3150db = $(shasum -a 256 terraform.zip | cut -d' ' -f1) ] \
&& funzip terraform.zip > /usr/local/bin/terraform \
&& rm terraform.zip \
&& chmod 755 /usr/local/bin/terraform
#download spiff for spiffy things
RUN wget -O spiff.zip 'https://github.com/cloudfoundry-incubator/spiff/releases/download/v1.0.8/spiff_linux_amd64.zip' \
&& [ e5b49b7f32b2b3973536bf2a48beda2d236956bebff7677aa109cc2b71f56002 = $(shasum -a 256 spiff.zip | cut -d' ' -f1) ] \
&& funzip spiff.zip > /usr/bin/spiff \
&& rm spiff.zip
RUN chmod 755 /usr/bin/spiff
# Ensure Concourse Filter binary is present
RUN wget 'https://github.com/pivotal-cf-experimental/concourse-filter/releases/download/v0.0.4/concourse-filter' \
&& [ 2bcad41417bf5bdc545a0912c30d9c466abd4ed0cffa6b02b678f06f71a73bb8 = $(shasum -a 256 concourse-filter | cut -d' ' -f1) ] \
&& mv concourse-filter /usr/local/bin \
&& chmod +x /usr/local/bin/concourse-filter
# AWS CLI
RUN pip install awscli
# when docker container starts, ensure login scripts run
COPY build/*.sh /etc/profile.d/
# install buildpacks-ci Gemfile
RUN gem update --system
RUN gem install bundler -v 1.15.4
COPY Gemfile /usr/local/Gemfile
COPY Gemfile.lock /usr/local/Gemfile.lock
RUN cd /usr/local && bundle install
RUN bundle binstub bundler --force
#install fly-cli
RUN curl "https://buildpacks.ci.cf-app.com/api/v1/cli?arch=amd64&platform=linux" -sfL -o /usr/local/bin/fly \
&& chmod +x /usr/local/bin/fly
# git-hooks and git-secrets
RUN curl -L https://github.com/git-hooks/git-hooks/releases/download/v1.1.4/git-hooks_linux_amd64.tar.gz -o githooks.tgz \
&& [ 3f21c856064f8f08f8c25494ac784882a2b8811eea3bfb721a6c595b55577c48 = $(shasum -a 256 githooks.tgz | cut -d' ' -f1) ] \
&& tar -zxf githooks.tgz --to-stdout > /usr/local/bin/git-hooks \
&& rm githooks.tgz \
&& chmod 755 /usr/local/bin/git-hooks
RUN git clone https://github.com/awslabs/git-secrets && cd git-secrets && make install
# Ensure that Concourse filtering is on for non-interactive shells
ENV BASH_ENV /etc/profile.d/filter.sh
# Install go 1.9
RUN cd /usr/local \
&& curl -L https://buildpacks.cloudfoundry.org/dependencies/go/go1.9.2.linux-amd64-f60fe671.tar.gz -o go.tar.gz \
&& [ 6af27e6a59b4538fbf196c8019ef67c5cfeb6d21298bf9bb6bab1390a4da3448 = $(shasum -a 256 go.tar.gz | cut -d' ' -f1) ] \
&& tar xf go.tar.gz \
&& rm go.tar.gz \
&& ln -s /usr/local/go/bin/* /usr/local/bin/
ENV GOROOT=/usr/local/go
# Install poltergeist for running dotnet-core-buildpack specs
RUN gem install phantomjs && ruby -e 'require "phantomjs"; Phantomjs.path'
# Add git known host
RUN mkdir -p /root/.ssh/ && echo github.com,192.30.252.131 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ== > /root/.ssh/known_hosts
| bug fix |
47 | c83f96d3049941ea0653aec9382d75956a28b7b5 | Bumped source to 20200713-4a82ca8 | Bumped source to 20200713-4a82ca8
| FROM docker.pkg.github.com/dock0/ssh/ssh:20200713-ac2d221
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm --needed cpio dnsutils htop lockfile-progs lsof mtr net-tools whois zsh neovim
RUN usermod --shell /usr/bin/zsh $ADMIN
RUN su - $ADMIN -c "git clone git://github.com/akerl/....git /home/$ADMIN/..."
RUN su - $ADMIN -c '.../... conf https://raw.githubusercontent.com/akerl/dotfiles/master/.dotdotdot.conf'
RUN su - $ADMIN -c '.../... supi'
| FROM docker.pkg.github.com/dock0/ssh/ssh:20200713-4a82ca8
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm --needed cpio dnsutils htop lockfile-progs lsof mtr net-tools whois zsh neovim
RUN usermod --shell /usr/bin/zsh $ADMIN
RUN su - $ADMIN -c "git clone git://github.com/akerl/....git /home/$ADMIN/..."
RUN su - $ADMIN -c '.../... conf https://raw.githubusercontent.com/akerl/dotfiles/master/.dotdotdot.conf'
RUN su - $ADMIN -c '.../... supi'
| code refactoring |
151 | 972c76a4001c76fbe330900d0c41393050c58908 | Fix Redis server setup in docker file | Fix Redis server setup in docker file
| FROM buildpack-deps:wheezy
RUN groupadd --gid 1000 node \
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node
# gpg keys listed at https://github.com/nodejs/node
RUN set -ex \
&& for key in \
9554F04D7259F04124DE6B476D5A82AC7E37093B \
94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \
0034A06D9D9B0064CE8ADF6BF1747F4AD2306D93 \
FD3A5288F042B6850C66B31F09FE44734EB7990E \
71DCFD284A79C3B38668286BC97EC7A07EDE3FC1 \
DD8F2338BAE7501E3DD5AC78C273792F7D83545D \
B9AE9905FFD7803F25714661B63B535A4C206CA9 \
C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 \
; do \
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; \
done
ENV NPM_CONFIG_LOGLEVEL info
ENV NODE_VERSION 4.7.2
RUN curl -SLO "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.xz" \
&& curl -SLO "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" \
&& gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc \
&& grep " node-v$NODE_VERSION-linux-x64.tar.xz\$" SHASUMS256.txt | sha256sum -c - \
&& tar -xJf "node-v$NODE_VERSION-linux-x64.tar.xz" -C /usr/local --strip-components=1 \
&& rm "node-v$NODE_VERSION-linux-x64.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt \
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs
CMD [ "node" ]
RUN apt-get update
RUN apt-get install -y redis-server
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
ARG NODE_ENV
ENV NODE_ENV $NODE_ENV
COPY package.json /usr/src/app/
RUN npm install && npm cache clean
COPY . /usr/src/app
CMD ["npm", "start"]
EXPOSE 3000 | FROM buildpack-deps:wheezy
RUN groupadd --gid 1000 node \
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node
# gpg keys listed at https://github.com/nodejs/node
RUN set -ex \
&& for key in \
9554F04D7259F04124DE6B476D5A82AC7E37093B \
94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \
0034A06D9D9B0064CE8ADF6BF1747F4AD2306D93 \
FD3A5288F042B6850C66B31F09FE44734EB7990E \
71DCFD284A79C3B38668286BC97EC7A07EDE3FC1 \
DD8F2338BAE7501E3DD5AC78C273792F7D83545D \
B9AE9905FFD7803F25714661B63B535A4C206CA9 \
C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 \
; do \
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; \
done
ENV NPM_CONFIG_LOGLEVEL info
ENV NODE_VERSION 4.7.2
RUN curl -SLO "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.xz" \
&& curl -SLO "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" \
&& gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc \
&& grep " node-v$NODE_VERSION-linux-x64.tar.xz\$" SHASUMS256.txt | sha256sum -c - \
&& tar -xJf "node-v$NODE_VERSION-linux-x64.tar.xz" -C /usr/local --strip-components=1 \
&& rm "node-v$NODE_VERSION-linux-x64.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt \
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs
CMD [ "node" ]
# Install Redis.
RUN \
cd /tmp && \
wget http://download.redis.io/redis-stable.tar.gz && \
tar xvzf redis-stable.tar.gz && \
cd redis-stable && \
make && \
make install && \
cp -f src/redis-sentinel /usr/local/bin && \
mkdir -p /etc/redis && \
cp -f *.conf /etc/redis && \
rm -rf /tmp/redis-stable* && \
sed -i 's/^\(bind .*\)$/# \1/' /etc/redis/redis.conf && \
sed -i 's/^\(daemonize .*\)$/# \1/' /etc/redis/redis.conf && \
sed -i 's/^\(dir .*\)$/# \1\ndir \/data/' /etc/redis/redis.conf && \
sed -i 's/^\(logfile .*\)$/# \1/' /etc/redis/redis.conf
# Define mountable directories.
VOLUME ["/data"]
# Define working directory.
WORKDIR /data
#CMD ["redis-server", "/etc/redis/redis.conf"]
RUN redis-server &
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
ARG NODE_ENV
ENV NODE_ENV $NODE_ENV
COPY package.json /usr/src/app/
RUN npm install && npm cache clean
COPY . /usr/src/app
CMD ["npm", "start"]
EXPOSE 3000 | code refactoring |
2296 | 4cf002a92495e973bb1d7571e40e32b3b4697cbb | Run docker/update.sh | Run docker/update.sh
| FROM alpine:3.3
RUN apk add --no-cache curl
ENV DOCKER_VERSION 1.12.0-dev
ENV DOCKER_URL https://master.dockerproject.org/linux/amd64/docker-1.12.0-dev.tgz
ENV DOCKER_SHA256 3a45162f37f12f284815ec32a6a3bcbe4dffa181d768a924441a922451d99ff5
RUN set -x \
&& curl -fSL "${DOCKER_URL}" -o docker.tgz \
&& echo "${DOCKER_SHA256} *docker.tgz" | sha256sum -c - \
&& tar -xzvf docker.tgz \
&& mv docker/* /usr/local/bin/ \
&& rmdir docker \
&& rm docker.tgz \
&& docker -v
COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["sh"]
| null | code refactoring |
210 | cd46c51f77fabac4abd60ca29f7da82faaaf2b5f | updated Dockerfile to use crate version 3.2.8 | updated Dockerfile to use crate version 3.2.8
| ## -*- docker-image-name: "docker-crate" -*-
#
# Crate Dockerfile
# https://github.com/crate/docker-crate
#
FROM centos:7
RUN groupadd crate && useradd -u 1000 -g crate -d /crate crate
RUN curl --retry 8 -o /openjdk.tar.gz https://download.java.net/java/GA/jdk11/13/GPL/openjdk-11.0.1_linux-x64_bin.tar.gz \
&& echo "7a6bb980b9c91c478421f865087ad2d69086a0583aeeb9e69204785e8e97dcfd */openjdk.tar.gz" | sha256sum -c - \
&& tar -C /opt -zxf /openjdk.tar.gz \
&& rm /openjdk.tar.gz
ENV JAVA_HOME /opt/jdk-11.0.1
# REF: https://github.com/elastic/elasticsearch-docker/issues/171
RUN ln -sf /etc/pki/ca-trust/extracted/java/cacerts /opt/jdk-11.0.1/lib/security/cacerts
# install crate
RUN yum install -y yum-utils https://centos7.iuscommunity.org/ius-release.rpm \
&& yum makecache \
&& yum install -y python36u openssl \
&& yum clean all \
&& rm -rf /var/cache/yum \
&& curl -fSL -O https://cdn.crate.io/downloads/releases/crate-3.2.7.tar.gz \
&& curl -fSL -O https://cdn.crate.io/downloads/releases/crate-3.2.7.tar.gz.asc \
&& export GNUPGHOME="$(mktemp -d)" \
&& gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 90C23FC6585BC0717F8FBFC37FAAE51A06F6EAEB \
&& gpg --batch --verify crate-3.2.7.tar.gz.asc crate-3.2.7.tar.gz \
&& rm -rf "$GNUPGHOME" crate-3.2.7.tar.gz.asc \
&& tar -xf crate-3.2.7.tar.gz -C /crate --strip-components=1 \
&& rm crate-3.2.7.tar.gz \
&& ln -sf /usr/bin/python3.6 /usr/bin/python3 \
&& ln -sf /usr/bin/python3.6 /usr/bin/python
COPY --chown=1000:0 config/crate.yml /crate/config/crate.yml
COPY --chown=1000:0 config/log4j2.properties /crate/config/log4j2.properties
# install crash
RUN curl -fSL -O https://cdn.crate.io/downloads/releases/crash_standalone_0.24.2\
&& curl -fSL -O https://cdn.crate.io/downloads/releases/crash_standalone_0.24.2.asc \
&& export GNUPGHOME="$(mktemp -d)" \
&& gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 90C23FC6585BC0717F8FBFC37FAAE51A06F6EAEB \
&& gpg --batch --verify crash_standalone_0.24.2.asc crash_standalone_0.24.2 \
&& rm -rf "$GNUPGHOME" crash_standalone_0.24.2.asc \
&& mv crash_standalone_0.24.2 /usr/local/bin/crash \
&& chmod +x /usr/local/bin/crash
ENV PATH /crate/bin:$PATH
# Default heap size for Docker, can be overwritten by args
ENV CRATE_HEAP_SIZE 512M
RUN mkdir -p /data/data /data/log
VOLUME /data
WORKDIR /data
# http: 4200 tcp
# transport: 4300 tcp
# postgres protocol ports: 5432 tcp
EXPOSE 4200 4300 5432
# These COPY commands have been moved before the last one due to the following issues:
# https://github.com/moby/moby/issues/37965#issuecomment-448926448
# https://github.com/moby/moby/issues/38866
COPY --chown=1000:0 config/crate.yml /crate/config/crate.yml
COPY --chown=1000:0 config/log4j2.properties /crate/config/log4j2.properties
LABEL maintainer="Crate.io <office@crate.io>" \
org.label-schema.schema-version="1.0" \
org.label-schema.build-date="2019-04-09T14:51:03.875528243+00:00" \
org.label-schema.name="crate" \
org.label-schema.description="CrateDB is a distributed SQL database handles massive amounts of machine data in real-time." \
org.label-schema.url="https://crate.io/products/cratedb/" \
org.label-schema.vcs-url="https://github.com/crate/docker-crate" \
org.label-schema.vendor="Crate.io" \
org.label-schema.version="3.2.7"
COPY docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["crate"]
| ## -*- docker-image-name: "docker-crate" -*-
#
# Crate Dockerfile
# https://github.com/crate/docker-crate
#
FROM centos:7
RUN groupadd crate && useradd -u 1000 -g crate -d /crate crate
RUN curl --retry 8 -o /openjdk.tar.gz https://download.java.net/java/GA/jdk11/13/GPL/openjdk-11.0.1_linux-x64_bin.tar.gz \
&& echo "7a6bb980b9c91c478421f865087ad2d69086a0583aeeb9e69204785e8e97dcfd */openjdk.tar.gz" | sha256sum -c - \
&& tar -C /opt -zxf /openjdk.tar.gz \
&& rm /openjdk.tar.gz
ENV JAVA_HOME /opt/jdk-11.0.1
# REF: https://github.com/elastic/elasticsearch-docker/issues/171
RUN ln -sf /etc/pki/ca-trust/extracted/java/cacerts /opt/jdk-11.0.1/lib/security/cacerts
# install crate
RUN yum install -y yum-utils https://centos7.iuscommunity.org/ius-release.rpm \
&& yum makecache \
&& yum install -y python36u openssl \
&& yum clean all \
&& rm -rf /var/cache/yum \
&& curl -fSL -O https://cdn.crate.io/downloads/releases/crate-3.2.8.tar.gz \
&& curl -fSL -O https://cdn.crate.io/downloads/releases/crate-3.2.8.tar.gz.asc \
&& export GNUPGHOME="$(mktemp -d)" \
&& gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 90C23FC6585BC0717F8FBFC37FAAE51A06F6EAEB \
&& gpg --batch --verify crate-3.2.8.tar.gz.asc crate-3.2.8.tar.gz \
&& rm -rf "$GNUPGHOME" crate-3.2.8.tar.gz.asc \
&& tar -xf crate-3.2.8.tar.gz -C /crate --strip-components=1 \
&& rm crate-3.2.8.tar.gz \
&& ln -sf /usr/bin/python3.6 /usr/bin/python3 \
&& ln -sf /usr/bin/python3.6 /usr/bin/python
COPY --chown=1000:0 config/crate.yml /crate/config/crate.yml
COPY --chown=1000:0 config/log4j2.properties /crate/config/log4j2.properties
# install crash
RUN curl -fSL -O https://cdn.crate.io/downloads/releases/crash_standalone_0.24.2\
&& curl -fSL -O https://cdn.crate.io/downloads/releases/crash_standalone_0.24.2.asc \
&& export GNUPGHOME="$(mktemp -d)" \
&& gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 90C23FC6585BC0717F8FBFC37FAAE51A06F6EAEB \
&& gpg --batch --verify crash_standalone_0.24.2.asc crash_standalone_0.24.2 \
&& rm -rf "$GNUPGHOME" crash_standalone_0.24.2.asc \
&& mv crash_standalone_0.24.2 /usr/local/bin/crash \
&& chmod +x /usr/local/bin/crash
ENV PATH /crate/bin:$PATH
# Default heap size for Docker, can be overwritten by args
ENV CRATE_HEAP_SIZE 512M
RUN mkdir -p /data/data /data/log
VOLUME /data
WORKDIR /data
# http: 4200 tcp
# transport: 4300 tcp
# postgres protocol ports: 5432 tcp
EXPOSE 4200 4300 5432
# These COPY commands have been moved before the last one due to the following issues:
# https://github.com/moby/moby/issues/37965#issuecomment-448926448
# https://github.com/moby/moby/issues/38866
COPY --chown=1000:0 config/crate.yml /crate/config/crate.yml
COPY --chown=1000:0 config/log4j2.properties /crate/config/log4j2.properties
LABEL maintainer="Crate.io <office@crate.io>" \
org.label-schema.schema-version="1.0" \
org.label-schema.build-date="2019-04-16T16:01:11.365468982+00:00" \
org.label-schema.name="crate" \
org.label-schema.description="CrateDB is a distributed SQL database handles massive amounts of machine data in real-time." \
org.label-schema.url="https://crate.io/products/cratedb/" \
org.label-schema.vcs-url="https://github.com/crate/docker-crate" \
org.label-schema.vendor="Crate.io" \
org.label-schema.version="3.2.8"
COPY docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["crate"]
| code refactoring |
2098 | ea4a3db25b8c1e1b4a4c20fd9627a2ed3150f028 | update Dockerfile | update Dockerfile
| #Docker App Auto Deployment Simple Weather App
FROM ubuntu:14.04.4
MAINTAINER Tonia Thompson <writing@toniathompson.com>
# Surpress Upstart errors/warning
RUN dpkg-divert --local --rename --add /sbin/initctl
RUN ln -sf /bin/true /sbin/initctl
# Update base image
# Add sources for latest nginx
# Install software requirements
RUN apt-get update && \
apt-get install -y software-properties-common && \
nginx=stable && \
add-apt-repository ppa:nginx/$nginx && \
apt-get update && \
apt-get upgrade -y && \
BUILD_PACKAGES="supervisor nginx php5-fpm php5-curl" && \
apt-get -y install $BUILD_PACKAGES && \
apt-get remove --purge -y software-properties-common && \
apt-get autoremove -y && \
apt-get clean && \
apt-get autoclean && \
echo -n > /var/lib/apt/extended_states && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /usr/share/man/?? && \
rm -rf /usr/share/man/??_*
# tweak php-fpm config
RUN sed -i -e "s/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/g" /etc/php5/fpm/php.ini
# Setup Volume
VOLUME ["/usr/share/nginx/html"]
EXPOSE 80
CMD ["/bin/bash", "/start.sh"] | null | code refactoring |
109 | 764ac96175d2da8d3a80a348a3f3c785d804459e | [cd] Update CIPD package versions used by `cd` Docker image | [cd] Update CIPD package versions used by `cd` Docker image
Bug: skia:12544
Change-Id: I70e34fcbd1033fa8a276c1b252a0a5baa5ef8e13
Reviewed-on: https://skia-review.googlesource.com/c/buildbot/+/539061
Commit-Queue: Eric Boren <0e499112533c8544f0505ea0d08394fb5ad7d8fa@google.com>
Reviewed-by: Ravi Mistry <9fa2e7438b8cb730f96b74865492597170561628@google.com>
| ARG CIPD_ROOT="/cipd"
FROM debian:bullseye as base
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
apt-transport-https \
ca-certificates \
clang-11 \
curl \
gnupg2 \
make \
patch \
software-properties-common \
&& curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - \
&& add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian bullseye stable" \
&& apt-get update \
&& apt-get install -y docker-ce \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get remove -y git \
&& ln -s /usr/bin/python3 /usr/bin/python
ENV CC=clang-11
# Install the CIPD client by syncing depot_tools to the revision specified in
# recipes.cfg (we're not a recipe, but it's conveniently pinned there and auto-
# rolled) and running the wrapper script. This process requires temporarily
# installing some packages that we prefer to obtain via CIPD.
FROM base AS install_cipd
RUN apt-get update && apt-get install -y git curl python3-minimal
COPY ./recipes.cfg /tmp/recipes.cfg
RUN cat /tmp/recipes.cfg | \
python3 -c "import json; import sys; print(json.load(sys.stdin)['deps']['depot_tools']['revision'])" > /tmp/depot_tools_rev \
&& cd $(mktemp -d) \
&& git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git \
&& cd depot_tools \
&& git reset --hard "$(cat /tmp/depot_tools_rev)" \
&& ./cipd --version \
&& cp ./.cipd_client /tmp/cipd
# This stage brings us back to the base image, plus the CIPD binary.
FROM base AS cipd
COPY --from=install_cipd /tmp/cipd /usr/local/bin/cipd
# Now install the desired packages.
FROM cipd AS install_pkgs
ARG CIPD_ROOT
ENV CIPD_ROOT=$CIPD_ROOT
RUN mkdir -p ${CIPD_ROOT}
ENV CIPD_CACHE_DIR="/tmp/.cipd_cache"
RUN cipd init ${CIPD_ROOT} -force \
&& cipd install skia/bots/bazelisk version:0 -root /cipd \
&& cipd install infra/3pp/tools/git/linux-amd64 version:2.29.2.chromium.6 -root /cipd \
&& cipd install skia/bots/go version:14 -root /cipd
# The final stage brings us back to the base image with the installed CIPD packages.
FROM base AS final
ARG CIPD_ROOT
ENV CIPD_ROOT=$CIPD_ROOT
COPY --from=install_pkgs ${CIPD_ROOT} ${CIPD_ROOT}
ENV GOPATH=/go
RUN mkdir -p ${GOPATH}
ENV PATH="${CIPD_ROOT}/bin:${CIPD_ROOT}/go/bin:${CIPD_ROOT}:${GOPATH}/bin:${PATH}"
| ARG CIPD_ROOT="/cipd"
FROM debian:bullseye as base
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
apt-transport-https \
ca-certificates \
clang-11 \
curl \
gnupg2 \
make \
patch \
software-properties-common \
&& curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - \
&& add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian bullseye stable" \
&& apt-get update \
&& apt-get install -y docker-ce \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get remove -y git \
&& ln -s /usr/bin/python3 /usr/bin/python
ENV CC=clang-11
# Install the CIPD client by syncing depot_tools to the revision specified in
# recipes.cfg (we're not a recipe, but it's conveniently pinned there and auto-
# rolled) and running the wrapper script. This process requires temporarily
# installing some packages that we prefer to obtain via CIPD.
FROM base AS install_cipd
RUN apt-get update && apt-get install -y git curl python3-minimal
COPY ./recipes.cfg /tmp/recipes.cfg
RUN cat /tmp/recipes.cfg | \
python3 -c "import json; import sys; print(json.load(sys.stdin)['deps']['depot_tools']['revision'])" > /tmp/depot_tools_rev \
&& cd $(mktemp -d) \
&& git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git \
&& cd depot_tools \
&& git reset --hard "$(cat /tmp/depot_tools_rev)" \
&& ./cipd --version \
&& cp ./.cipd_client /tmp/cipd
# This stage brings us back to the base image, plus the CIPD binary.
FROM base AS cipd
COPY --from=install_cipd /tmp/cipd /usr/local/bin/cipd
# Now install the desired packages.
FROM cipd AS install_pkgs
ARG CIPD_ROOT
ENV CIPD_ROOT=$CIPD_ROOT
RUN mkdir -p ${CIPD_ROOT}
ENV CIPD_CACHE_DIR="/tmp/.cipd_cache"
RUN cipd init ${CIPD_ROOT} -force \
&& cipd install skia/bots/bazelisk version:0 -root /cipd \
&& cipd install infra/3pp/tools/git/linux-amd64 version:2.36.0-rc2.chromium.8 -root /cipd \
&& cipd install skia/bots/go version:16 -root /cipd
# The final stage brings us back to the base image with the installed CIPD packages.
FROM base AS final
ARG CIPD_ROOT
ENV CIPD_ROOT=$CIPD_ROOT
COPY --from=install_pkgs ${CIPD_ROOT} ${CIPD_ROOT}
ENV GOPATH=/go
RUN mkdir -p ${GOPATH}
ENV PATH="${CIPD_ROOT}/bin:${CIPD_ROOT}/go/bin:${CIPD_ROOT}:${GOPATH}/bin:${PATH}"
| maintenance/other |
2248 | 4a094c867c89d847fe52f97cf62e04d3e50d10e1 | docker-compose.yml updates | docker-compose.yml updates
| FROM node:7.8-alpine
ENV USERNAME nodeuser
RUN adduser -D $USERNAME && \
mkdir /code && \
chown $USERNAME:$USERNAME /code
USER $USERNAME
WORKDIR /code
ARG NODE_ENV=production
ENV NODE_ENV=${NODE_ENV}
COPY yarn.lock package.json /code/
USER root
RUN find /code -user 0 -print0 | xargs -0 chown $USERNAME:$USERNAME
USER $USERNAME
# install dev dependences because they're used by yarn build
RUN NODE_ENV=development && yarn
EXPOSE 3333
RUN npm rebuild node-sass
RUN cd node_modules/nhsuk-frontend && npm run postinstall
COPY . /code
USER root
RUN find /code -user 0 -print0 | xargs -0 chown $USERNAME:$USERNAME
USER $USERNAME
RUN yarn build:webpack | null | maintenance/other |
230 | 335f38711d8cf7621fd1b7fc9fd4efe59acd2ed9 | Bumped source to 20201216-e99bf31 | Bumped source to 20201216-e99bf31
| FROM docker.pkg.github.com/dock0/arch/arch:20201216-170ce7b
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm base-devel musl vim-minimal tree openssh
ENV EDITOR vim
WORKDIR /opt/build
CMD ["make", "local"]
| FROM docker.pkg.github.com/dock0/arch/arch:20201216-e99bf31
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm base-devel musl vim-minimal tree openssh
ENV EDITOR vim
WORKDIR /opt/build
CMD ["make", "local"]
| code refactoring |
294 | dfc5473806e2771f1f45df623083b9ab32f9677a | Bumped source to 20200901-86f791f | Bumped source to 20200901-86f791f
| FROM docker.pkg.github.com/dock0/service/service:20200901-f88737f
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm --needed openssh
ENV ADMIN akerl
ENV KEY_URL https://id-ed25519.pub/groups/default.txt
RUN useradd -d /var/lib/ssh -M ssh_key_sync
RUN mkdir -m=0700 /var/lib/ssh && chown ssh_key_sync /var/lib/ssh
RUN echo "$KEY_URL" > /var/lib/ssh/key_url
ADD sshd_config /etc/ssh/sshd_config
ADD run /service/sshd/run
ADD sync /var/lib/ssh/sync
RUN groupadd remote
RUN useradd -d "/home/$ADMIN" -G remote -m "$ADMIN"
RUN passwd -d "$ADMIN"
| FROM docker.pkg.github.com/dock0/service/service:20200901-86f791f
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm --needed openssh
ENV ADMIN akerl
ENV KEY_URL https://id-ed25519.pub/groups/default.txt
RUN useradd -d /var/lib/ssh -M ssh_key_sync
RUN mkdir -m=0700 /var/lib/ssh && chown ssh_key_sync /var/lib/ssh
RUN echo "$KEY_URL" > /var/lib/ssh/key_url
ADD sshd_config /etc/ssh/sshd_config
ADD run /service/sshd/run
ADD sync /var/lib/ssh/sync
RUN groupadd remote
RUN useradd -d "/home/$ADMIN" -G remote -m "$ADMIN"
RUN passwd -d "$ADMIN"
| feature addition |
2158 | 1bc6cf776a9091cd8c5e382fed1b7d897cd93529 | Update Dockerfile | Update Dockerfile | # A docker file to run a ubuntu archive mirror
FROM alpine:latest
MAINTAINER Antoine GIRARD <antoine.girard@sapk.fr>
ENV SYNCMODE="archive" RSYNCSOURCE="rsync://rsync.archive.ubuntu.com/ubuntu" BASEDIR="/var/www/ubuntuarchive/"
# Could use in release mode SYNCMODE="releases" with RSYNCSOURCE="rsync://rsync.releases.ubuntu.com/releases"
COPY start.sh /
RUN apk -U --no-progress upgrade \
&& apk -U --force --no-progress add \
rsync bash darkhttpd \
&& addgroup -S ubuntu && adduser -S -H -h ${BASEDIR} -G ubuntu ubuntu \
&& mkdir ${BASEDIR} && chown ubuntu:ubuntu ${BASEDIR} \
&& chmod +x /start.sh \
&& rm /var/cache/apk/*
USER ubuntu
VOLUME ${BASEDIR}
EXPOSE 8080
ENTRYPOINT ["/start.sh"]
| null | code refactoring |
310 | cf9962b50a101684cd59a428043a4e64542e0065 | Add CMD | Add CMD
| FROM ubuntu:latest
MAINTAINER Chen, Wenli <chenwenli@chenwenli.com>
WORKDIR /tmp/work
ENV PRJROOT=/tmp/work/w64 \
TARGET=x86_64-w64-mingw32
ENV PREFIX=${PRJROOT}/tools \
BUILD=${PRJROOT}/build-tools
ENV TARGET_PREFIX=${PREFIX}/${TARGET}
ENVMAKEOPTS="-j4 --quiet"
COPY createdir.sh .
RUN \
/bin/bash createdir.sh && rm createdir.sh
WORKDIR $BUILD
RUN apt-get -qq update && apt-get install --no-install-recommends -qqy \
build-essential \
ca-certificates \
curl \
tar \
gzip \
lzip \
&& rm -rf /var/lib/apt/lists/*
RUN curl -L http://ftp.gnu.org/gnu/binutils/binutils-2.27.tar.gz > binutils-2.27.tar.gz \
&& tar zxf binutils-2.27.tar.gz \
&& cd build-binutils \
&& ../binutils-2.27/configure --target=$TARGET --prefix=$PREFIX --with-sysroot=$PREFIX \
&& make \
&& make install \
&& cd $BUILD \
&& rm -rf build-binutils binutils-2.27 binutils-2.27.tar.gz
# mingw headers
RUN curl -L http://downloads.sourceforge.net/project/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v5.0.0.tar.bz2 > mingw-w64-v5.0.0.tar.bz2 \
&& tar jxf mingw-w64-v5.0.0.tar.bz2 \
&& rm mingw-w64-v5.0.0.tar.bz2 \
&& mkdir -p $BUILD/build-mingw-w64-header/ \
&& cd $BUILD/build-mingw-w64-header/ \
&& ../mingw-w64-v5.0.0/configure --prefix=$TARGET_PREFIX --without-crt \
&& make \
&& make install \
&& cd $BUILD \
&& rm -rf build-mingw-w64-header
# gcc
RUN \
curl -L http://ftp.tsukuba.wide.ad.jp/software/gcc/releases/gcc-6.3.0/gcc-6.3.0.tar.bz2 | tar jxf - \
&& ln -s $TARGET_PREFIX $PREFIX/mingw \
&& mkdir -p $TARGET_PREFIX/lib \
&& ln -s $TARGET_PREFIX/lib $TARGET_PREFIX/lib64 \
# gmp
&& curl -L https://gmplib.org/download/gmp/gmp-6.1.2.tar.lz | tar --lzip -xf - \
&& mv gmp-6.1.2 gcc-6.3.0/gmp \
# mpc
&& curl -L ftp://ftp.gnu.org/gnu/mpc/mpc-1.0.3.tar.gz | tar zxf - \
&& mv mpc-1.0.3 gcc-6.3.0/mpc \
# mpfr
&& curl -L http://www.mpfr.org/mpfr-current/mpfr-3.1.5.tar.bz2 | tar jxf - \
&& mv mpfr-3.1.5 gcc-6.3.0/mpfr \
&& cd $BUILD/build-boot-gcc \
&& ../gcc-6.3.0/configure --target=$TARGET --prefix=$PREFIX --enable-languages=c,c++ \
&& make all-gcc \
&& make install-gcc \
&& cd $BUILD \
&& rm -rf build-boot-gcc
RUN \
cd $BUILD/build-mingw-w64-crt \
&& ../mingw-w64-v5.0.0/configure --host=$TARGET --prefix=$TARGET_PREFIX --without-header --with-sysroot=$TARGET_PREFIX \
&& make \
&& make install \
&& cd $BUILD \
&& rm -rf build-mingw-w64-crt mingw-w64-v5.0.0
RUN \
cd $BUILD/build-gcc \
&& ../gcc-6.3.0/configure --target=$TARGET --prefix=$PREFIX --enable-languages=c,c++ \
&& make all \
&& make install \
&& cd $BUILD \
&& rm -rf build-gcc gcc-6.3.0
| FROM ubuntu:latest
MAINTAINER Chen, Wenli <chenwenli@chenwenli.com>
WORKDIR /tmp/work
ENV PRJROOT=/tmp/work/w64 \
TARGET=x86_64-w64-mingw32
ENV PREFIX=${PRJROOT}/tools \
BUILD=${PRJROOT}/build-tools
ENV TARGET_PREFIX=${PREFIX}/${TARGET}
ENVMAKEOPTS="-j4 --quiet"
COPY createdir.sh .
RUN \
/bin/bash createdir.sh && rm createdir.sh
WORKDIR $BUILD
RUN apt-get -qq update && apt-get install --no-install-recommends -qqy \
build-essential \
ca-certificates \
curl \
tar \
gzip \
lzip \
&& rm -rf /var/lib/apt/lists/*
RUN curl -L http://ftp.gnu.org/gnu/binutils/binutils-2.27.tar.gz > binutils-2.27.tar.gz \
&& tar zxf binutils-2.27.tar.gz \
&& cd build-binutils \
&& ../binutils-2.27/configure --target=$TARGET --prefix=$PREFIX --with-sysroot=$PREFIX \
&& make \
&& make install \
&& cd $BUILD \
&& rm -rf build-binutils binutils-2.27 binutils-2.27.tar.gz
# mingw headers
RUN curl -L http://downloads.sourceforge.net/project/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v5.0.0.tar.bz2 > mingw-w64-v5.0.0.tar.bz2 \
&& tar jxf mingw-w64-v5.0.0.tar.bz2 \
&& rm mingw-w64-v5.0.0.tar.bz2 \
&& mkdir -p $BUILD/build-mingw-w64-header/ \
&& cd $BUILD/build-mingw-w64-header/ \
&& ../mingw-w64-v5.0.0/configure --prefix=$TARGET_PREFIX --without-crt \
&& make \
&& make install \
&& cd $BUILD \
&& rm -rf build-mingw-w64-header
# gcc
RUN \
curl -L http://ftp.tsukuba.wide.ad.jp/software/gcc/releases/gcc-6.3.0/gcc-6.3.0.tar.bz2 | tar jxf - \
&& ln -s $TARGET_PREFIX $PREFIX/mingw \
&& mkdir -p $TARGET_PREFIX/lib \
&& ln -s $TARGET_PREFIX/lib $TARGET_PREFIX/lib64 \
# gmp
&& curl -L https://gmplib.org/download/gmp/gmp-6.1.2.tar.lz | tar --lzip -xf - \
&& mv gmp-6.1.2 gcc-6.3.0/gmp \
# mpc
&& curl -L ftp://ftp.gnu.org/gnu/mpc/mpc-1.0.3.tar.gz | tar zxf - \
&& mv mpc-1.0.3 gcc-6.3.0/mpc \
# mpfr
&& curl -L http://www.mpfr.org/mpfr-current/mpfr-3.1.5.tar.bz2 | tar jxf - \
&& mv mpfr-3.1.5 gcc-6.3.0/mpfr \
&& cd $BUILD/build-boot-gcc \
&& ../gcc-6.3.0/configure --target=$TARGET --prefix=$PREFIX --enable-languages=c,c++ \
&& make all-gcc \
&& make install-gcc \
&& cd $BUILD \
&& rm -rf build-boot-gcc
RUN \
cd $BUILD/build-mingw-w64-crt \
&& ../mingw-w64-v5.0.0/configure --host=$TARGET --prefix=$TARGET_PREFIX --without-header --with-sysroot=$TARGET_PREFIX \
&& make \
&& make install \
&& cd $BUILD \
&& rm -rf build-mingw-w64-crt mingw-w64-v5.0.0
RUN \
cd $BUILD/build-gcc \
&& ../gcc-6.3.0/configure --target=$TARGET --prefix=$PREFIX --enable-languages=c,c++ \
&& make all \
&& make install \
&& cd $BUILD \
&& rm -rf build-gcc gcc-6.3.0
ENV PATH=${PATH}:${PREFIX}/bin
CMD ["/bin/bash"]
| code refactoring |
236 | 38921903645d7bb218a7aeca8eabb301408bd8bf | Update to 6.5.0 | Update to 6.5.0
| # Logstash 6.4.3
# This image re-bundles the Docker image from the upstream provider, Elastic.
FROM docker.elastic.co/logstash/logstash:6.4.3@sha256:392a232fdde65fb4821fc0d5e00ded19fec721226e1550bff4ab8ca84447d719
# The upstream image was built by:
# https://github.com/elastic/logstash-docker/tree/6.4.3
# For a full list of supported images and tags visit https://www.docker.elastic.co
# For Logstash documentation visit https://www.elastic.co/guide/en/logstash/current/docker.html
# See https://github.com/docker-library/official-images/pull/5039 for more details.
| # Logstash 6.5.0
# This image re-bundles the Docker image from the upstream provider, Elastic.
FROM docker.elastic.co/logstash/logstash:6.5.0@sha256:8735c7e6cb271dd064cb6fa4828750059d8b94cd92aed776e4291e100568a9e7
# The upstream image was built by:
# https://github.com/elastic/logstash-docker/tree/6.5.0
# For a full list of supported images and tags visit https://www.docker.elastic.co
# For Logstash documentation visit https://www.elastic.co/guide/en/logstash/current/docker.html
# See https://github.com/docker-library/official-images/pull/5039 for more details.
| code refactoring |
244 | 9c89d1768220e7b2698c8b0b1ed9871618f237fe | Optimize docker image size. | Optimize docker image size.
| FROM l3iggs/archlinux-aur
# Prefer to use the server at Samfundet, Trondheim.
RUN sudo sed -i '1s/^/Server = http:\/\/mirror.archlinux.no\/$repo\/os\/$arch /' /etc/pacman.d/mirrorlist
# Arch does not support "partial upgrades" so we must install every
# Arch package in the same docker RUN command.
RUN yaourt --noconfirm -Syua \
scala \
scons \
chisel \
jdk \
java-commons-io \
clang \
python-pint \
scalastyle
# Using the latest RISC-V toolchain causes a compilation error when
# building the RISC-V tests, but this revision is known to work. TODO:
# debug compilation error.
ENV TOOLCHAIN_REVISION f0addb7
# Install the RISC-V toolchain from github and build from source
RUN git clone https://github.com/riscv/riscv-gnu-toolchain.git
RUN pushd riscv-gnu-toolchain \
&& git checkout $TOOLCHAIN_REVISION \
&& ./configure --prefix=/opt/riscv \
&& sudo make -j8 \
&& popd \
&& sudo rm -rf riscv-gnu-toolchain/
ENV PATH $PATH:/opt/riscv/bin
CMD ["/bin/bash"]
| FROM l3iggs/archlinux-aur
# Install the RISC-V toolchain from github and build from source
# Using the latest RISC-V toolchain causes a compilation error when
# building the RISC-V tests, but this revision is known to work. TODO:
# debug compilation error.
ENV TOOLCHAIN_REVISION f0addb7
RUN git clone https://github.com/riscv/riscv-gnu-toolchain.git
RUN pushd riscv-gnu-toolchain \
&& git checkout $TOOLCHAIN_REVISION \
&& ./configure --prefix=/opt/riscv \
&& sudo make -j8 \
&& popd \
&& sudo rm -rf riscv-gnu-toolchain/
ENV PATH $PATH:/opt/riscv/bin
# Prefer to use the server at Samfundet, Trondheim.
RUN sudo sed -i '1s/^/Server = http:\/\/mirror.archlinux.no\/$repo\/os\/$arch /' /etc/pacman.d/mirrorlist
# Arch does not support "partial upgrades" so we must install every
# Arch package in the same docker RUN command.
RUN yaourt --noconfirm -Syua \
scala \
scons \
chisel \
jdk \
java-commons-io \
clang \
python-pint \
scalastyle \
&& \
pacman -Scc # Clean pacman cache before committing
CMD ["/bin/bash"]
| maintenance/other |
106 | 77d0b75d485c8a0c909e3bb57e918c669ff23e68 | update libudev-dev | update libudev-dev
| FROM ubuntu:16.04@sha256:97b54e5692c27072234ff958a7442dde4266af21e7b688e7fca5dc5acc8ed7d9
ENV LC_ALL=C.UTF-8 LANG=C.UTF-8
RUN apt-get update -q && \
apt-get install -qy \
git=1:2.7.4-0ubuntu1.7 \
wget=1.17.1-1ubuntu1.5 \
make=4.1-6 \
autotools-dev=20150820.1 \
autoconf=2.69-9 \
libtool=2.4.6-0.1 \
xz-utils=5.1.1alpha+20120614-2ubuntu2 \
libssl-dev=1.0.2g-1ubuntu4.15 \
libssl1.0.0=1.0.2g-1ubuntu4.15 \
openssl=1.0.2g-1ubuntu4.15 \
zlib1g-dev=1:1.2.8.dfsg-2ubuntu4.3 \
libffi-dev=3.2.1-4 \
libncurses5-dev=6.0+20160213-1ubuntu1 \
libsqlite3-dev=3.11.0-1ubuntu1.3 \
libusb-1.0-0-dev=2:1.0.20-1 \
libudev-dev=229-4ubuntu21.23 \
gettext=0.19.7-2ubuntu3.1 \
libzbar0=0.10+doc-10ubuntu1 \
libdbus-1-3=1.10.6-1ubuntu3.4 \
libxkbcommon-x11-0=0.5.0-1ubuntu2.1 \
&& \
rm -rf /var/lib/apt/lists/* && \
apt-get autoremove -y && \
apt-get clean
| FROM ubuntu:16.04@sha256:97b54e5692c27072234ff958a7442dde4266af21e7b688e7fca5dc5acc8ed7d9
ENV LC_ALL=C.UTF-8 LANG=C.UTF-8
RUN apt-get update -q && \
apt-get install -qy \
git=1:2.7.4-0ubuntu1.7 \
wget=1.17.1-1ubuntu1.5 \
make=4.1-6 \
autotools-dev=20150820.1 \
autoconf=2.69-9 \
libtool=2.4.6-0.1 \
xz-utils=5.1.1alpha+20120614-2ubuntu2 \
libssl-dev=1.0.2g-1ubuntu4.15 \
libssl1.0.0=1.0.2g-1ubuntu4.15 \
openssl=1.0.2g-1ubuntu4.15 \
zlib1g-dev=1:1.2.8.dfsg-2ubuntu4.3 \
libffi-dev=3.2.1-4 \
libncurses5-dev=6.0+20160213-1ubuntu1 \
libsqlite3-dev=3.11.0-1ubuntu1.3 \
libusb-1.0-0-dev=2:1.0.20-1 \
libudev-dev=229-4ubuntu21.27 \
gettext=0.19.7-2ubuntu3.1 \
libzbar0=0.10+doc-10ubuntu1 \
libdbus-1-3=1.10.6-1ubuntu3.4 \
libxkbcommon-x11-0=0.5.0-1ubuntu2.1 \
&& \
rm -rf /var/lib/apt/lists/* && \
apt-get autoremove -y && \
apt-get clean
| code refactoring |
2073 | 18dfb91eab9d000b2199feec1fc636470bb13375 | Bump Dockerfile to 0.1-192-e78aebbd | Bump Dockerfile to 0.1-192-e78aebbd
| FROM stellar/base:latest
MAINTAINER Mat Schaffer <mat@stellar.org>
ENV STELLAR_CORE_VERSION 0.1-191-341fa19d
EXPOSE 11625
EXPOSE 11626
VOLUME /data
VOLUME /postgresql-unix-sockets
VOLUME /heka
ADD install /
RUN /install
ADD heka /heka
ADD confd /etc/confd
ADD utils /utils
ADD start /
CMD ["/start"]
| null | code refactoring |
404 | 00648d5aef7a07eca7a8b8bd0350bbc838c02d31 | Updated to ownCloud 8.1.0. | Updated to ownCloud 8.1.0.
| FROM debian:jessie
MAINTAINER Josh Chaney "josh@chaney.io"
ADD misc/bootstrap.sh /usr/bin/
ADD configs/nginx_ssl.conf /root/
ADD configs/nginx.conf /root/
RUN dpkg-divert --local --rename --add /sbin/initctl && ln -sf /bin/true /sbin/initctl
RUN DEBIAN_FRONTEND=noninteractive ;\
apt-get update && \
apt-get install -y php5-cli php5-gd php5-pgsql php5-sqlite php5-mysqlnd php5-curl php5-intl php5-mcrypt php5-ldap php5-gmp php5-apcu php5-imagick php5-fpm smbclient nginx wget bzip2 cron sudo
ADD misc/owncloud.asc /tmp/owncloud.asc
ADD https://download.owncloud.org/community/owncloud-8.0.4.tar.bz2 /tmp/oc.tar.bz2
ADD https://download.owncloud.org/community/owncloud-8.0.4.tar.bz2.asc /tmp/oc.tar.bz2.asc
RUN mkdir -p /var/www/owncloud /owncloud /var/log/cron && \
gpg --import /tmp/owncloud.asc && \
gpg --verify /tmp/oc.tar.bz2.asc && \
tar -C /var/www/ -xf /tmp/oc.tar.bz2 && \
chown -R www-data:www-data /var/www/owncloud && \
rm -rf /var/www/owncloud/config && ln -sf /owncloud /var/www/owncloud/config && \
chmod +x /usr/bin/bootstrap.sh && \
rm /tmp/oc.tar.bz2 /tmp/oc.tar.bz2.asc /tmp/owncloud.asc
ADD configs/php.ini /etc/php5/fpm/
RUN echo 'always_populate_raw_post_data = -1' >> /etc/php5/cli/php.ini
ADD configs/cron.conf /etc/oc-cron.conf
RUN crontab /etc/oc-cron.conf
ADD misc/extensions.sh configs/extensions.conf /var/www/owncloud/apps/
RUN chmod a+x /var/www/owncloud/apps/extensions.sh ; \
/var/www/owncloud/apps/extensions.sh /var/www/owncloud/apps/extensions.conf /var/www/owncloud/apps ; \
rm /var/www/owncloud/apps/extensions.sh /var/www/owncloud/apps/extensions.conf
ENV OWNCLOUD_IN_ROOTPATH 0
EXPOSE 80
EXPOSE 443
ENTRYPOINT ["bootstrap.sh"]
| FROM debian:jessie
MAINTAINER Josh Chaney "josh@chaney.io"
ADD misc/bootstrap.sh /usr/bin/
ADD configs/nginx_ssl.conf /root/
ADD configs/nginx.conf /root/
ENV OWNCLOUD_VERSION 8.1.0
RUN dpkg-divert --local --rename --add /sbin/initctl && ln -sf /bin/true /sbin/initctl
RUN DEBIAN_FRONTEND=noninteractive ;\
apt-get update && \
apt-get install -y php5-cli php5-gd php5-pgsql php5-sqlite php5-mysqlnd php5-curl php5-intl php5-mcrypt php5-ldap php5-gmp php5-apcu php5-imagick php5-fpm smbclient nginx wget bzip2 cron sudo
ADD misc/owncloud.asc /tmp/owncloud.asc
ADD https://download.owncloud.org/community/owncloud-${OWNCLOUD_VERSION}.tar.bz2 /tmp/oc.tar.bz2
ADD https://download.owncloud.org/community/owncloud-${OWNCLOUD_VERSION}.tar.bz2.asc /tmp/oc.tar.bz2.asc
RUN mkdir -p /var/www/owncloud /owncloud /var/log/cron && \
gpg --import /tmp/owncloud.asc && \
gpg --verify /tmp/oc.tar.bz2.asc && \
tar -C /var/www/ -xf /tmp/oc.tar.bz2 && \
chown -R www-data:www-data /var/www/owncloud && \
rm -rf /var/www/owncloud/config && ln -sf /owncloud /var/www/owncloud/config && \
chmod +x /usr/bin/bootstrap.sh && \
rm /tmp/oc.tar.bz2 /tmp/oc.tar.bz2.asc /tmp/owncloud.asc
ADD configs/php.ini /etc/php5/fpm/
RUN echo 'always_populate_raw_post_data = -1' >> /etc/php5/cli/php.ini
ADD configs/cron.conf /etc/oc-cron.conf
RUN crontab /etc/oc-cron.conf
ADD misc/extensions.sh configs/extensions.conf /var/www/owncloud/apps/
RUN chmod a+x /var/www/owncloud/apps/extensions.sh ; \
/var/www/owncloud/apps/extensions.sh /var/www/owncloud/apps/extensions.conf /var/www/owncloud/apps ; \
rm /var/www/owncloud/apps/extensions.sh /var/www/owncloud/apps/extensions.conf
ENV OWNCLOUD_IN_ROOTPATH 0
EXPOSE 80
EXPOSE 443
ENTRYPOINT ["bootstrap.sh"]
| code refactoring |
2116 | 5c0ec432b33a66571b50f201d3e44307617ab4ca | Update to the latest version of the Heroku CLI | Update to the latest version of the Heroku CLI
| FROM debian:jessie
LABEL maintainer='Codeship Inc., <maintainers@codeship.com>'
ENV CACHE_BUST='2017-08-07' \
JQ_VERSION='1.5' \
PATH="/usr/local/heroku/bin:${PATH}"
RUN \
apt-get update && \
apt-get install -y --no-install-recommends \
bash \
curl \
ruby \
sudo \
wget && \
apt-get clean -y && \
rm -rf /var/lib/apt/lists/*
# Install the Heroku Toolbelt and and add it to the PATH
RUN \
wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh && \
heroku --version && \
apt-get clean -y && \
rm -rf /var/lib/apt/lists/*
# Install JQ, required for some of the included scripts
RUN \
wget -q -O /usr/bin/jq "https://github.com/stedolan/jq/releases/download/jq-${JQ_VERSION}/jq-linux64" && \
chmod 744 /usr/bin/jq
COPY scripts/ /usr/bin/
| null | feature addition |
2241 | a57eefa3b8ce2f8a8e86075106011fd9978a7d15 | Update youtube-dl to 2017.08.13 | Update youtube-dl to 2017.08.13
| FROM golang:1.8
MAINTAINER Mattias Wadman mattias.wadman@gmail.com
ENV FFMPEG_VERSION=n3.3.3
ENV YDL_VERSION=2017.08.09
ENV TINI_VERSION=v0.14.0
ENV LISTEN=:8080
ENV FORMATS=/etc/formats.json
RUN \
sed -i 's/main/main contrib non-free/g' /etc/apt/sources.list && \
apt-get update && \
apt-get -y install \
build-essential \
git-core \
yasm \
pkg-config \
libssl-dev \
libmp3lame-dev \
libvorbis-dev \
libvpx-dev \
libopus-dev \
libfdk-aac-dev \
libx264-dev \
rtmpdump \
mplayer \
&& \
apt-get clean
RUN \
git clone --branch $FFMPEG_VERSION --depth 1 https://github.com/FFmpeg/FFmpeg.git && \
(cd FFmpeg && \
./configure \
--toolchain=hardened \
--enable-gpl \
--enable-nonfree \
--enable-openssl \
--disable-ffserver \
--disable-doc \
--disable-ffplay \
--disable-encoders \
--enable-libmp3lame \
--enable-encoder=libmp3lame \
--enable-libvorbis \
--enable-encoder=libvorbis \
--enable-libopus \
--enable-encoder=libopus \
--enable-libvpx \
--enable-encoder=libvpx_vp8 \
--enable-encoder=libvpx_vp9 \
--enable-libfdk-aac \
--enable-encoder=libfdk_aac \
--enable-libx264 \
--enable-encoder=libx264 \
&& \
make && \
make install) && \
rm -rf FFmpeg && \
ldconfig
RUN \
curl -L -o /usr/local/bin/youtube-dl https://yt-dl.org/downloads/$YDL_VERSION/youtube-dl && \
chmod a+x /usr/local/bin/youtube-dl
RUN \
curl -L -o /usr/local/bin/tini https://github.com/krallin/tini/releases/download/$TINI_VERSION/tini && \
chmod a+x /usr/local/bin/tini
COPY . /go/src/github.com/wader/ydls/
COPY formats.json /etc/
COPY entrypoint.sh /usr/local/bin
RUN \
cd /go/src/github.com/wader/ydls && \
TEST_FFMPEG=1 TEST_YOUTUBEDL=1 TEST_NETWORK=1 \
go test -v -cover -race ./... && \
go install ./cmd/... && \
test_cmd/ydls-get.sh && \
test_cmd/ydls-server.sh && \
cp /go/bin/* /usr/local/bin && \
go clean -r ./cmd/... && \
rm -rf /go/*
USER nobody
EXPOSE 8080/tcp
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
| null | maintenance/other |
215 | 4d5f561266ce52988d832d70b618f3df73ece6bd | Add trailing slashes to the dirs in Dockerfile to allow older versions of docker to build | Add trailing slashes to the dirs in Dockerfile to allow older versions of docker to build
| FROM ruby:2.3.0
RUN mkdir -p /srv/app
WORKDIR /srv/app
ADD Gemfile /srv/app
ADD Gemfile.lock /srv/app
RUN bundle install
ADD . /srv/app
RUN RAILS_ENV=production bin/rake assets:precompile
EXPOSE 3000
CMD ["bin/unicorn", "-p", "3000", "-c", "config/unicorn.rb"]
| FROM ruby:2.3.0
RUN mkdir -p /srv/app
WORKDIR /srv/app
ADD Gemfile /srv/app/
ADD Gemfile.lock /srv/app/
RUN bundle install
ADD . /srv/app
RUN RAILS_ENV=production bin/rake assets:precompile
EXPOSE 3000
CMD ["bin/unicorn", "-p", "3000", "-c", "config/unicorn.rb"]
| maintenance/other |
20 | 8ce5e48ca8deda91b64b78a3b0b2f5073bc4a9b0 | Bumped source to 20200609-c4be92a | Bumped source to 20200609-c4be92a
| FROM docker.pkg.github.com/dock0/arch/arch:20200609-c2fdda7
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm \
strace tcpdump openbsd-netcat socat htop \
nmap dnsutils net-tools iputils openssh \
screen tmux man-db lsof psmisc git tree \
vim-minimal inetutils
| FROM docker.pkg.github.com/dock0/arch/arch:20200609-c4be92a
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm \
strace tcpdump openbsd-netcat socat htop \
nmap dnsutils net-tools iputils openssh \
screen tmux man-db lsof psmisc git tree \
vim-minimal inetutils
| maintenance/other |
285 | e0866f1904b335b143f04a7de7786d6351eac1e6 | Bumped source to 20201013-a2201e2 | Bumped source to 20201013-a2201e2
| FROM docker.pkg.github.com/dock0/arch/arch:20201013-9e971d1
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm \
strace tcpdump openbsd-netcat socat htop \
nmap dnsutils net-tools iputils openssh \
screen tmux man-db lsof psmisc git tree \
vim-minimal inetutils
| FROM docker.pkg.github.com/dock0/arch/arch:20201013-a2201e2
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm \
strace tcpdump openbsd-netcat socat htop \
nmap dnsutils net-tools iputils openssh \
screen tmux man-db lsof psmisc git tree \
vim-minimal inetutils
| code refactoring |
11 | 02ee9045f00c23178cb62335bcc33bf9acc3592e | Update kernel to 4.14.109 | Update kernel to 4.14.109
| FROM debian:stretch-slim
SHELL ["/bin/bash", "-Eeuo", "pipefail", "-xc"]
RUN apt-get update; \
apt-get install -y --no-install-recommends \
bash-completion \
bc \
ca-certificates \
cpio \
gcc \
git \
gnupg dirmngr \
golang-go \
kmod \
libc6-dev \
libelf-dev \
make \
p7zip-full \
patch \
squashfs-tools \
wget \
xorriso \
xz-utils \
; \
rm -rf /var/lib/apt/lists/*
# cleaner wget output
RUN echo 'progress = dot:giga' >> ~/.wgetrc; \
# color prompt (better debugging/devel)
cp /etc/skel/.bashrc ~/
WORKDIR /rootfs
# updated via "update.sh"
ENV TCL_MIRRORS http://distro.ibiblio.org/tinycorelinux http://repo.tinycorelinux.net
ENV TCL_MAJOR 8.x
ENV TCL_VERSION 8.2.1
# http://distro.ibiblio.org/tinycorelinux/8.x/x86_64/archive/8.2.1/distribution_files/rootfs64.gz.md5.txt
# updated via "update.sh"
ENV TCL_ROOTFS="rootfs64.gz" TCL_ROOTFS_MD5="b4991d3c07b88649b61616f86f2f079f"
COPY files/tce-load.patch files/udhcpc.patch /tcl-patches/
RUN for mirror in $TCL_MIRRORS; do \
if \
{ \
wget -O /rootfs.gz "$mirror/$TCL_MAJOR/x86_64/archive/$TCL_VERSION/distribution_files/$TCL_ROOTFS" \
# 9.x doesn't seem to use ".../archive/X.Y.Z/..." in the same way as 8.x :(
|| wget -O /rootfs.gz "$mirror/$TCL_MAJOR/x86_64/release/distribution_files/$TCL_ROOTFS" \
; } && echo "$TCL_ROOTFS_MD5 */rootfs.gz" | md5sum -c - \
; then \
break; \
fi; \
done; \
echo "$TCL_ROOTFS_MD5 */rootfs.gz" | md5sum -c -; \
zcat /rootfs.gz | cpio \
--extract \
--make-directories \
--no-absolute-filenames \
; \
rm /rootfs.gz; \
\
for patch in /tcl-patches/*.patch; do \
patch \
--input "$patch" \
--strip 1 \
--verbose \
; \
done; \
\
{ \
echo '# https://1.1.1.1/'; \
echo 'nameserver 1.1.1.1'; \
echo 'nameserver 1.0.0.1'; \
echo; \
echo '# https://developers.google.com/speed/public-dns/'; \
echo 'nameserver 8.8.8.8'; \
echo 'nameserver 8.8.4.4'; \
} > etc/resolv.conf; \
cp etc/resolv.conf etc/resolv.conf.b2d; \
{ \
echo '#!/usr/bin/env bash'; \
echo 'set -Eeuo pipefail'; \
echo "cd '$PWD'"; \
echo 'cp -T etc/resolv.conf etc/resolv.conf.bak'; \
echo 'cp -T /etc/resolv.conf etc/resolv.conf'; \
echo 'cp -T /proc/cpuinfo proc/cpuinfo 2>/dev/null || :'; \
echo 'trap "mv -T etc/resolv.conf.bak etc/resolv.conf || :; rm proc/cpuinfo 2>/dev/null || :" EXIT'; \
echo 'env -i PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" TERM="$TERM" chroot '"'$PWD'"' "$@"'; \
} > /usr/local/bin/tcl-chroot; \
chmod +x /usr/local/bin/tcl-chroot
# add new "docker" user (and replace "tc" user usage with "docker")
RUN tcl-chroot adduser \
-h /home/docker \
-g 'Docker' \
-s /bin/sh \
-G staff \
-D \
-u 1000 \
docker \
; \
echo 'docker:tcuser' | tcl-chroot chpasswd; \
echo 'docker ALL = NOPASSWD: ALL' >> etc/sudoers; \
sed -i 's/USER="tc"/USER="docker"/g' etc/init.d/tc-* etc/init.d/services/*
# https://github.com/tatsushid/docker-tinycore/blob/017b258a08a41399f65250c9865a163226c8e0bf/8.2/x86_64/Dockerfile
RUN mkdir -p proc; \
touch proc/cmdline; \
mkdir -p tmp/tce/optional usr/local/tce.installed/optional; \
chown -R root:staff tmp/tce usr/local/tce.installed; \
chmod -R g+w tmp/tce; \
ln -sT ../../tmp/tce etc/sysconfig/tcedir; \
echo -n docker > etc/sysconfig/tcuser; \
tcl-chroot sh -c '. /etc/init.d/tc-functions && setupHome'
# packages (and their deps) that we either need for our "tce-load" patches or that dep on "...-KERNEL" which we don't need (since we build our own kernel)
# http://distro.ibiblio.org/tinycorelinux/8.x/x86_64/tcz/squashfs-tools.tcz.dep
# http://distro.ibiblio.org/tinycorelinux/8.x/x86_64/tcz/squashfs-tools.tcz.md5.txt
# updated via "update.sh"
ENV TCL_PACKAGES="squashfs-tools.tcz liblzma.tcz lzo.tcz libzstd.tcz" TCL_PACKAGE_MD5__squashfs_tools_tcz="a44331fa2117314e62267147b6876a49" TCL_PACKAGE_MD5__liblzma_tcz="32b4958b9cb03d54d2d1d50df5bed699" TCL_PACKAGE_MD5__lzo_tcz="c9a1260675774c50cea1a490978b100d" TCL_PACKAGE_MD5__libzstd_tcz="a7f383473a4ced6c79e8b1a0cc9ad167"
RUN for package in $TCL_PACKAGES; do \
eval 'md5="$TCL_PACKAGE_MD5__'"$(echo "$package" | sed -r 's/[^a-zA-Z0-9]+/_/g')"'"'; \
echo "$md5 *$package" > "usr/local/tce.installed/optional/$package.md5.txt"; \
for mirror in $TCL_MIRRORS; do \
if \
wget -O "usr/local/tce.installed/optional/$package" "$mirror/$TCL_MAJOR/x86_64/tcz/$package" \
&& ( cd usr/local/tce.installed/optional && md5sum -c "$package.md5.txt" ) \
; then \
break; \
fi; \
done; \
( cd usr/local/tce.installed/optional && md5sum -c "$package.md5.txt" ); \
unsquashfs -dest . -force "usr/local/tce.installed/optional/$package"; \
touch "usr/local/tce.installed/${package%.tcz}"; \
# pretend this package has no deps (we already installed them)
touch "usr/local/tce.installed/optional/$package.dep"; \
done; \
\
tcl-chroot ldconfig; \
for script in usr/local/tce.installed/*; do \
[ -f "$script" ] || continue; \
[ -x "$script" ] || continue; \
tcl-chroot "$script"; \
done; \
\
{ \
echo '#!/bin/bash -Eeux'; \
echo 'tcl-chroot su -c "tce-load -wicl \"\$@\"" docker -- - "$@"'; \
} > /usr/local/bin/tcl-tce-load; \
chmod +x /usr/local/bin/tcl-tce-load
RUN tcl-tce-load bash; \
tcl-chroot bash --version; \
# delete all the TCL user-specific profile/rc files -- they have odd settings like auto-login from interactive root directly to "tcuser"
# (and the bash-provided defaults are reasonably sane)
rm -vf \
home/docker/.ashrc \
home/docker/.bashrc \
home/docker/.profile \
root/.ashrc \
root/.bashrc \
root/.profile \
; \
echo 'source /etc/profile' > home/docker/.profile; \
echo 'source /etc/profile' > root/.profile; \
# swap "docker" (and "root") user shell from /bin/sh to /bin/bash now that it exists
sed -ri '/^(docker|root):/ s!:[^:]*$!:/bin/bash!' etc/passwd; \
grep -E '^root:' etc/passwd | grep bash; \
grep -E '^docker:' etc/passwd | grep bash; \
# /etc/profile has a minor root bug where it uses "\#" in PS1 instead of "\$" (so we get a counter in our prompt instead of a "#")
# but also, does not use \[ and \] for escape sequences, so Bash readline gets confused, so let's replace it outright with something perty
grep '\\#' etc/profile; \
echo 'PS1='"'"'\[\e[1;32m\]\u@\h\[\e[0m\]:\[\e[1;34m\]\w\[\e[0m\]\$ '"'"'' > etc/profile.d/boot2docker-ps1.sh; \
source etc/profile.d/boot2docker-ps1.sh; \
[ "$PS1" = '\[\e[1;32m\]\u@\h\[\e[0m\]:\[\e[1;34m\]\w\[\e[0m\]\$ ' ]
# https://www.kernel.org/category/signatures.html#important-fingerprints
ENV LINUX_GPG_KEYS \
# Linus Torvalds
ABAF11C65A2970B130ABE3C479BE3E4300411886 \
# Greg Kroah-Hartman
647F28654894E3BD457199BE38DBBDC86092693E
# updated via "update.sh"
ENV LINUX_VERSION 4.14.107
RUN wget -O /linux.tar.xz "https://cdn.kernel.org/pub/linux/kernel/v${LINUX_VERSION%%.*}.x/linux-${LINUX_VERSION}.tar.xz"; \
wget -O /linux.tar.asc "https://cdn.kernel.org/pub/linux/kernel/v${LINUX_VERSION%%.*}.x/linux-${LINUX_VERSION}.tar.sign"; \
\
# decompress (signature is for the decompressed file)
xz --decompress /linux.tar.xz; \
[ -f /linux.tar ] && [ ! -f /linux.tar.xz ]; \
\
# verify
export GNUPGHOME="$(mktemp -d)"; \
for key in $LINUX_GPG_KEYS; do \
for mirror in \
ha.pool.sks-keyservers.net \
pgp.mit.edu \
hkp://p80.pool.sks-keyservers.net:80 \
ipv4.pool.sks-keyservers.net \
keyserver.ubuntu.com \
hkp://keyserver.ubuntu.com:80 \
; do \
if gpg --batch --verbose --keyserver "$mirror" --keyserver-options timeout=5 --recv-keys "$key"; then \
break; \
fi; \
done; \
gpg --batch --fingerprint "$key"; \
done; \
gpg --batch --verify /linux.tar.asc /linux.tar; \
gpgconf --kill all; \
rm -rf "$GNUPGHOME"; \
\
# extract
tar --extract --file /linux.tar --directory /usr/src; \
rm /linux.tar /linux.tar.asc; \
ln -sT "linux-$LINUX_VERSION" /usr/src/linux; \
[ -d /usr/src/linux ]
RUN { \
echo '#!/usr/bin/env bash'; \
echo 'set -Eeuo pipefail'; \
echo 'while [ "$#" -gt 0 ]; do'; \
echo 'conf="${1%%=*}"; shift'; \
echo 'conf="${conf#CONFIG_}"'; \
# https://www.kernel.org/doc/Documentation/kbuild/kconfig-language.txt
# TODO somehow capture "if" directives (https://github.com/torvalds/linux/blob/52e60b754438f34d23348698534e9ca63cd751d7/drivers/message/fusion/Kconfig#L12) since they're dependency related (can't set "CONFIG_FUSION_SAS" without first setting "CONFIG_FUSION")
echo 'find /usr/src/linux/ \
-name Kconfig \
-exec awk -v conf="$conf" '"'"' \
$1 ~ /^(menu)?config$/ && $2 == conf { \
yes = 1; \
printf "-- %s:%s --\n", FILENAME, FNR; \
print; \
next; \
} \
$1 ~ /^(end)?((menu)?config|choice|comment|menu|if|source)$/ { yes = 0; next } \
# TODO parse help text properly (indentation-based) to avoid false positives when scraping deps
yes { print; next } \
'"'"' "{}" + \
'; \
echo 'done'; \
} > /usr/local/bin/linux-kconfig-info; \
chmod +x /usr/local/bin/linux-kconfig-info; \
linux-kconfig-info CGROUPS
COPY files/kernel-config.d /kernel-config.d
RUN setConfs="$(grep -vEh '^[#-]' /kernel-config.d/* | sort -u)"; \
unsetConfs="$(sed -n 's/^-//p' /kernel-config.d/* | sort -u)"; \
IFS=$'\n'; \
setConfs=( $setConfs ); \
unsetConfs=( $unsetConfs ); \
unset IFS; \
\
make -C /usr/src/linux \
defconfig \
kvmconfig \
xenconfig \
> /dev/null; \
\
( \
set +x; \
for conf in "${unsetConfs[@]}"; do \
sed -i -e "s!^$conf=.*\$!# $conf is not set!" /usr/src/linux/.config; \
done; \
for confV in "${setConfs[@]}"; do \
conf="${confV%%=*}"; \
sed -ri -e "s!^($conf=.*|# $conf is not set)\$!$confV!" /usr/src/linux/.config; \
if ! grep -q "^$confV\$" /usr/src/linux/.config; then \
echo "$confV" >> /usr/src/linux/.config; \
fi; \
done; \
); \
make -C /usr/src/linux olddefconfig; \
set +x; \
ret=; \
for conf in "${unsetConfs[@]}"; do \
if grep "^$conf=" /usr/src/linux/.config; then \
echo "$conf is set!"; \
ret=1; \
fi; \
done; \
for confV in "${setConfs[@]}"; do \
if ! grep -q "^$confV\$" /usr/src/linux/.config; then \
kconfig="$(linux-kconfig-info "$confV")"; \
echo >&2; \
echo >&2 "'$confV' is not set:"; \
echo >&2; \
echo >&2 "$kconfig"; \
echo >&2; \
for dep in $(awk '$1 == "depends" && $2 == "on" { $1 = ""; $2 = ""; gsub(/[^a-zA-Z0-9_-]+/, " "); print }' <<<"$kconfig"); do \
grep >&2 -E "^CONFIG_$dep=|^# CONFIG_$dep is not set$" /usr/src/linux/.config || :; \
done; \
echo >&2; \
ret=1; \
fi; \
done; \
[ -z "$ret" ] || exit "$ret"
RUN make -C /usr/src/linux -j "$(nproc)" bzImage modules; \
make -C /usr/src/linux INSTALL_MOD_PATH="$PWD" modules_install
RUN mkdir -p /tmp/iso/boot; \
cp -vLT /usr/src/linux/arch/x86_64/boot/bzImage /tmp/iso/boot/vmlinuz
RUN tcl-tce-load \
acpid \
bash-completion \
ca-certificates \
curl \
e2fsprogs \
git \
iproute2 \
iptables \
ncurses-terminfo \
nfs-utils \
openssh \
openssl \
parted \
procps \
rsync \
tar \
util-linux \
xz
# bash-completion puts auto-load in /usr/local/etc/profile.d instead of /etc/profile.d
# (this one-liner is the same as the loop at the end of /etc/profile with an adjusted search path)
RUN echo 'for i in /usr/local/etc/profile.d/*.sh ; do if [ -r "$i" ]; then . $i; fi; done' > etc/profile.d/usr-local-etc-profile-d.sh; \
# Docker expects to find certs in /etc/ssl
ln -svT ../usr/local/etc/ssl etc/ssl; \
# make sure the Docker group exists and we're part of it
tcl-chroot sh -eux -c 'addgroup -S docker && addgroup docker docker'
# install kernel headers so we can use them for building xen-utils, etc
RUN make -C /usr/src/linux INSTALL_HDR_PATH=/usr/local headers_install
# https://lkml.org/lkml/2018/4/12/711 (https://github.com/boot2docker/boot2docker/pull/1322)
# https://github.com/jirka-h/haveged/releases
ENV HAVEGED_VERSION 1.9.4
RUN wget -O /haveged.tgz "https://github.com/jirka-h/haveged/archive/${HAVEGED_VERSION}.tar.gz"; \
mkdir /usr/src/haveged; \
tar --extract --file /haveged.tgz --directory /usr/src/haveged --strip-components 1; \
rm /haveged.tgz
# https://debbugs.gnu.org/11064 (libtool eats "-static", gcc doesn't mind getting "--static" even more than once)
RUN ( cd /usr/src/haveged && ./configure LDFLAGS='-static --static' ); \
make -C /usr/src/haveged/src -j "$(nproc)" haveged; \
cp -v /usr/src/haveged/src/haveged usr/local/sbin/; \
strip usr/local/sbin/haveged; \
tcl-chroot haveged --run 1
# http://download.virtualbox.org/virtualbox/
# updated via "update.sh"
ENV VBOX_VERSION 5.2.26
# https://www.virtualbox.org/download/hashes/$VBOX_VERSION/SHA256SUMS
ENV VBOX_SHA256 b927c5d0d4c97a9da2522daad41fe96b616ed06bfb0c883f9c42aad2244f7c38
# (VBoxGuestAdditions_X.Y.Z.iso SHA256, for verification)
RUN wget -O /vbox.iso "https://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso"; \
echo "$VBOX_SHA256 */vbox.iso" | sha256sum -c -; \
7z x -o/ /vbox.iso VBoxLinuxAdditions.run; \
rm /vbox.iso; \
sh /VBoxLinuxAdditions.run --noexec --target /usr/src/vbox; \
mkdir /usr/src/vbox/amd64; \
7z x -so /usr/src/vbox/VBoxGuestAdditions-amd64.tar.bz2 | tar --extract --directory /usr/src/vbox/amd64; \
rm /usr/src/vbox/VBoxGuestAdditions-*.tar.bz2; \
ln -sT "vboxguest-$VBOX_VERSION" /usr/src/vbox/amd64/src/vboxguest
RUN make -C /usr/src/vbox/amd64/src/vboxguest -j "$(nproc)" \
KERN_DIR='/usr/src/linux' \
KERN_VER="$(< /usr/src/linux/include/config/kernel.release)" \
vboxguest vboxsf \
; \
cp -v /usr/src/vbox/amd64/src/vboxguest/*.ko lib/modules/*/; \
# create hacky symlink so these binaries can work as-is
ln -sT lib lib64; \
cp -v /usr/src/vbox/amd64/other/mount.vboxsf /usr/src/vbox/amd64/sbin/VBoxService sbin/; \
cp -v /usr/src/vbox/amd64/bin/VBoxControl bin/
# TCL includes VMware's open-vm-tools 10.2.0.1608+ (no reason to compile that ourselves)
RUN tcl-tce-load open-vm-tools; \
tcl-chroot vmhgfs-fuse --version; \
tcl-chroot vmtoolsd --version
ENV PARALLELS_VERSION 13.3.0-43321
RUN wget -O /parallels.tgz "https://download.parallels.com/desktop/v${PARALLELS_VERSION%%.*}/$PARALLELS_VERSION/ParallelsTools-$PARALLELS_VERSION-boot2docker.tar.gz"; \
mkdir /usr/src/parallels; \
tar --extract --file /parallels.tgz --directory /usr/src/parallels --strip-components 1; \
rm /parallels.tgz
RUN cp -vr /usr/src/parallels/tools/* ./; \
make -C /usr/src/parallels/kmods -f Makefile.kmods -j "$(nproc)" installme \
SRC='/usr/src/linux' \
KERNEL_DIR='/usr/src/linux' \
KVER="$(< /usr/src/linux/include/config/kernel.release)" \
PRL_FREEZE_SKIP=1 \
; \
find /usr/src/parallels/kmods -name '*.ko' -exec cp -v '{}' lib/modules/*/ ';'; \
tcl-chroot prltoolsd -V
# https://github.com/xenserver/xe-guest-utilities/tags
# updated via "update.sh"
ENV XEN_VERSION 7.11.0
RUN wget -O /xen.tgz "https://github.com/xenserver/xe-guest-utilities/archive/v$XEN_VERSION.tar.gz"; \
mkdir /usr/src/xen; \
tar --extract --file /xen.tgz --directory /usr/src/xen --strip-components 1; \
rm /xen.tgz
RUN make -C /usr/src/xen -j "$(nproc)" PRODUCT_VERSION="$XEN_VERSION" RELEASE='boot2docker'; \
tar --extract --file "/usr/src/xen/build/dist/xe-guest-utilities_$XEN_VERSION-boot2docker_x86_64.tgz"; \
tcl-chroot xenstore || [ "$?" = 1 ]
# Hyper-V KVP Daemon
RUN make -C /usr/src/linux/tools/hv hv_kvp_daemon; \
cp /usr/src/linux/tools/hv/hv_kvp_daemon usr/local/sbin/; \
tcl-chroot hv_kvp_daemon --help || [ "$?" = 1 ]
# scan all built modules for kernel loading
RUN tcl-chroot depmod "$(< /usr/src/linux/include/config/kernel.release)"
# https://github.com/tianon/cgroupfs-mount/releases
ENV CGROUPFS_MOUNT_VERSION 1.4
RUN wget -O usr/local/sbin/cgroupfs-mount "https://github.com/tianon/cgroupfs-mount/raw/${CGROUPFS_MOUNT_VERSION}/cgroupfs-mount"; \
chmod +x usr/local/sbin/cgroupfs-mount; \
tcl-chroot cgroupfs-mount
ENV DOCKER_VERSION 18.09.4-rc1
# Get the Docker binaries with version that matches our boot2docker version.
RUN DOCKER_CHANNEL='edge'; \
case "$DOCKER_VERSION" in \
# all the pre-releases go in the "test" channel
*-rc* | *-beta* | *-tp* ) DOCKER_CHANNEL='test' ;; \
esac; \
\
wget -O /docker.tgz "https://download.docker.com/linux/static/$DOCKER_CHANNEL/x86_64/docker-$DOCKER_VERSION.tgz"; \
tar -zxvf /docker.tgz -C "usr/local/bin" --strip-components=1; \
rm /docker.tgz; \
\
# download bash-completion too
wget -O usr/local/share/bash-completion/completions/docker "https://github.com/docker/docker-ce/raw/v${DOCKER_VERSION}/components/cli/contrib/completion/bash/docker"; \
\
for binary in \
containerd \
ctr \
docker \
docker-init \
dockerd \
runc \
; do \
chroot . "$binary" --version; \
done
# set up a few branding bits
RUN { \
echo 'NAME=Boot2Docker'; \
echo "VERSION=$DOCKER_VERSION"; \
echo 'ID=boot2docker'; \
echo 'ID_LIKE=tcl'; \
echo "VERSION_ID=$DOCKER_VERSION"; \
echo "PRETTY_NAME=\"Boot2Docker $DOCKER_VERSION (TCL $TCL_VERSION)\""; \
echo 'ANSI_COLOR="1;34"'; \
echo 'HOME_URL="https://github.com/boot2docker/boot2docker"'; \
echo 'SUPPORT_URL="https://blog.docker.com/2016/11/introducing-docker-community-directory-docker-community-slack/"'; \
echo 'BUG_REPORT_URL="https://github.com/boot2docker/boot2docker/issues"'; \
} > etc/os-release; \
sed -i 's/HOSTNAME="box"/HOSTNAME="boot2docker"/g' usr/bin/sethostname; \
tcl-chroot sethostname; \
[ "$(< etc/hostname)" = 'boot2docker' ]; \
for num in 0 1 2 3; do \
echo "server $num.boot2docker.pool.ntp.org"; \
done > etc/ntp.conf; \
rm -v etc/sysconfig/ntpserver
COPY files/forgiving-getty files/shutdown ./usr/local/sbin/
# getty/inittab setup
RUN awk -F: ' \
$1 == "tty1" { \
print "tty1::respawn:/usr/local/sbin/forgiving-getty tty1"; \
print "ttyS0::respawn:/usr/local/sbin/forgiving-getty ttyS0"; \
next; \
} \
$1 ~ /^#?tty/ { next } \
{ print } \
' etc/inittab > etc/inittab.new; \
mv etc/inittab.new etc/inittab; \
grep forgiving-getty etc/inittab; \
# /sbin/autologin likes to invoke getty directly, so we skip that noise (especially since we want to always autologin)
# (and getty's "-l" argument cannot accept anything but a single command to "exec" directly -- no args)
# (and getty's "-n" argument to autologin doesn't seem to work properly)
{ \
echo '#!/bin/sh'; \
echo 'user="$(cat /etc/sysconfig/tcuser 2>/dev/null)"'; \
echo 'exec login -f "${user:-docker}"'; \
} > usr/local/sbin/autologin; \
chmod +x usr/local/sbin/autologin
# ssh config prep
RUN [ ! -f usr/local/etc/sshd_config ]; \
sed -r \
-e 's/^#(UseDNS[[:space:]])/\1/' \
-e 's/^#(PermitUserEnvironment)[[:space:]].*$/\1 yes/' \
usr/local/etc/ssh/sshd_config.orig \
> usr/local/etc/ssh/sshd_config; \
grep '^UseDNS no$' usr/local/etc/ssh/sshd_config; \
# "This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
# (and there are several important binaries in /usr/local/sbin that "docker-machine" needs to invoke like "ip" and "iptables")
grep '^PermitUserEnvironment yes$' usr/local/etc/ssh/sshd_config; \
mkdir -p home/docker/.ssh; \
echo 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' > home/docker/.ssh/environment; \
# acpid prep (looks in the wrong path for /etc/acpi)
ln -sT ../usr/local/etc/acpi etc/acpi; \
[ -z "$(ls -A etc/acpi/events)" ]; \
{ echo 'event=button/power'; echo 'action=/usr/bin/env poweroff'; } > etc/acpi/events/power; \
# explicit UTC timezone (especially for container bind-mounting)
echo 'UTC' > etc/timezone; \
cp -vL /usr/share/zoneinfo/UTC etc/localtime; \
# "dockremap" user/group so "--userns-remap=default" works out-of-the-box
tcl-chroot addgroup -S dockremap; \
tcl-chroot adduser -S -G dockremap dockremap; \
echo 'dockremap:165536:65536' | tee etc/subuid | tee etc/subgid
RUN savedAptMark="$(apt-mark showmanual)"; \
apt-get update; \
apt-get install -y --no-install-recommends \
isolinux \
syslinux-common \
; \
rm -rf /var/lib/apt/lists/*; \
mkdir -p /tmp/iso/isolinux; \
cp -v \
/usr/lib/ISOLINUX/isolinux.bin \
/usr/lib/syslinux/modules/bios/ldlinux.c32 \
/usr/lib/syslinux/modules/bios/libutil.c32 \
/usr/lib/syslinux/modules/bios/menu.c32 \
/tmp/iso/isolinux/ \
; \
cp -v /usr/lib/ISOLINUX/isohdpfx.bin /tmp/; \
apt-mark auto '.*' > /dev/null; \
apt-mark manual $savedAptMark; \
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false
COPY files/isolinux.cfg /tmp/iso/isolinux/
COPY files/init.d/* ./etc/init.d/
COPY files/bootsync.sh ./opt/
# temporary boot debugging aid
#RUN sed -i '2i set -x' etc/init.d/tc-config
COPY files/make-b2d-iso.sh /usr/local/bin/
RUN time make-b2d-iso.sh; \
du -hs /tmp/boot2docker.iso
CMD ["sh", "-c", "[ -t 1 ] && exec bash || exec cat /tmp/boot2docker.iso"]
| FROM debian:stretch-slim
SHELL ["/bin/bash", "-Eeuo", "pipefail", "-xc"]
RUN apt-get update; \
apt-get install -y --no-install-recommends \
bash-completion \
bc \
ca-certificates \
cpio \
gcc \
git \
gnupg dirmngr \
golang-go \
kmod \
libc6-dev \
libelf-dev \
make \
p7zip-full \
patch \
squashfs-tools \
wget \
xorriso \
xz-utils \
; \
rm -rf /var/lib/apt/lists/*
# cleaner wget output
RUN echo 'progress = dot:giga' >> ~/.wgetrc; \
# color prompt (better debugging/devel)
cp /etc/skel/.bashrc ~/
WORKDIR /rootfs
# updated via "update.sh"
ENV TCL_MIRRORS http://distro.ibiblio.org/tinycorelinux http://repo.tinycorelinux.net
ENV TCL_MAJOR 8.x
ENV TCL_VERSION 8.2.1
# http://distro.ibiblio.org/tinycorelinux/8.x/x86_64/archive/8.2.1/distribution_files/rootfs64.gz.md5.txt
# updated via "update.sh"
ENV TCL_ROOTFS="rootfs64.gz" TCL_ROOTFS_MD5="b4991d3c07b88649b61616f86f2f079f"
COPY files/tce-load.patch files/udhcpc.patch /tcl-patches/
RUN for mirror in $TCL_MIRRORS; do \
if \
{ \
wget -O /rootfs.gz "$mirror/$TCL_MAJOR/x86_64/archive/$TCL_VERSION/distribution_files/$TCL_ROOTFS" \
# 9.x doesn't seem to use ".../archive/X.Y.Z/..." in the same way as 8.x :(
|| wget -O /rootfs.gz "$mirror/$TCL_MAJOR/x86_64/release/distribution_files/$TCL_ROOTFS" \
; } && echo "$TCL_ROOTFS_MD5 */rootfs.gz" | md5sum -c - \
; then \
break; \
fi; \
done; \
echo "$TCL_ROOTFS_MD5 */rootfs.gz" | md5sum -c -; \
zcat /rootfs.gz | cpio \
--extract \
--make-directories \
--no-absolute-filenames \
; \
rm /rootfs.gz; \
\
for patch in /tcl-patches/*.patch; do \
patch \
--input "$patch" \
--strip 1 \
--verbose \
; \
done; \
\
{ \
echo '# https://1.1.1.1/'; \
echo 'nameserver 1.1.1.1'; \
echo 'nameserver 1.0.0.1'; \
echo; \
echo '# https://developers.google.com/speed/public-dns/'; \
echo 'nameserver 8.8.8.8'; \
echo 'nameserver 8.8.4.4'; \
} > etc/resolv.conf; \
cp etc/resolv.conf etc/resolv.conf.b2d; \
{ \
echo '#!/usr/bin/env bash'; \
echo 'set -Eeuo pipefail'; \
echo "cd '$PWD'"; \
echo 'cp -T etc/resolv.conf etc/resolv.conf.bak'; \
echo 'cp -T /etc/resolv.conf etc/resolv.conf'; \
echo 'cp -T /proc/cpuinfo proc/cpuinfo 2>/dev/null || :'; \
echo 'trap "mv -T etc/resolv.conf.bak etc/resolv.conf || :; rm proc/cpuinfo 2>/dev/null || :" EXIT'; \
echo 'env -i PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" TERM="$TERM" chroot '"'$PWD'"' "$@"'; \
} > /usr/local/bin/tcl-chroot; \
chmod +x /usr/local/bin/tcl-chroot
# add new "docker" user (and replace "tc" user usage with "docker")
RUN tcl-chroot adduser \
-h /home/docker \
-g 'Docker' \
-s /bin/sh \
-G staff \
-D \
-u 1000 \
docker \
; \
echo 'docker:tcuser' | tcl-chroot chpasswd; \
echo 'docker ALL = NOPASSWD: ALL' >> etc/sudoers; \
sed -i 's/USER="tc"/USER="docker"/g' etc/init.d/tc-* etc/init.d/services/*
# https://github.com/tatsushid/docker-tinycore/blob/017b258a08a41399f65250c9865a163226c8e0bf/8.2/x86_64/Dockerfile
RUN mkdir -p proc; \
touch proc/cmdline; \
mkdir -p tmp/tce/optional usr/local/tce.installed/optional; \
chown -R root:staff tmp/tce usr/local/tce.installed; \
chmod -R g+w tmp/tce; \
ln -sT ../../tmp/tce etc/sysconfig/tcedir; \
echo -n docker > etc/sysconfig/tcuser; \
tcl-chroot sh -c '. /etc/init.d/tc-functions && setupHome'
# packages (and their deps) that we either need for our "tce-load" patches or that dep on "...-KERNEL" which we don't need (since we build our own kernel)
# http://distro.ibiblio.org/tinycorelinux/8.x/x86_64/tcz/squashfs-tools.tcz.dep
# http://distro.ibiblio.org/tinycorelinux/8.x/x86_64/tcz/squashfs-tools.tcz.md5.txt
# updated via "update.sh"
ENV TCL_PACKAGES="squashfs-tools.tcz liblzma.tcz lzo.tcz libzstd.tcz" TCL_PACKAGE_MD5__squashfs_tools_tcz="a44331fa2117314e62267147b6876a49" TCL_PACKAGE_MD5__liblzma_tcz="32b4958b9cb03d54d2d1d50df5bed699" TCL_PACKAGE_MD5__lzo_tcz="c9a1260675774c50cea1a490978b100d" TCL_PACKAGE_MD5__libzstd_tcz="a7f383473a4ced6c79e8b1a0cc9ad167"
RUN for package in $TCL_PACKAGES; do \
eval 'md5="$TCL_PACKAGE_MD5__'"$(echo "$package" | sed -r 's/[^a-zA-Z0-9]+/_/g')"'"'; \
echo "$md5 *$package" > "usr/local/tce.installed/optional/$package.md5.txt"; \
for mirror in $TCL_MIRRORS; do \
if \
wget -O "usr/local/tce.installed/optional/$package" "$mirror/$TCL_MAJOR/x86_64/tcz/$package" \
&& ( cd usr/local/tce.installed/optional && md5sum -c "$package.md5.txt" ) \
; then \
break; \
fi; \
done; \
( cd usr/local/tce.installed/optional && md5sum -c "$package.md5.txt" ); \
unsquashfs -dest . -force "usr/local/tce.installed/optional/$package"; \
touch "usr/local/tce.installed/${package%.tcz}"; \
# pretend this package has no deps (we already installed them)
touch "usr/local/tce.installed/optional/$package.dep"; \
done; \
\
tcl-chroot ldconfig; \
for script in usr/local/tce.installed/*; do \
[ -f "$script" ] || continue; \
[ -x "$script" ] || continue; \
tcl-chroot "$script"; \
done; \
\
{ \
echo '#!/bin/bash -Eeux'; \
echo 'tcl-chroot su -c "tce-load -wicl \"\$@\"" docker -- - "$@"'; \
} > /usr/local/bin/tcl-tce-load; \
chmod +x /usr/local/bin/tcl-tce-load
RUN tcl-tce-load bash; \
tcl-chroot bash --version; \
# delete all the TCL user-specific profile/rc files -- they have odd settings like auto-login from interactive root directly to "tcuser"
# (and the bash-provided defaults are reasonably sane)
rm -vf \
home/docker/.ashrc \
home/docker/.bashrc \
home/docker/.profile \
root/.ashrc \
root/.bashrc \
root/.profile \
; \
echo 'source /etc/profile' > home/docker/.profile; \
echo 'source /etc/profile' > root/.profile; \
# swap "docker" (and "root") user shell from /bin/sh to /bin/bash now that it exists
sed -ri '/^(docker|root):/ s!:[^:]*$!:/bin/bash!' etc/passwd; \
grep -E '^root:' etc/passwd | grep bash; \
grep -E '^docker:' etc/passwd | grep bash; \
# /etc/profile has a minor root bug where it uses "\#" in PS1 instead of "\$" (so we get a counter in our prompt instead of a "#")
# but also, does not use \[ and \] for escape sequences, so Bash readline gets confused, so let's replace it outright with something perty
grep '\\#' etc/profile; \
echo 'PS1='"'"'\[\e[1;32m\]\u@\h\[\e[0m\]:\[\e[1;34m\]\w\[\e[0m\]\$ '"'"'' > etc/profile.d/boot2docker-ps1.sh; \
source etc/profile.d/boot2docker-ps1.sh; \
[ "$PS1" = '\[\e[1;32m\]\u@\h\[\e[0m\]:\[\e[1;34m\]\w\[\e[0m\]\$ ' ]
# https://www.kernel.org/category/signatures.html#important-fingerprints
ENV LINUX_GPG_KEYS \
# Linus Torvalds
ABAF11C65A2970B130ABE3C479BE3E4300411886 \
# Greg Kroah-Hartman
647F28654894E3BD457199BE38DBBDC86092693E
# updated via "update.sh"
ENV LINUX_VERSION 4.14.109
RUN wget -O /linux.tar.xz "https://cdn.kernel.org/pub/linux/kernel/v${LINUX_VERSION%%.*}.x/linux-${LINUX_VERSION}.tar.xz"; \
wget -O /linux.tar.asc "https://cdn.kernel.org/pub/linux/kernel/v${LINUX_VERSION%%.*}.x/linux-${LINUX_VERSION}.tar.sign"; \
\
# decompress (signature is for the decompressed file)
xz --decompress /linux.tar.xz; \
[ -f /linux.tar ] && [ ! -f /linux.tar.xz ]; \
\
# verify
export GNUPGHOME="$(mktemp -d)"; \
for key in $LINUX_GPG_KEYS; do \
for mirror in \
ha.pool.sks-keyservers.net \
pgp.mit.edu \
hkp://p80.pool.sks-keyservers.net:80 \
ipv4.pool.sks-keyservers.net \
keyserver.ubuntu.com \
hkp://keyserver.ubuntu.com:80 \
; do \
if gpg --batch --verbose --keyserver "$mirror" --keyserver-options timeout=5 --recv-keys "$key"; then \
break; \
fi; \
done; \
gpg --batch --fingerprint "$key"; \
done; \
gpg --batch --verify /linux.tar.asc /linux.tar; \
gpgconf --kill all; \
rm -rf "$GNUPGHOME"; \
\
# extract
tar --extract --file /linux.tar --directory /usr/src; \
rm /linux.tar /linux.tar.asc; \
ln -sT "linux-$LINUX_VERSION" /usr/src/linux; \
[ -d /usr/src/linux ]
RUN { \
echo '#!/usr/bin/env bash'; \
echo 'set -Eeuo pipefail'; \
echo 'while [ "$#" -gt 0 ]; do'; \
echo 'conf="${1%%=*}"; shift'; \
echo 'conf="${conf#CONFIG_}"'; \
# https://www.kernel.org/doc/Documentation/kbuild/kconfig-language.txt
# TODO somehow capture "if" directives (https://github.com/torvalds/linux/blob/52e60b754438f34d23348698534e9ca63cd751d7/drivers/message/fusion/Kconfig#L12) since they're dependency related (can't set "CONFIG_FUSION_SAS" without first setting "CONFIG_FUSION")
echo 'find /usr/src/linux/ \
-name Kconfig \
-exec awk -v conf="$conf" '"'"' \
$1 ~ /^(menu)?config$/ && $2 == conf { \
yes = 1; \
printf "-- %s:%s --\n", FILENAME, FNR; \
print; \
next; \
} \
$1 ~ /^(end)?((menu)?config|choice|comment|menu|if|source)$/ { yes = 0; next } \
# TODO parse help text properly (indentation-based) to avoid false positives when scraping deps
yes { print; next } \
'"'"' "{}" + \
'; \
echo 'done'; \
} > /usr/local/bin/linux-kconfig-info; \
chmod +x /usr/local/bin/linux-kconfig-info; \
linux-kconfig-info CGROUPS
COPY files/kernel-config.d /kernel-config.d
RUN setConfs="$(grep -vEh '^[#-]' /kernel-config.d/* | sort -u)"; \
unsetConfs="$(sed -n 's/^-//p' /kernel-config.d/* | sort -u)"; \
IFS=$'\n'; \
setConfs=( $setConfs ); \
unsetConfs=( $unsetConfs ); \
unset IFS; \
\
make -C /usr/src/linux \
defconfig \
kvmconfig \
xenconfig \
> /dev/null; \
\
( \
set +x; \
for conf in "${unsetConfs[@]}"; do \
sed -i -e "s!^$conf=.*\$!# $conf is not set!" /usr/src/linux/.config; \
done; \
for confV in "${setConfs[@]}"; do \
conf="${confV%%=*}"; \
sed -ri -e "s!^($conf=.*|# $conf is not set)\$!$confV!" /usr/src/linux/.config; \
if ! grep -q "^$confV\$" /usr/src/linux/.config; then \
echo "$confV" >> /usr/src/linux/.config; \
fi; \
done; \
); \
make -C /usr/src/linux olddefconfig; \
set +x; \
ret=; \
for conf in "${unsetConfs[@]}"; do \
if grep "^$conf=" /usr/src/linux/.config; then \
echo "$conf is set!"; \
ret=1; \
fi; \
done; \
for confV in "${setConfs[@]}"; do \
if ! grep -q "^$confV\$" /usr/src/linux/.config; then \
kconfig="$(linux-kconfig-info "$confV")"; \
echo >&2; \
echo >&2 "'$confV' is not set:"; \
echo >&2; \
echo >&2 "$kconfig"; \
echo >&2; \
for dep in $(awk '$1 == "depends" && $2 == "on" { $1 = ""; $2 = ""; gsub(/[^a-zA-Z0-9_-]+/, " "); print }' <<<"$kconfig"); do \
grep >&2 -E "^CONFIG_$dep=|^# CONFIG_$dep is not set$" /usr/src/linux/.config || :; \
done; \
echo >&2; \
ret=1; \
fi; \
done; \
[ -z "$ret" ] || exit "$ret"
RUN make -C /usr/src/linux -j "$(nproc)" bzImage modules; \
make -C /usr/src/linux INSTALL_MOD_PATH="$PWD" modules_install
RUN mkdir -p /tmp/iso/boot; \
cp -vLT /usr/src/linux/arch/x86_64/boot/bzImage /tmp/iso/boot/vmlinuz
RUN tcl-tce-load \
acpid \
bash-completion \
ca-certificates \
curl \
e2fsprogs \
git \
iproute2 \
iptables \
ncurses-terminfo \
nfs-utils \
openssh \
openssl \
parted \
procps \
rsync \
tar \
util-linux \
xz
# bash-completion puts auto-load in /usr/local/etc/profile.d instead of /etc/profile.d
# (this one-liner is the same as the loop at the end of /etc/profile with an adjusted search path)
RUN echo 'for i in /usr/local/etc/profile.d/*.sh ; do if [ -r "$i" ]; then . $i; fi; done' > etc/profile.d/usr-local-etc-profile-d.sh; \
# Docker expects to find certs in /etc/ssl
ln -svT ../usr/local/etc/ssl etc/ssl; \
# make sure the Docker group exists and we're part of it
tcl-chroot sh -eux -c 'addgroup -S docker && addgroup docker docker'
# install kernel headers so we can use them for building xen-utils, etc
RUN make -C /usr/src/linux INSTALL_HDR_PATH=/usr/local headers_install
# https://lkml.org/lkml/2018/4/12/711 (https://github.com/boot2docker/boot2docker/pull/1322)
# https://github.com/jirka-h/haveged/releases
ENV HAVEGED_VERSION 1.9.4
RUN wget -O /haveged.tgz "https://github.com/jirka-h/haveged/archive/${HAVEGED_VERSION}.tar.gz"; \
mkdir /usr/src/haveged; \
tar --extract --file /haveged.tgz --directory /usr/src/haveged --strip-components 1; \
rm /haveged.tgz
# https://debbugs.gnu.org/11064 (libtool eats "-static", gcc doesn't mind getting "--static" even more than once)
RUN ( cd /usr/src/haveged && ./configure LDFLAGS='-static --static' ); \
make -C /usr/src/haveged/src -j "$(nproc)" haveged; \
cp -v /usr/src/haveged/src/haveged usr/local/sbin/; \
strip usr/local/sbin/haveged; \
tcl-chroot haveged --run 1
# http://download.virtualbox.org/virtualbox/
# updated via "update.sh"
ENV VBOX_VERSION 5.2.26
# https://www.virtualbox.org/download/hashes/$VBOX_VERSION/SHA256SUMS
ENV VBOX_SHA256 b927c5d0d4c97a9da2522daad41fe96b616ed06bfb0c883f9c42aad2244f7c38
# (VBoxGuestAdditions_X.Y.Z.iso SHA256, for verification)
RUN wget -O /vbox.iso "https://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso"; \
echo "$VBOX_SHA256 */vbox.iso" | sha256sum -c -; \
7z x -o/ /vbox.iso VBoxLinuxAdditions.run; \
rm /vbox.iso; \
sh /VBoxLinuxAdditions.run --noexec --target /usr/src/vbox; \
mkdir /usr/src/vbox/amd64; \
7z x -so /usr/src/vbox/VBoxGuestAdditions-amd64.tar.bz2 | tar --extract --directory /usr/src/vbox/amd64; \
rm /usr/src/vbox/VBoxGuestAdditions-*.tar.bz2; \
ln -sT "vboxguest-$VBOX_VERSION" /usr/src/vbox/amd64/src/vboxguest
RUN make -C /usr/src/vbox/amd64/src/vboxguest -j "$(nproc)" \
KERN_DIR='/usr/src/linux' \
KERN_VER="$(< /usr/src/linux/include/config/kernel.release)" \
vboxguest vboxsf \
; \
cp -v /usr/src/vbox/amd64/src/vboxguest/*.ko lib/modules/*/; \
# create hacky symlink so these binaries can work as-is
ln -sT lib lib64; \
cp -v /usr/src/vbox/amd64/other/mount.vboxsf /usr/src/vbox/amd64/sbin/VBoxService sbin/; \
cp -v /usr/src/vbox/amd64/bin/VBoxControl bin/
# TCL includes VMware's open-vm-tools 10.2.0.1608+ (no reason to compile that ourselves)
RUN tcl-tce-load open-vm-tools; \
tcl-chroot vmhgfs-fuse --version; \
tcl-chroot vmtoolsd --version
ENV PARALLELS_VERSION 13.3.0-43321
RUN wget -O /parallels.tgz "https://download.parallels.com/desktop/v${PARALLELS_VERSION%%.*}/$PARALLELS_VERSION/ParallelsTools-$PARALLELS_VERSION-boot2docker.tar.gz"; \
mkdir /usr/src/parallels; \
tar --extract --file /parallels.tgz --directory /usr/src/parallels --strip-components 1; \
rm /parallels.tgz
RUN cp -vr /usr/src/parallels/tools/* ./; \
make -C /usr/src/parallels/kmods -f Makefile.kmods -j "$(nproc)" installme \
SRC='/usr/src/linux' \
KERNEL_DIR='/usr/src/linux' \
KVER="$(< /usr/src/linux/include/config/kernel.release)" \
PRL_FREEZE_SKIP=1 \
; \
find /usr/src/parallels/kmods -name '*.ko' -exec cp -v '{}' lib/modules/*/ ';'; \
tcl-chroot prltoolsd -V
# https://github.com/xenserver/xe-guest-utilities/tags
# updated via "update.sh"
ENV XEN_VERSION 7.11.0
RUN wget -O /xen.tgz "https://github.com/xenserver/xe-guest-utilities/archive/v$XEN_VERSION.tar.gz"; \
mkdir /usr/src/xen; \
tar --extract --file /xen.tgz --directory /usr/src/xen --strip-components 1; \
rm /xen.tgz
RUN make -C /usr/src/xen -j "$(nproc)" PRODUCT_VERSION="$XEN_VERSION" RELEASE='boot2docker'; \
tar --extract --file "/usr/src/xen/build/dist/xe-guest-utilities_$XEN_VERSION-boot2docker_x86_64.tgz"; \
tcl-chroot xenstore || [ "$?" = 1 ]
# Hyper-V KVP Daemon
RUN make -C /usr/src/linux/tools/hv hv_kvp_daemon; \
cp /usr/src/linux/tools/hv/hv_kvp_daemon usr/local/sbin/; \
tcl-chroot hv_kvp_daemon --help || [ "$?" = 1 ]
# scan all built modules for kernel loading
RUN tcl-chroot depmod "$(< /usr/src/linux/include/config/kernel.release)"
# https://github.com/tianon/cgroupfs-mount/releases
ENV CGROUPFS_MOUNT_VERSION 1.4
RUN wget -O usr/local/sbin/cgroupfs-mount "https://github.com/tianon/cgroupfs-mount/raw/${CGROUPFS_MOUNT_VERSION}/cgroupfs-mount"; \
chmod +x usr/local/sbin/cgroupfs-mount; \
tcl-chroot cgroupfs-mount
ENV DOCKER_VERSION 18.09.4-rc1
# Get the Docker binaries with version that matches our boot2docker version.
RUN DOCKER_CHANNEL='edge'; \
case "$DOCKER_VERSION" in \
# all the pre-releases go in the "test" channel
*-rc* | *-beta* | *-tp* ) DOCKER_CHANNEL='test' ;; \
esac; \
\
wget -O /docker.tgz "https://download.docker.com/linux/static/$DOCKER_CHANNEL/x86_64/docker-$DOCKER_VERSION.tgz"; \
tar -zxvf /docker.tgz -C "usr/local/bin" --strip-components=1; \
rm /docker.tgz; \
\
# download bash-completion too
wget -O usr/local/share/bash-completion/completions/docker "https://github.com/docker/docker-ce/raw/v${DOCKER_VERSION}/components/cli/contrib/completion/bash/docker"; \
\
for binary in \
containerd \
ctr \
docker \
docker-init \
dockerd \
runc \
; do \
chroot . "$binary" --version; \
done
# set up a few branding bits
RUN { \
echo 'NAME=Boot2Docker'; \
echo "VERSION=$DOCKER_VERSION"; \
echo 'ID=boot2docker'; \
echo 'ID_LIKE=tcl'; \
echo "VERSION_ID=$DOCKER_VERSION"; \
echo "PRETTY_NAME=\"Boot2Docker $DOCKER_VERSION (TCL $TCL_VERSION)\""; \
echo 'ANSI_COLOR="1;34"'; \
echo 'HOME_URL="https://github.com/boot2docker/boot2docker"'; \
echo 'SUPPORT_URL="https://blog.docker.com/2016/11/introducing-docker-community-directory-docker-community-slack/"'; \
echo 'BUG_REPORT_URL="https://github.com/boot2docker/boot2docker/issues"'; \
} > etc/os-release; \
sed -i 's/HOSTNAME="box"/HOSTNAME="boot2docker"/g' usr/bin/sethostname; \
tcl-chroot sethostname; \
[ "$(< etc/hostname)" = 'boot2docker' ]; \
for num in 0 1 2 3; do \
echo "server $num.boot2docker.pool.ntp.org"; \
done > etc/ntp.conf; \
rm -v etc/sysconfig/ntpserver
COPY files/forgiving-getty files/shutdown ./usr/local/sbin/
# getty/inittab setup
RUN awk -F: ' \
$1 == "tty1" { \
print "tty1::respawn:/usr/local/sbin/forgiving-getty tty1"; \
print "ttyS0::respawn:/usr/local/sbin/forgiving-getty ttyS0"; \
next; \
} \
$1 ~ /^#?tty/ { next } \
{ print } \
' etc/inittab > etc/inittab.new; \
mv etc/inittab.new etc/inittab; \
grep forgiving-getty etc/inittab; \
# /sbin/autologin likes to invoke getty directly, so we skip that noise (especially since we want to always autologin)
# (and getty's "-l" argument cannot accept anything but a single command to "exec" directly -- no args)
# (and getty's "-n" argument to autologin doesn't seem to work properly)
{ \
echo '#!/bin/sh'; \
echo 'user="$(cat /etc/sysconfig/tcuser 2>/dev/null)"'; \
echo 'exec login -f "${user:-docker}"'; \
} > usr/local/sbin/autologin; \
chmod +x usr/local/sbin/autologin
# ssh config prep
RUN [ ! -f usr/local/etc/sshd_config ]; \
sed -r \
-e 's/^#(UseDNS[[:space:]])/\1/' \
-e 's/^#(PermitUserEnvironment)[[:space:]].*$/\1 yes/' \
usr/local/etc/ssh/sshd_config.orig \
> usr/local/etc/ssh/sshd_config; \
grep '^UseDNS no$' usr/local/etc/ssh/sshd_config; \
# "This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
# (and there are several important binaries in /usr/local/sbin that "docker-machine" needs to invoke like "ip" and "iptables")
grep '^PermitUserEnvironment yes$' usr/local/etc/ssh/sshd_config; \
mkdir -p home/docker/.ssh; \
echo 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' > home/docker/.ssh/environment; \
# acpid prep (looks in the wrong path for /etc/acpi)
ln -sT ../usr/local/etc/acpi etc/acpi; \
[ -z "$(ls -A etc/acpi/events)" ]; \
{ echo 'event=button/power'; echo 'action=/usr/bin/env poweroff'; } > etc/acpi/events/power; \
# explicit UTC timezone (especially for container bind-mounting)
echo 'UTC' > etc/timezone; \
cp -vL /usr/share/zoneinfo/UTC etc/localtime; \
# "dockremap" user/group so "--userns-remap=default" works out-of-the-box
tcl-chroot addgroup -S dockremap; \
tcl-chroot adduser -S -G dockremap dockremap; \
echo 'dockremap:165536:65536' | tee etc/subuid | tee etc/subgid
RUN savedAptMark="$(apt-mark showmanual)"; \
apt-get update; \
apt-get install -y --no-install-recommends \
isolinux \
syslinux-common \
; \
rm -rf /var/lib/apt/lists/*; \
mkdir -p /tmp/iso/isolinux; \
cp -v \
/usr/lib/ISOLINUX/isolinux.bin \
/usr/lib/syslinux/modules/bios/ldlinux.c32 \
/usr/lib/syslinux/modules/bios/libutil.c32 \
/usr/lib/syslinux/modules/bios/menu.c32 \
/tmp/iso/isolinux/ \
; \
cp -v /usr/lib/ISOLINUX/isohdpfx.bin /tmp/; \
apt-mark auto '.*' > /dev/null; \
apt-mark manual $savedAptMark; \
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false
COPY files/isolinux.cfg /tmp/iso/isolinux/
COPY files/init.d/* ./etc/init.d/
COPY files/bootsync.sh ./opt/
# temporary boot debugging aid
#RUN sed -i '2i set -x' etc/init.d/tc-config
COPY files/make-b2d-iso.sh /usr/local/bin/
RUN time make-b2d-iso.sh; \
du -hs /tmp/boot2docker.iso
CMD ["sh", "-c", "[ -t 1 ] && exec bash || exec cat /tmp/boot2docker.iso"]
| code refactoring |